HumanoidPequi / HumanoidPMec_LARC2023

1 stars 1 forks source link

Using two serial ports with esp32 #24

Open lucasolives opened 11 months ago

lucasolives commented 11 months ago

Using the circuit attached to this comment, we tried to use two serial ports in esp32 in order to put one leg on each serial port.

Image

lucasolives commented 11 months ago

Making some tests, we noticed that esp32 wasn't sending data to both port serials[Serial1(TX0, RX0) e Serial2(TX2, RX2)]. We tried some strategies to solve this problem:

OBS: Everytime it didn't work, the data was being sent to just one serial port.

lucasolives commented 11 months ago

Pin out Esp32:

Image

lucasolives commented 11 months ago

Utilizar preferencialmente as GPIOs: tx -> 0,2,12,13,14,15,16,17,25,26,27 rx -> 0,2,12,13,14,15,16,17,25,26,27,32,33,34,36,39