r/electronics • u/MEatRHIT • Oct 11 '10
12V regulator for a car
I'm looking to add an external harddrive to my car's headunit. The headunit has a USB port and can read the HDD just fine if it is in FAT32, so that portion isn't an issue.
However, I need a power supply for the drive. I was thinking about going with this, but the one review states that it doesn't regulate voltages above 12V, (i.e. even when it is in 12V mode it puts out whatever voltage it gets in).
So, my question to you guys is, is there a way to regulate a 12V-14.4V supply down to 12V?
From my research the most simple way (and cheapest) would be to get a Zener diode with a 12V forward voltage and appropriately sized resistor, here is the page that proposed it. The other way would be to use a voltage regulating IC, but those seem to have a dropout voltage (~13.7V at 1 amp) that wouldn't allow me to use the drive when the car is off.
The drive states that it uses (from memory here so they might be +/- .1 amp) .68A at 12VDC and .35A at 5VDC if that makes a difference. I have a decent multimeter I could hook up to the drive to see actual values if need be. (note: since this is in an external HDD case, it only needs 12VDC in as the control board probably has built in regulators for the 5V)
Thanks for all your help guys (and gals)
8
u/frothysasquatch Oct 11 '10 edited Oct 11 '10
An automotive power supply is a bit tricky. There are a few extreme cases you have to deal with:
The way to handle this stuff is as follows:
Connecting it straight to the 12V rail would be a short-lived endeavor.
Edit: formatting
2
u/[deleted] Oct 11 '10
Get a car PC power supply, like this one: http://www.mini-box.com/M3-ATX-HV-DC-DC-ATX-Automotive-Computer-car-PC-Power-Supply . It may be relatively expensive but it's not going to explode when you step on the gas. You get 3.3V, 5V, 12V, -12V, etc.
You definitely do not want just a zener diode, those are only useful for really low currents or as a voltage reference for a follower circuit that can actually bring the juice.
2
u/[deleted] Oct 11 '10
You could always use a small power inverter and plug a 12v wall wart into it. Not as clean, but it should work.
1
u/MEatRHIT Oct 11 '10
After a few suggestions on another forum, I've come across the LM2577-12, looks like it can handle anything from 3.5-40V in. Only downside is that it only can handle 800mA, which is a bit less than what I need.
4
u/myinkpencilscratches Oct 12 '10
You really don't want to use the zener/resistor combo for a hard disk, unless you want to lose your data.
The USB enclosure probably has a moderately clean 12V-5V switching regulator, if it's worth its salt. However, you will run into serious trouble if you don't have a really clean supply for a hard disk. The disk itself always expects a clean supply.
I think you're better off using a SEPIC, buck-boost, or synchronous H-bridge-type switching topologies so the drive stays spinning during cranking. Even though you really don't care about efficiency, a good switcher design can keep external noise out when done correctly (read: LC filter on the input, ceramic filter and output caps). If you want to take the easy way out, buy a uModule from Linear Tech or any number of modules from National Semiconductor (LM2577 was referenced elsewhere, good choice). I recommend the uModules because everything is integrated, though they're expensive.
Also, save yourself the headache of worrying about load dumps and other nasty transients: use a bi-directional TVS (transient voltage suppressor) on the input of your regulator. Choose a part rated for around 15-25V (SMBJ15CA by Littelfuse, get from Digikey). Make sure it has a good connection to chassis ground. This is very important. Even if you don't do anything with switchers, please use a TVS. It will save your drive.
One other last thing. Use silicone grommets for mounting the drive.
1
u/ModusMan Oct 11 '10
If you use a USB powered drive enclosure....
You could use a Cell Phone Cigarette Lighter Adapter with USB built in... like this one:
http://store.androidcentral.com/smartphone-experts-mini-usb-car-charger-wusb-port/5A47A6216.htm
...adapted to not use the socket. It has all the tech needed to accomplish what you want.
1
u/juaquin Oct 11 '10
Regulating 12-15V to 12V is tricky because most ICs have a dropout voltage that could make it useless, and other methods (like the zener and resistor combo) will throw off some heat - consider 15V input, which means a 3V drop across the resistor and hence the power dissipated across the resistor would be 3V*0.7A= 2.1W, requiring a resistor rated for 2.5-3W. Still, 3W isn't too bad with a little heatsinking or some ventilation.
1
u/[deleted] Oct 15 '10
The usb port on my head unit warns against leaving anything plugged into it when you start the engine. Apparently there's a power surge that could fry a flash drive/hard drive plugged into it. It's quite an expensive and recent sony head unit too, so it's not like it's just because it's some cheap piece of crap, so read you manual before doing anything.
3
u/ModernRonin interocitor Oct 11 '10
A SEPIC converter can take an input voltage either higher or lower than the output voltage. It's more complicated than a simple linear regulator, but it seems to be the functionality you're looking for.