Go Down

Topic: Cannot read digital pin on ESP32 (Read 222 times) previous topic - next topic

lucian_v

Hi all,
I am using a LOLIN32 board, v1.0.0 together with an arduino nano. ESP32 receive some data on serial from nano (using pins - 16,17), and also run in AP mode with a webserver on it.

My issue is that I am not able to read a digital pin which I set as "INPUT", where actually I get LOW or HIGH from arduino uno using a voltage divider to not go over 3V. I tried with pis 12,15,33 on ESP32 side and no matter what I get always 1 when I do readDigital(pin);
Even if the arduino nano is set to HIGH or LOW, or even if I put ESP pin to gnd or 3.3V.

Can you please help me somehow ? I have no idea why I am getting this

Thanks in advance.

srnet

#1
Feb 12, 2019, 06:28 pm Last Edit: Feb 12, 2019, 06:29 pm by srnet
Without seeing your code its going to be difficult to help ............................


Are you sure your using readDigital(pin) ?
http://www.50dollarsat.info/
http://www.loratracker.uk/

Go Up