Battery Powered ESP32 (Security Cam) Multi Stream/Record

This is my first post so I hope it’s right…

I just watched the awesome “Use a ESP32-CAM Module to Stream HD Video Over Local Network” guide on YouTube.

I have added, to my cart, the components to make up a two camera security system including the (I2S MEMS to record sound) but I’d like to know if there is an option to power it by battery, and a case, multi stream recording software etc so that I can make a rugged little remotely powered multi cam security system? Any thoughts appreciated.

My Bill of Materials so far are:
2 x ESP32-CAM Development Board ESP32-CAM Development Board | DFRobot DFR0602 | Core Electronics Australia SKU: DFR0602
2 x Adafruit I2S MEMS Microphone Breakout - SPH0645LM4H Adafruit I2S MEMS Microphone Breakout - SPH0645LM4H | ADA3421 | Core Electronics Australia SKU: ADA3421
1 x USB to TTL Serial UART RS232 Adaptor (PL2303TA) USB to TTL Serial UART RS232 Adaptor (PL2303TA) | 018-USB-PL2303HX | Core Electronics Australia SKU: 018-USB-PL2303HX
1 x 5V DC 4A Fixed 2.1mm Tip Appliance Plugpack - 5V DC 4A Fixed 2.1mm Tip Appliance Plugpack | AM8911B | Core Electronics Australia SKU: AM8911B (for Powered Option)
1 x DC Barrel Jack Adapter - Female - DC Barrel Jack Adapter - Female | DFRobot FIT0151 | Core Electronics Australia SKU: FIT0151 (for Powered option)

Missing:
Battery Powered Option
Case to put it in

4 Likes

Hey mate :blush: glad you digged the video.

There are a number of parts to unpack with your excellent questions.

If you want a Multi-stream recording software system for ESP32-CAM the best already built system I have found so far comes from the very talented fellow at That Project, I’ll link the youtube video worth checking out here - Multiple ESP32-CAM for Security System (ft. Android Tablet) - YouTube. I have yet to set up that system over here but it looks like a brilliant way to have a Tablet act as the Hub for your multi-camera security system. From the video, it seems like he’s nailed the recording aspect as well.

Now I don’t know if the above-combined system would work with Audio as well (we are pushing the ESP32-CAM board very hard as is) as I have yet to experiment with it. But it definitely screams potential (and would require some time coding to achieve). The working script to make an ESP32-CAM with I2S Connected MEMs Microphone can be found here - GitHub - s60sc/ESP32-CAM_MJPEG2SD: ESP32 Camera motion capture application to record JPEGs to SD card as AVI files and stream to browser as MJPEG. If a microphone is installed then a WAV file is also created. Files can be uploaded via FTP or downloaded to browser.. That script as is will record straight to a Micro-SD card that is inserted into the Micro-SD card holder on the board. Make sure that the MEMs Microphone communicates with I2S such as the SPH0645LM4H board that you have already identified :blush:. Know that running Audio Recording will cause the Video FPS to be lower. There will be a webpage hosted by the ESP32-CAM board which you can then alter settings within, like audio gain or video encoding (in a similar vein to my guide).

From my testing so long as the battery can provide 5V you’ll be set to go. If you try to run them at 3.3 Volts it results in a grainy Video Feed. Also, be aware that there is no Power Management System on the ESP32-CAM board so if you directly connected up a LiPo Battery and gave it enough time, it’d suck the rechargeable battery below a safe voltage level to maintain a long LiPo battery Life. To be clear, all the LiPo batteries we sell have a tiny protection circuit on them to prevent catastrophic damage/self-immolation from excessive over-charge and over-discharge. However, relying only on this tiny protection circuit won’t result in a long life for the LiPo battery. What we need is a Power Management system to go between the LiPo and the Board. I haven’t located a perfect solution for this so I’ve brought this up with the Core team. My interim recommendation would be a board like the Adafruit PowerBoost 1000 Basic, but we haven’t had stock for them for a while, or this Adafruit Micro LiPo Charger. That last option you can see operating with an ESP32-CAM board in this video here - Tic Tac Camera Using ESP32CAM And Wireless Charging - YouTube.

Kind regards,
Tim

6 Likes

Updated my response to you champ just above ^ :blush:

Ideally you would want the LiPo to be disconnected when the voltage drops too low.

I have been experimenting with two Pico W’s and a Makerverse Nano Timer.

One of the Pico W analog pins senses a voltage divider between VSYS and GND (2 resistors). At present the voltage the program calculates is pretty much the same as measured by a multimeter. When it gets below a certain level the Pico W sends a battery low message to the other Pico W then shuts down. This is not a perfect solution as the Nano Timer will eventually wake the Pico W and repeat the process. My code checks if the voltage falls lower and shuts down immediately.

The way the Nano Timer works could be incorporated into a LiPo charger. The micro sets a pin on the charger which disconnects the input power to the micro. Of course the charger would still have power. In the case of the Nano Timer it works because it consumes very little current when in its timing cycle. I am not an electronics design engineer, but I have enough knowledge that this type of device is possible. Just wonder why no one has made one yet, or maybe I have not looked far enough.

cheers
Jim

5 Likes

Thanks Tim. This info is also, awesome. J

2 Likes

And thanks to you too, Jim

2 Likes

Hi Jim,

You must have been on the same train of thought as our design team because once they finished designing the original nano power timer they made another experimental version built into a Pico HAT which included a LiPo battery charger.

4 Likes

Heyya Jamie,

This board looks like a good contender for the PMS - DC-DC Charge Discharge Integrated Module (5V/2A) | DFRobot DFR1026 | Core Electronics Australia

It has only just been onboarded to the website and we are keen/will run some tests on it too once we have it in hand. So I’ll keep you posted :blush:

Kind regards,
Tim

2 Likes