Go Down

Topic: Protecting Arduino connected to a power supply? (Read 1 time) previous topic - next topic

burntbrowniez

We are working on a project involving servos, which will require the use of a power supply. As mentioned in tutorials on this site, the Arduino ground and power supply ground need to be tied together. What kind of protection can we put in the circuit to ensure that current doesn't backflow through the Arduino in the event of irregular (or even normal) function. We were thinking of something along the lines of a diode or a transistor to only allow one way current flow. Any suggestions?

retrolefty

#1
Feb 10, 2011, 02:41 am Last Edit: Feb 10, 2011, 02:45 am by retrolefty Reason: 1
Tying together a common ground connection between two different DC voltage sources is required in most systems to function correctly, but that in itself does not lend to any kind of 'back feeding' vulnerability. Sometimes there can be problems if it's possible that one voltage source can be on and the other off, so it's best if both power source be controlled with the same main power switch, or by other interlocking methods. Specific recommendations require specific system information.

Perhaps if you could post a schematic drawing of the complete system and power sources we could see what might be of concern to you, or have potential problems.

Lefty

burntbrowniez

Attached is a crude schematic, but essentially is what the final design will look like. The power supply we used is this one: http://www.newegg.com/Product/Product.aspx?Item=N82E16817170017. Any help would be appreciated!

CrossRoads

Well, unless you manage to reverse the +12 & Gnd, I don't see where'd you have issues. Just be careful not to put 12V on an arduino input/output pin, that would be bad (catastrophic).

Where does the arduino get its power from?
Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.


jackrae

What you have looks perfectly OK, with power for the Arduino coming via the USB.  However, why not also connect your +12 volt supply into the Arduino power system and let the Arduino self-select between USB or main power.

From a colour semantics point of view I'd suggest you do not use red for the ground connections.  Red to me (and no doubt a few others) suggest a positive voltage (such as +12v).  I'd also suggest black for the ground connection.

jack

burntbrowniez

Is there an advantage to powering the Arduino with the +12V supply rather than just sticking with USB? Also, I agree that my color selection wasn't the best. These settings were default and I just wanted a quick schematic for feedback. I didn't realize the color scheme would throw people off.  :smiley-roll:

Thanks for the input!

vinceherman

Which servos are you using?
Not all hobby servos can handle 12v.  Most of mine let the magic smoke out at that voltage.
Many of the newer ones can handle it though.


retrolefty


Which servos are you using?
Not all hobby servos can handle 12v.  Most of mine let the magic smoke out at that voltage.
Many of the newer ones can handle it though.


Can you give us a link to some of those 'newer ones' that can handle +12vdc?

Lefty

MarkT

Quote
What you have looks perfectly OK, with power for the Arduino coming via the USB.  However, why not also connect your +12 volt supply into the Arduino power system and let the Arduino self-select between USB or main power.
.

That's not a great idea - the 12V supply to the servos will be very noisy.  If you do this you want another level of voltage regulation (such as a 10V regulator and decoupling) between the "raw" power and Arduino's Vin.

Also the 12V supply may be crowbarred on overload and reset the Arduino...  In general separate supplies for logic and big motors is a good idea.  If the maximum stall current for all the servos exceeds the power supply's rating, I would strongly suggest keeping supplies separate.

Actually looking at the PSU you select it seems to be a computer supply, not one designed for inductive loads...  I would add generous decoupling.
[ I won't respond to messages, use the forum please ]

burntbrowniez

Can you explain what you mean by adding "generous decoupling"?

Daanii

Aren't all your servos 6V rather than 12V?

retrolefty


Aren't all your servos 6V rather than 12V?


As far as I know, except for possibly a few specialty item servos, 99% of typical R/C servos require 4.8 to 6vdc power.

Lefty


Vanyamba


Go Up