Monday, 15 June 2015

batteries - How to control power from 12V battery to RPi with a microcontroller



I have an LM2596 module and a 12V lead-acid battery which I would like to use to power a RPi zero and control with an ATtiny85 in a project which requires the RPi to be active 30s and then shut off 270s.


My question is: How do I toggle BAT1 on or off using as little current as possible?


In my project I want the RPi to only turn on if there is enough light outside, so I am using a photoresistor for that.


schematic


simulate this circuit – Schematic created using CircuitLab


So, to clear things up. The photoresistor (U4) is powered by PIN2 only when required to read the light level and PIN3 is used as an analog input on the ATtiny. I don't know how to switch BAT1 from my microcontroller.


I've measured the power consumption of the RPi zero which is at max about 150 mA and on average about 60 mA.


Photo of the LM2596 module I am using:


enter image description here




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...