- Thu Jul 14, 2016 1:47 pm
#50759
trackerj wrote:If you have a separate "Main Application MCU" (the Atmega in your case) then just use one digital I/O pin of it to do the power ON/Off for the ESP8266.
On the Atmega Software side you just need to add your new "Transmitter ON" or "Transmitter OFF" functions (aka PIN High/Low or Low/High, depending on the MOSFET type you want to use for ESP8266 Power switching) and that's it. I will suggest you a P-MOSFET and high side switching but it's your choice, you know better your setup.
The way I have done this as I don't have a P-Mosfet is using 3 220 resistors as a voltage regulator which I read should work, from port b4 on ATMEGA328p-pu when motion is detected I first apply power to CH_PD wait 1000 ms and then send serial and then stop the power the CH_PD , the esp just flashes the blue light quite fast, no data is received on the broker should I be waiting longer for the esp to boot up ?