Arduino stops working

I have a grasp of my problem…

Im simply looking for advice.

I use an Arduino uno to operate a servo motor, which adjusts vane position on a Variable Geometry turbo in my truck.

It works great, except for one issue: when I attach my snow plow to my truck (electric over hydraulic plow), it draws a lot of current. So much current that it pulls my battery voltage down, and my Arduino stops working. When this happens I basically have no control over my turbo, and the only way to get it to work again, is to turn off my truck, and restart it.

My current set up takes 12v power, and runs it through a buck resistor to make 5v for my Arduino. I think I should add a capacitor and diode to keep the arduino alive and prevent the plow from pulling voltage from my Arduino.

Is this a logical thing to do?
If yes, how would any of you do it? Capacitor and diode on the 12v feed, or after the buck resistor on the 5v feed?
If no, what other options do I have?

Thanks for any opinions

Place a capacitor either across the output of the converter, or near the input to the Arduino. You may need to play with values to find the right one, but I'd say start with 1,000uF. Being on the 5V side, you only need a 10V capacitor (which means it's smaller than a 25V capacitor on the 12V side).

No need for a diode: the switching transistor(s) on the converter are doing that job.

Do I read this correctly? You are only using a resistor to drop 12V down to 5V for the Arduino? You should be using a power supply like a buck converter.

2 Likes

A picture says more than 1000 words.
Send us your current circuit diagram to see how we can help you.

1 Like

Its not clear how you have this set up connected, or where

a diagram would help

Hi, @brownjeremy56

How are you regulating the 12V battery down to 5V for the Arduino?

Are you using a linear regulator, like a LM7812 or a buck DC to DC converter.

The buck converter would probably give better regulation in this instance.

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

I use a 120503 15w buck regulator that changes 12v to 5v.

Sorry about the delay in response. It took me a little while to find my wiring diagram.

Here’s the current set up. I was thinking of putting in a capacitor and diode in before or after the buck regulator.

The first thing I’d recommend is replacing the buck converter with a SEPIC converter. What you’re experiencing isn’t unexpected, as the 12V system in vehicles can be very harsh. Looking at your schematic, it doesn’t seem robust enough for a vehicle environment. For starters, you're missing termination resistors and transient protection.

Your truck surely has two 12 volt batteries in parallel, just like mine. Are all 4 terminals clean and tight? Is the electrolyte level correct in both? What is the age of your batteries?

Yes. Truck has 2 batteries. 8 months old, clean terminals. This controller works flawlessly when the plow isn’t on. I have logged over 50,000 miles and many long road trips with it. I’m pretty impressed really.

It is obvious that the electrical demands of the plow affect the Arduino. As previously stated, when moving the plow a lot and working it hard, the arduino will go dead.

That buck is rated for 8-22V input voltage. You could replace it with low dropout buck. There are some that can supply 5V 3A with 5.3V input voltage.

I just read about SEPIC regulators. It sounds like it may solve my problem. Thank you.

I’m not exactly an electronics guru. I’m just a guy with a basic understanding of AC and DC circuits that can poorly write C code.

I am uneducated on terminating resistors and transient protection. Could you help point me in the right direction?

I would start with this resource: Electrical Termination.

As for transient protection, I can't give a specific answer because it depends on the application.

Are you specifically talking about the CAN BUS network wiring( As they lack 60ohm resistors and require those resistors to prevent electrical interference and allows communication over tha Can Hi and Can Low wires)?

Also- I have read a little about transient protection.

Would the best way to create transient protection be to put zener diodes between my sensor signal wires and ground? Or would it be between 5v supply to sensors and ground?

I think you’re confusing the bus impedance with the resistors. On CAN, the bus has a 60-ohm impedance, which comes from two 120-ohm termination resistors placed at each end of the bus. This is what results in the 60-ohm impedance.

For more details, check out this link: TI Application Note on CAN Bus Termination https://www.ti.com/lit/an/slvafc1/slvafc1.pdf?ts=1652591872294.

I thought that those were terminating resistors. You had mentioned that my diagram lacks terminating resistors.

The only place I could see that required termination resistors were the CAN wires. I do not have them on the diagram because the canbus shield has them internally built in.

anyhow- back to my original concern: arduino stops working when aggressively operating snow plow.

I was thinking a diode and capacitor before the buck regulator would solve my problem, however; (as many have pointed out) the issue is most likely my buck regulator. You had suggested a SEPIC regulator. I looked up SEPIC regulators and am so confused as to which one to buy. I read through a bunch of tech sheets and cannot decide which one would be best to step 12v down to 5.

Does anyone have a recommendation on which one would work best for me?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.