Offline
Newbie
Karma: 0
Posts: 7
|
 |
« on: February 09, 2011, 08:05:23 pm » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Online
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #1 on: February 09, 2011, 08:41:18 pm » |
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
|
|
|
|
« Last Edit: February 09, 2011, 08:45:19 pm by retrolefty »
|
Logged
|
|
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 247
Posts: 16535
Available for Design & Build services
|
 |
« Reply #3 on: February 09, 2011, 08:57:45 pm » |
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?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #4 on: February 09, 2011, 09:08:32 pm » |
The Arduino is powered via USB.
|
|
|
|
|
Logged
|
|
|
|
|
SW Scotland
Offline
Edison Member
Karma: 6
Posts: 1053
Arduino rocks
|
 |
« Reply #5 on: February 10, 2011, 07:34:12 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #6 on: February 10, 2011, 09:03:43 pm » |
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.  Thanks for the input!
|
|
|
|
|
Logged
|
|
|
|
|
Ohio
Offline
Full Member
Karma: 0
Posts: 227
Arduino Hexapod
|
 |
« Reply #7 on: February 10, 2011, 10:11:00 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #8 on: February 16, 2011, 07:17:11 pm » |
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Online
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #9 on: February 17, 2011, 12:40:55 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Tesla Member
Karma: 71
Posts: 6624
Arduino rocks
|
 |
« Reply #10 on: February 17, 2011, 10:06:42 am » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 7
|
 |
« Reply #11 on: February 17, 2011, 11:00:01 am » |
Can you explain what you mean by adding "generous decoupling"?
|
|
|
|
|
Logged
|
|
|
|
|
Northern California (by San Francisco)
Offline
Full Member
Karma: 1
Posts: 238
|
 |
« Reply #12 on: February 19, 2011, 01:45:47 am » |
Aren't all your servos 6V rather than 12V?
|
|
|
|
|
Logged
|
|
|
|
|
Left Coast, CA (USA)
Online
Brattain Member
Karma: 279
Posts: 15316
Measurement changes behavior
|
 |
« Reply #13 on: February 19, 2011, 09:34:57 am » |
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
|
|
|
|
|
Logged
|
|
|
|
|
Saint Petersburg, Russia
Offline
Full Member
Karma: 2
Posts: 103
Amateur
|
 |
« Reply #14 on: February 19, 2011, 09:55:50 am » |
The keyword is optocoupler.
|
|
|
|
|
Logged
|
|
|
|
|
|