analogRead reading 0 when using esp32 as power source.

physyx
Posts: 1
Joined: Sat Aug 18, 2018 3:14 pm

analogRead reading 0 when using esp32 as power source.

Postby physyx » Sat Aug 18, 2018 3:26 pm

Hi.

I have an ESP32 DEV from DOIT and i'm trying to read soil moisture with this sensor.

When i power the sensor with 3.3 volts from ESP32 board it constantly reads 0.

I tried to supply power from an external power to the sensor from an arduino UNO board but the readings are very unstable. It get worse when powering the arduino board with external power instead of USB cable.

Can you help me to understand why i'm reading only 0 when powering from ESP32 board?

In my code i'm just running analogRead(36) because the sensor is plugged in VP pin.

Who is online

Users browsing this forum: gfvalvo, Google [Bot] and 50 guests