Problem with pullup on serial pin
Posted: Fri Oct 26, 2018 12:43 am
Hi guys,
I have an external module connected to the ESP32 with hardwareserial as RX GPIO12, TX GPIO14.
The module datasheet states that it's UART TX pin is open drain and needs a 10K ohm pullup (in my case to 3.3V).
Problem is that when I use a physical 10K resistor, the ESP bootloops.
I have tried
but there is no communication. I only get garbage in Serial Monitor when I touch the pin.
When I send something to Serial2, I can see the module's RX and TX leds blink, so something is going on, I think the ESP just isn't reveiving anything.
What could be wrong? I would rather if I didn't have to use the physical pullup resistor.
Cheers!
I have an external module connected to the ESP32 with hardwareserial as RX GPIO12, TX GPIO14.
Code: Select all
HardwareSerial Serial2(2);
void setup() {
Serial2.begin(38400, SERIAL_8N1, 12, 14);
}
Problem is that when I use a physical 10K resistor, the ESP bootloops.
I have tried
Code: Select all
pinMode(12, INPUT_PULLUP);
When I send something to Serial2, I can see the module's RX and TX leds blink, so something is going on, I think the ESP just isn't reveiving anything.
What could be wrong? I would rather if I didn't have to use the physical pullup resistor.
Cheers!