»

Nov 24

Solar Power Supply

A solar power supply would be a really neat addition to any Internet of Things project. The ultimate goal would be to have a self-sufficient IoT device that could be remotely reprogrammed with the Other The Air (OTA) feature.

A key to using solar power is to reduce the average power requirement of the IoT device. The ESP8266 can be put in several levels of sleep but dev kits (development kits) like the NodeMCU have other power hungry support devices that swamp out the ESP8266 power draw. The two main consumers are the voltage regulator and the USB converter chip. In deep sleep mode, the ESP8266 draws about 70μA while the total draw of the NodeMCU is about 15mA. Several people have “fixed” this issue by removing the regulator and cutting traces to the USB chip. Removing the regulator is easy, cutting traces on the USB is difficult. It was even more difficult in my case because the particular NodeMCU I was attempting to modify uses the CH340G chip rather than the CP2102. Theoretically, the same process of lifting the Vcc connection should work. For the CH340G, this is pin 16, however, I found there is no direct connection between pin 16 and 3.3V. Not having a schematic, I decided to look for other options.

I had hoped that the Adafruit HUZZAH is a good choice for sleep mode experiments. After days of experimentation, the HUZZAH fails to wake after about 20 or 30 sleep cycles. Others have experienced the same problem and offered solutions. To date, none have worked for me.

Using the exact same software, the Wemos D1 WiFi has worked perfectly. Unfortunately, the D1 has similar parasitic loads like the NodeMCU so is not a good choice for a solar powered project. Since the same software fails on the HUZZAH there must be some hardware solution. I drew up the circuits for both dev kits with the objective of building the same circuit around the HUZZAH using external components.

Since the same software that works on the D1 fails on the HUZZAH, there must be some hardware problem. I drew up the circuits for both dev kits with the objective of building the same circuit around the HUZZAH using external components.

Schematic comparison of Wemos D1 WiFi and the Adafruit HUZZAH.

The suspiciously missing components from the D1 are circled in orange. The most significant are:

  • C11 – a 100nF capacitor from the Reset pin to ground. This value is suggested by Expressif. If probbaly provides some time delay on the wake up pulse. Added this between GND and RST on the HUZZAH.
  • C10 – a 100nF bypass capacitor on Vcc. Probably not too important but easy to add between 3V and GND on the HUZZAH.
  • R13 – a 10K pullup resistor on GPIO0. The HUZZAH has an LED in this line that may introduce too much voltage drop and leave GPIO0 in an indeterminate state. Added a 10K between 3V and #0 on the HUZZAH.
  • The logic circuit of Q1 and Q2 is driven by the DTR and RTS lines from the USB chip to automatically put the ESP8266 into programming mode. I do not think their omission from the HUZZAH is the problem. But I could be wrong!

Sadly, the HUZZAH still fails to come out of deep sleep after about 20 cycles of 120 second sleep duration.

 

Permanent link to this article: http://w4krl.com/solar-power-supply/

Leave a Reply