Autonomous camera with solar panels

Hello all,
I am very new in this arduino universe. I have a 3D printer I use for printing nice objects, but I would like to rise to another level, with electronics. But I am fully new, sorry if I ask stupid questions or if my subject does not belong here...

I took some time on the internet to find a way to do an autonomous camera (bird camera trap). The goal is to take a photo each time a bird gets close to the bird feeder I am building. I would like to have no connection, fully autonomous system :
Photo stored on Micro SD, system power with solar panel.

Apparently, ESP32-CAM would be the perfect card, along with PIR sensor (I found the HC-SR501).
For power I checked a long time and found this setup : Solar panel 5V connected to TP4056 (with protection), connected to battery 3.7V Li-ion 18650, connected to DCDC converter MT3608 (3.7V to 5V) connected to the ESP

Here is a picture of my ugly sketch:

Looking deeper into topics, I found a lot of people advising these cards, but also others, so I am quite lost and would like your help about my specific project.

Thanks a lot for those who will help me :slight_smile:

You might like to have a look at AIO option.
TP4056 is not really ideal for solar panel charging.

You need a load sharing charger board for the battery. The TP4056 is not designed to charge a battery if the battery is connected to an active circuit, so the circuit you posted is unsafe.

Adafruit sells suitable chargers, e.g. Adafruit Universal USB / DC / Solar Lithium Ion/Polymer charger [bq24074] : ID 4755 : Adafruit Industries, Unique & fun DIY electronics and kits

Also, it is silly to use a 5V boost converter to power the 3.3V ESP32 from a LiPo cell. If the ESP32 module has a low dropout (LDO) linear regulator connected to the 5V input, you should be able to power the ESP32 by connecting the battery directly to the 5V input.

If not, use a LDO linear regulator between the battery and the 3.3V power input. The regulator chosen should have a dropout voltage of less than 100 mV.

1 Like

You may want to add a daylight sensor (I forgot the name) to turn everything off until the solar panels are back up to operating voltage.

Just for my own FYI, I thought a boost converter was more efficient than an LDO.

Not for the case of a 3.4 V LiPo powering a 3.3V circuit. The power loss is (3.4 - 3.3)/3.4 = 0.03 (97% efficient), whereas boost converters typically operate at 85-93% efficiency, multiplied by a (typically linear) regulator loss of (5-3.3)/5 = 0.34, or 66% efficiency.

The latter is a rather large waste of power.

EDIT: end of battery life voltage assumed. The situation is a bit worse assuming 3.7V input, but the LDO still wins by a long shot.

Thank you

Have you measured what the the 'idle' current of the project is when after the HC SR501 has detected something, taken a picture and saved it to SD ?

Hello all, thanks a lot for your answers !
I saw the adafruit board, but this looks too expensive compared to the rest of the build, also, I don't find any shipment to France.
The Module Kmin is sharing looks good, as it is cheap and contains already the battery holder, but I did not get if this has a regulator in it ?
For solar panel, it looks more complex to what I expected, I would try first to make the system on a simple battery, adding solar panels later on...

Also turning off the system during night is a good point ! I'll check this, maybe a simple clock integrated to the code would work ?

Concerning regulator, I understand the efficiency is bad with TP4056 and I should find an LDO, i'll look for it :smiley: But if I power the board through the 3.3V with LDO, how can I power the PIR with 5V ?

srnet, I did not check that, good question, how can I do ?
For now I only know idle of the PIR is < 50 μA

Measure the current with a multimeter.

There are take a picture and save to SD examples out there you could use as a test.

https://randomnerdtutorials.com/?s=ESP32-CAM

Knowing the sleep current is vital, if its low, then no big deal, if its not low then you could need large solar panels, heatsinks to keep stuff cool etc.

thanks for this tutorial, it looks similar to what I want to do ! For now I have no parts in hand, I was planning to buy everything at the same time. i'll do so and verify the power consumption
Concerning solar panel, I found some solar panels with integrated battery delivering 5V for very cheap, I would use them to simplify the build. Do I still need to regulate the tension out of it ? I am not so sure as it is meant to charge security cameras or phones.

Waveshare has regulated output for 5V and for 3.3V.

Doesn't make much sense. If you don't use panels, I suggest to use Esp32 board that has battery management built in. Instead if you want panels, you need charge controller/power sharing board that is specifically designed for solar.

That might be good option, but without knowing the specific device, difficult to comment.

this is solar panel 10W + battery, output 5V, 4000mAh

Specification:
Origin: Mainland China
Certification: CE
Type: Solar Panel
Number of Panels: 18
Material: Monocrystalline Silicon
Module Efficiency: 21.8%
Color: White
Material: Monocrystalline Silicon
Shell: ABS Plastic
Power: 3.3W
Conversion Rate: About 22%
Charging Interface: Micro USB/Type-C Adapter
Working Current: 0-1200mA
Short Circuit Current: 1300mA
Working Voltage: 6V (Charging 2.8V-5V Battery)
Open Circuit Voltage: 7.2V
Battery Capacity: 4000mAh
Charging Time: About 11 Hours
Waterproof Rating: IP65

Doesn't say a lot.
It likely works, doubts are efficiency and behavior when you put Esp to deep sleep.
Also, probably the assembly is carefully glued and there's no way to change the battery.

1 Like

The PIR runs happily on anything between 3.4volt and 6volt.
It has it's own 3.3volt LDO built-in.
Leo..

2 Likes

OK thanks!
I think I'll do a first version without solar panel. But I understand not all esp32 cam have the battery management built in ? How can I fi'd these specific ones?

The term ESP32CAM is normally meant to mean the one you posted a picture of, not aware myself of any of those that have battery management, but maybe .............

No, actually they are rare.
Seeed Studio XIAO ESP32S3 Sense has battery management.

But it doesn't have any solar charge option.

Understood, but why not to plug directly a power bank to any esp ? As long as tension is stable on the output

That's easy and safe option. But many power banks have current detection and they turn off when you put Esp to sleep. You need to try some...

I still think that waveshare might be best option, It has MPPT, battery holder for li-ion cell and connector for lipo battery, 3.3V and 5V outputs and decent documentation on their wiki. I have personally never tried though...

1 Like