I've almost finished my first Arduino project and I'm realizing I might have gone a bit over my head - I'm a web programmer, I have a very basic electronics knowledge and started tinkering with Arduino with just a couple simple, tutorial-like small circuits.

I then started building this project of a battery-powered Weather Station that sends sensors data via WiFi to my server - I managed to have a working product but I'm bumping into issues that are starting to look a bit bigger than what they initially seemed.

The workflow (schematics follow):

On the +5V pin of the Arduino Nano (actually a cheap chinese clone) I've put an AMS1117 to stabilize down the voltage to 3.3V (the 3.3V ArduinoNano output wasn't powerful enough), and from there I power several modules; a DS3232 wakes up the Arduino (pin 2) when put in deep sleep mode (every 30 mins); when woken up I read data from the DHT11 (humidity), the BMP085 (pressure), the DS18B20 (temperature) and FC-37 (rain), I connect to my WiFi using the ESP-01, send data to my server, and put the Arduino back to sleep until the next cycle.

enter image description here Everything worked when on the breadboard, worked after building the circuit with a perfboard; heck, it worked even when connected to my power supply, which is something similar to this project: https://www.arduinolab.net/solar-li-ion-charger-and-power-supply-for-arduino/

Image taken from the above site My battery is a 3,7V 2500mA instead, but all components are almost the same and I use a regular USB - type B cable to connect this to my Arduino Nano

But after an hour or so it stopped working - I checked again by connecting the Arduino to my PC and it appeared to be fine, but when connected to the battery everything was powered up (all leds on!) but the ESP wasn't trasmitting (never saw the flashing blue led).

So I started some reading around and I tought it might be a problem of too much current needed, and the battery wasn't enough anymore after it got under a certain voltage (I still measured 3.80V on the battery terminals though..)...

This is what I'm thinking:

  1. to cut/remove the LEDSs from all the modules (dht, rtc, fc-37 has two!, AMS1117) to save power (it's 5 LEDs + the arduino power on LED). Is it safe? Will they still work with the LED circuitry interrupted?
  2. connect my power source directly to the Vin+ of the AMS1117, instead of using the +5v Arduino output pin (but I read it can safely outsource 500mA, which is the limit for the USB power in anyway, so it shouldn't be an issue...)
  3. for the "long run", use a transistor to power on the sensors when Arduino is awaken, keeping them off the rest of time to spare battery juice, if nothing else...But I really don't know how to start for this, I thought of an NPN transistor (I have a PN222A available) with Base to Arduino (through a 1k Ohm Resistor), Collector to +5V and Emitter to the AMS1117 Vin+, is this sensible?
  4. increase power output? but how? the power source lets 5V 600mA through a regulated DC-DC booster, it should be ideal in theory...How do I understand if it's right for me?
  5. Ditch the ESP01 in favor of the NRF24L01 (I already have a couple of these, but any other suggestion is appreciated)...but that would require a new setup, new coding (never used those modules), a "receiver" that then sends to wifi, and btw I don't know if the signal can make it from the balcony (where I plan to put the WeatherStation) to the inside of the house (I think it will, as the WiFi does - at least I think it does)

I don't really know how to actually measure the consumption of my circuit...I've read something around but, as I said, my electronics knowledge is limited, I don't have much spare time to dedicate on this, and therefore I cannot figure out without a clear guidance, sorry...

I'm not attaching my code because I don't think it's necessary - the sleep mode I'm using is SLEEP_MODE_PWR_DOWN from the avr/sleep.h library, other than that it works fine as it is.

Can someone give me suggestions or pointers on how to analyze my problem? Am I on the right track or my reasonings are off?

Thanks for any help you could provide, if you need any more info I'll do my best (in due time though, as I said I've not that much time to work on this...if I could muster 1 or 2 hours a week it would be a dream!)

1 Answer 1


You are wasting a lot of power in your system. You need to be far more efficient when running off battery.

  1. Don't boost your battery voltage to 5V. Instead use a system that runs entirely at 3.3V.
  2. Never use a linear voltage regulator like the AMS1117 since it just wastes power as heat. Instead use a switching "buck" regulator.
  3. Turning off modules when not being used is a very good idea. Sleeping the Arduino only saves some of the power - the modules will all still consume power.

I would suggest the ideal way forward would be:

  1. Remove the Arduino from the schematic completely
  2. Replace the ESP-01 with an ESP8266 module with more pins, or better still an ESP32 module.
  3. Connect all the sensors (optionally with P-channel MOSFETs to control the 3.3V supply to them) direct to the ESP32
  4. Remove the 5V boost from the power supply
  5. Connect the power supply through a 3.3V switching regulator to power the whole circuit.
  • I knew I was doing something wrong with power management; you know, if you look at many popular "maker" websites you often find such solutions which are good for many projects but when start biting back they do it strong. I like your suggestion of using an ESP module, I think I'll consider the ESP8266 for this (It seems the ESP32 is too much for my project). About the 3), can you point to some resources for examples or some component name? (so I can buy the right parts. Same for the 5, so I won't buy the wrong regulator). Thanks a lot, great answer Commented Aug 13, 2019 at 15:06
  • Any P-channel MOSFET that has a threshold voltage between 0V and -2V would do the job. You don't need much current handling capacity. I usually work with surface mount SOT-23 devices, so any part number I would have to hand would probably not be suitable for you.
    – Majenko
    Commented Aug 13, 2019 at 15:08
  • 1
    As for a regulator, there's LM2596 based adjustable modules readily available on eBay (be sure to adjust the voltage properly ;) ) - but again, any part numbers that I use would probably not be suitable for you since they would be small surface mount ones.
    – Majenko
    Commented Aug 13, 2019 at 15:09
  • I think I'll follow your advices and look into ESP8266 modules. NodeMCU, Weimos D1, any favorite? Anyway, thanks a lot for the answer! Commented Aug 14, 2019 at 7:49
  • If you replace the Arduino with an ESP32 don't use an ESP32 development board, use the module! All development boards still use a lot of power even in deep sleep. Check YouTube Andreas Spiess - youtube.com/watch?v=3O_vrKAmshA (I deleted my previous comment with the wrong name)
    – Edgar
    Commented Aug 14, 2019 at 10:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.