Temporary current solution
dev/null
Posts: 381
Hi all you creative minds!
I am planning on building electric doorlocks for my old Volgswagen, controlled by a Stamp.
I don't want to draw any (or very very little) current when the carkey is not used. I want a temporary current supply to the Stamp. The current should be switched on when I turn the key in the door, and stay on long enough for the Stamp to turn a couple of servos and then switch off.
I was thinking about using super caps, but I don't know how to avoid transients. Maybe there is a circuit I can use?
Another option is to have a 555 timer circuit constantly monitoring the key switch, and then turn a relay on to power the Stamp. But then I'd have to supply current to the 555 circuit at all times, which I don't want to.
Any ideas greatly appreciated.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
I am planning on building electric doorlocks for my old Volgswagen, controlled by a Stamp.
I don't want to draw any (or very very little) current when the carkey is not used. I want a temporary current supply to the Stamp. The current should be switched on when I turn the key in the door, and stay on long enough for the Stamp to turn a couple of servos and then switch off.
I was thinking about using super caps, but I don't know how to avoid transients. Maybe there is a circuit I can use?
Another option is to have a 555 timer circuit constantly monitoring the key switch, and then turn a relay on to power the Stamp. But then I'd have to supply current to the 555 circuit at all times, which I don't want to.
Any ideas greatly appreciated.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
The BS2 already is designed to spend long periods of time in a low power mode drawing maybe tens of microAmps, then occasionally waking up and drawing a few milliAmps for an average current still in the tens of microAmps range. Why complicate things?
You will want some filtering in the +12V power source because automotive systems are very noisy. A series inductor (a couple of hundred uH) and parallel capacitor on the order of 1000uF (rated at 35V minimum) would work.
The Stamp would SLEEP most of the time, wake up, check the keyswitch, and, if off, go back to sleep again.
In this setup, you're using the Stamp's regulator and the amount of current available is limited. Don't try to draw much more than 20-30mA total from it (like for a couple of LEDs). The regulator has no real heatsink and it's dissipating about 8V x ??? mA.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
How does this look?
(nevermind the resistor values, I haven't calculated them yet)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
I would keep the 100nF capacitor (now in parallel with the 1000uF).
I would increase the output capacitor value modestly if you're running servos off that voltage, maybe 10uF.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy
As is, the 180uH and the 1000.1uF (<-1000uf + 100nF = 1000.1uF) capacitor forms a resonant circuit at about 375 Hz ... something your alternator could easily introduce into the system. Even a 50mV ripple could be substantially multiplied with the proposed LC configuration.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't worry. Be happy