-->
Page 2 of 2

Re: ESP-01 + AM2320 starts sending false data after a while

PostPosted: Fri May 03, 2019 5:15 am
by schufti
depending on how you connected the AM2320 (i2c/single pin) and used pins, the oscillations on gpio2 during startup can confuse the sensor unrecoverably.
if i2c try changing sda/scl, if single pin, use other gpio.
some people power sensor from spare gpio to be able to "reset" reliably.

Re: ESP-01 + AM2320 starts sending false data after a while

PostPosted: Sun May 12, 2019 5:54 pm
by Londik
I use single pin mode.

I tried following: Disconnected AM2320's VDD from constant power and connected it to ESP-01's GPIO0 pin. Changed the code so that after waking GPIO0 goes High and before going to deepsleep GPIO0 goes Low. That way AM2320 should reset also every DeepSleep cycle. Now I have to wait and see if it helps.