Search found 35 matches

by Greg Corson
Tue Jul 31, 2018 8:35 pm
Forum: ESP32 Arduino
Topic: ARDUINO multi-core support/questions
Replies: 11
Views: 19185

ARDUINO multi-core support/questions

Hi, I've been working on a project where a number of network and realtime things are going on and sometimes seem to be interfering with each other. ON ARDUINO 1. If you don't do anything, are tasks automatically getting executed on both cores, switching between them as time is available or are some ...
by Greg Corson
Tue Jul 31, 2018 7:04 pm
Forum: ESP32 Arduino
Topic: I2C freeze/fail problems
Replies: 7
Views: 14105

Re: I2C freeze/fail problems

For the benefit of others, I found out what was causing the I2C errors. To clean up my encoder signals I was running them through a Schmidt trigger IC. I was only using 4 of the 6 schmidt triggers on the chip. It turned out that the unused triggers were occasionally breaking into very high frequency...
by Greg Corson
Sun Jul 08, 2018 8:23 pm
Forum: ESP32 Arduino
Topic: I2C freeze/fail problems
Replies: 7
Views: 14105

Re: I2C freeze/fail problems

I'm testing this morning and finding that my I2C from ESP32 to BNO055 seems to be stable when I disconnect the 4 pwm outputs and 4 encoder inputs. I'm gradually adding back functionality to see if I can figure out when it becomes unstable. Just to be clear, this is how these pins are setup 14, 15, 3...
by Greg Corson
Sun Jul 08, 2018 7:55 pm
Forum: ESP32 Arduino
Topic: Using GPIO 25, 26 as digital IN?
Replies: 2
Views: 4641

Using GPIO 25, 26 as digital IN?

I'm having a problem where connecting some signals to GPIO 25 and 26 seems to cause my I2C to become unstable. I saw some messages in the (not arduino) parts of the forum that you have to turn off DAC1 and DAC2 to use these GPIO for input. Does this have to be done under arduino as well? If so, how ...
by Greg Corson
Sun Jul 08, 2018 4:33 am
Forum: ESP32 Arduino
Topic: I2C freeze/fail problems
Replies: 7
Views: 14105

Re: I2C freeze/fail problems

Right now I use gpio 14,15,32 and 33 as pwm outputs, via ledc

I use a0, a1, a2 and a3 as inputs.

It seems like when I start connecting these to external hardware my i2c becomes unstable. I’ve used pinMode to set these as input or output, am I missing something else that needs to be done?
by Greg Corson
Fri Jul 06, 2018 5:13 pm
Forum: ESP32 Arduino
Topic: I2C freeze/fail problems
Replies: 7
Views: 14105

Re: I2C freeze/fail problems

I probably should have mentioned I have been looking at the problem with a Saleae Logic Analyzer/scope. With or without the motor wires there does not appear to be any interference on the I2C bus, the signals look the same. The I2C wires from the ESP32 to the BNO055 are about an inch long and have 2...
by Greg Corson
Thu Jul 05, 2018 2:20 pm
Forum: ESP32 Arduino
Topic: I2C freeze/fail problems
Replies: 7
Views: 14105

Re: I2C freeze/fail problems

I updated on July 2 from the github, would this update be newer?
by Greg Corson
Tue Jul 03, 2018 10:12 pm
Forum: ESP32 Arduino
Topic: I2C freeze/fail problems
Replies: 7
Views: 14105

I2C freeze/fail problems

I'm working on a 2-wheel balancing robot using an Adafruit feather ESP32 and I'm having very odd problems with I2C. I have a BNO055 connected up to I2C using the Adafruit sensor APIs. I also have a couple of DRV8871 motor drivers connected to GPIO 14, 15, 32 and 33 using LEDC channels 0, 1, 2 and 3....
by Greg Corson
Tue Jun 05, 2018 4:43 pm
Forum: ESP32 Arduino
Topic: Using PCNT and MCPWM from arduino (for motor control with encoder)
Replies: 0
Views: 3259

Using PCNT and MCPWM from arduino (for motor control with encoder)

I'm a little confused about using ESP32 APIs from Arduino. I am trying to control two brushed DC motors and read their quadrature encoders so I can sense the speed/movement of the motors. I've seen all kinds of posts about using either the PCNT or MCPWM hardware on ESP32 to do this, but no discussio...
by Greg Corson
Fri May 25, 2018 10:27 pm
Forum: ESP32 Arduino
Topic: 8 second stalls when TCP running, less than 10k/sec throughput
Replies: 4
Views: 8114

Re: 8 second stalls when TCP running, less than 10k/sec throughput

I did some wireshark captures and am seeing what look like bad retransmits due to missing ACKs or timeouts. It usually starts with a "previous segment not captured" error, followed by a number of duplicate ACKs, a TCP retransmission and then a "spurious retransmission" error. I need to check more ca...