Hi all
I could use some sage advice on a battery powered PICAXE device.
It is a nightlight that turns on sets of LED’s when it is dark and motion is detected. 2 sets of LEDs will fade on and off until motion is no longer detected, then turn off. At most it will power 24 LEDs at 20mA. There will be 2 strings of LEDs driven by two PWM signals.
I expect the device to be turned on at most twice a day, and probably operate no more than a couple of minutes.
Since it spends most of its life doing nothing I want to minimize the quiescent current to maximize battery life. I know how to do this with the PICAXE (it will NAP and wake up every second or so), but the question is what about the rest of the circuit?
Being battery powered I can arrange the batteries any way I want, providing from 3 to 12 volts. This has led me to datasheet hell where I have too many design options and not enough experience to judge one over the other.
So for now I decided on either 9 or 12V, mainly to power the LED strings easier, and using some kind of regulator to provide 5V to the PICAXE and to the PIR sensor (requires 5 to 12V). Then probably a constant current device for the LEDs.
A good option might be the linear LDO MCP1702. It has a low quiescent current and can supply enough current for the PIC, the PIR and a MOSFET driver for the LEDs if I go that route.
Another option would be a buck converter (such as the LM2596) but the ones I have looked at have efficiencies around 70% at low currents. But it could provide the power for the entire circuit.
So I guess I am looking for some thoughts on how to approach this.
Thanks
I could use some sage advice on a battery powered PICAXE device.
It is a nightlight that turns on sets of LED’s when it is dark and motion is detected. 2 sets of LEDs will fade on and off until motion is no longer detected, then turn off. At most it will power 24 LEDs at 20mA. There will be 2 strings of LEDs driven by two PWM signals.
I expect the device to be turned on at most twice a day, and probably operate no more than a couple of minutes.
Since it spends most of its life doing nothing I want to minimize the quiescent current to maximize battery life. I know how to do this with the PICAXE (it will NAP and wake up every second or so), but the question is what about the rest of the circuit?
Being battery powered I can arrange the batteries any way I want, providing from 3 to 12 volts. This has led me to datasheet hell where I have too many design options and not enough experience to judge one over the other.
So for now I decided on either 9 or 12V, mainly to power the LED strings easier, and using some kind of regulator to provide 5V to the PICAXE and to the PIR sensor (requires 5 to 12V). Then probably a constant current device for the LEDs.
A good option might be the linear LDO MCP1702. It has a low quiescent current and can supply enough current for the PIC, the PIR and a MOSFET driver for the LEDs if I go that route.
Another option would be a buck converter (such as the LM2596) but the ones I have looked at have efficiencies around 70% at low currents. But it could provide the power for the entire circuit.
So I guess I am looking for some thoughts on how to approach this.
Thanks