Notifications
Clear all

Automotive 12vdc power supply

6 Posts
2 Users
0 Likes
2,788 Views
logwagon
(@logwagon)
Member
Joined: 5 years ago
Posts: 14
Topic starter  

Hey folks,  

This is an idea that came tangentially from a question I had in another forum here on DBWS.  

I thought it might be a good project to build a theft control device.  I will use an accelerometer to detect the unauthorized movement of my car then use a relay to kill the engine before it gets out of the driveway.  

The sketch and basic wiring is easy enough but with the accelerometer and the relay coil and the relay switch all be on a common power supply and a common ground, what can I do to 'protect' the Arduino from electrical assault.  I thought maybe some diodes in strategic locations might help but I don't know what I don't know.  

The image shows a basic block diagram of the project.  Would there be any use of adding diodes in any of the locations marked by a blue arrow? Or anywhere else?

 

Screen Shot 2019 07 23 at 8.52.27 AM
This topic was modified 5 years ago 2 times by logwagon

   
Quote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

You could put a diode from the car power to your regulator to protect from reverse voltage. Then on the input side of the power from the car to your reg, a largish capacitor across GNC and 12+, and then a medium size on the output of the reg to the Arduino across GND and 5+. I would test out different sizes to see what works best.


   
ReplyQuote
logwagon
(@logwagon)
Member
Joined: 5 years ago
Posts: 14
Topic starter  

Any sizes of diodes and caps for me to start with?  


   
ReplyQuote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

@logwagon

I would find a big fat rectifier diode with at least 2a and 24v. You could possibly use a Schottky, but am unsure of the power going through the car wires. Start with 1uf to 10uf cap in the car power side and .47uf on the input to the Arduino power. Ceramic if you have them.  I just usually swap them out to see what works best with ripple. 


   
ReplyQuote
logwagon
(@logwagon)
Member
Joined: 5 years ago
Posts: 14
Topic starter  

I have a buck converter to use instead of a voltage regulator.  That should deal with ripple?


   
ReplyQuote
triform
(@triform)
Member
Joined: 5 years ago
Posts: 324
 

@logwagon

You may be fine on that side, just have one in the 12v car side to try and smooth out surges from the alternator.


   
ReplyQuote