-->
Page 1 of 1

HELP: ESP-12 DEEPSLEEP, TEMPERATURE, VCC AND PHOTORESISTOR

PostPosted: Wed Apr 05, 2017 7:50 am
by mamic2
hi guys,
i have problems with my esp-12 battery project.
the aim of the project is to get T+H values, light value and battery vcc and send it to thingspeak.
Till now i was able to send online vcc data and fixed number values giving ranom numbers to T,H,L.
So deepsleep and vcc readings work fine...i see values on thingspeak.
the problem happens when i start to connect sensors....nothing works anymore.
Can someone tell me how to connect DHT11 sensor to esp-12? is it compatible with deepsleep? and with vcc reading esp.getvcc()?
thanks

Re: HELP: ESP-12 DEEPSLEEP, TEMPERATURE, VCC AND PHOTORESIST

PostPosted: Wed Apr 05, 2017 4:34 pm
by Barnabybear
Schematic, ESP type?

Re: HELP: ESP-12 DEEPSLEEP, TEMPERATURE, VCC AND PHOTORESIST

PostPosted: Thu Apr 06, 2017 3:20 am
by mamic2
Barnabybear wrote:Schematic, ESP type?


ESP8266-12E

i cant draw schematics. ESP connected to 3.3v and GRND, same for DHT11. Signal DHT11 connected to ESP GPIO4. then for deepsleep RST connected to GPIO16. By now light sensor is not connected and code removed...lets just focus on DHT.
Any ideas why its not working?
thanks

Re: HELP: ESP-12 DEEPSLEEP, TEMPERATURE, VCC AND PHOTORESIST

PostPosted: Fri Apr 07, 2017 12:59 am
by schufti
old IT wisdom: place some "spies" (serial.print statements) on relevant places in your code and see how far your code proceeds like intended and when/what happens next ...

P.S.: everybody can draw schematics if he really wants to. Take a piece of paper, draw your schematic, take your smartphone, camera etc. take a picture and post it. Easy peasy ... one picture tells more than 1000 words. Everyone gets as much help as he shows effort to solve it, not get it solved.
additionally: showing your code might help too.