Thanks for your reply.
I'm sorry, indeed I wasn't clear.
I have 2 concerns: CPU usage and Power consumption.
About CPU usage
, I am currently using a Raspberry Pi 2 and it's a little limited for my project. Maybe I didn't make the right choices but I added a new Docker container for each new sensor monitoring (and related notification), for a total of about 8 containers. Based on top
command, it's way too much for my Raspberry Pi 2 (maybe because my images are too heavy ; I'm pretty new on Docker). That's why I am considering 2 options:
- 1. Reduce the number of containers since I didn't manage to reduce more containers weight. Basically, my 3 new sensors monitoring scripts would be added into 1 docker container. Not very "clean" solution but my first tests allowed me to reduce the CPU usage.
- 2. Host my containers on a Raspberry Pi 3 (or 4).
is actually my main concern.
I've read that each pin of the Raspberry Pi can't provide more than 16mA and all pins together can't provide more than 50mA. With all sensors connected to my RPi 2 (DHT22 sensor, PIR sensor, KY-038 sensor for sound and probably LEDs) + consumption of the Pi itself (with its camera), the whole consumption is way too much and the Pi can't provide enough current in a reliable way.
Even if I don't know how much Ampere do my sensors need (I can't find the information...), I am pretty sure that is too much (for RPi2, 3 or 4). That's why I am looking for solution to provide enough current to RPi and all of its sensors
Do you have something to recommend? I know there are plenty of solutions but it's hard to figure out which one is the best (and cost-effective).
I hope it's clear!
Thank you very much for your help!