Pages: [1]   Go Down
Author Topic: Switches rookie problem  (Read 863 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I fairly new with everything so this is proably an obvious question. What I'm trying to do is use a single on/off switch to turn on both a breadboard arduino connected to a 9V battery and a laser diode connected to 2x AAA's (3v). If I connected both ground (black) wires to one pole of the switch would flipping the switch cause both devices (breadboard arduino and laser) to turn on? Or is there something I don't know about the power that this would cause an issue?

Thanks for the help!
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
If I connected both ground (black) wires to one pole of the switch would flipping the switch cause both devices (breadboard arduino and laser) to turn on? Or is there something I don't know about the power that this would cause an issue?

Actual you can switch a common ground from the two power sources with their grounds tied together then on to a single pole switch and then on to the arduino's ground and breadboard ground.

It's a little unusual to do it that way, but if you only have a single pole power switch (two terminals) and want both parts to power on and off together, it would work as you wish.

 Using a double pole switch for each of the positive voltage sources is the more usual and better method, as if there was ever a DC current path for a device wired between both +3 and +9 sources there could be a discharge path through the two voltage sources. That is not a normal situation with most arduino projects using mixed voltages.

Lefty
« Last Edit: January 18, 2011, 11:53:55 pm by retrolefty » Logged

Sussex UK / CT USA
Offline Offline
Edison Member
*
Karma: 0
Posts: 1028
Forums forever
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
it would work as you wish.

... IF you get the switch in the right place. There must be nothing "below" it, between it and the tied-together grounds of the two power supplies and the Arduino.

But it would still make me nervous.
Logged

Leighton Buzzard, UK
Offline Offline
Edison Member
*
Karma: 21
Posts: 1339
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

single pole in the ground circuit would let current flow from +9 thru both circuits to +3 would it not
a picture of what you have in mind would help a lot
Logged

there are only 10 types of people
them that understands binary
and them that doesn't

0
Offline Offline
Shannon Member
****
Karma: 206
Posts: 12177
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What's the reverse breakdown voltage and leakage current for the laser diode?   It may just work if this diode acts as a diode smiley-wink
Logged

[ I won't respond to messages, use the forum please ]

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Current will flow through the circuit through the two power supplies and the Arduino if you simply lift the common ground.

Can you describe the detailed DC current path for say a 5volt battery and a 12volt battery sharing a common  ground but the common ground switched off to the arduino and all external components?

 I understand that there is a potential current path if there was a component that was wired directly  to both +5 and +12. Assume a typical +5v battery powred arduino switching a relay with a 12 volt battery. I can see no path for condition between the +5 and +12 voltage sources. But maybe I am missing something.

Use this as a talking reference if you wish: http://www.arduino.cc/playground/uploads/Main/relays.pdf

Thanks;

Lefty

« Last Edit: January 19, 2011, 10:56:15 pm by retrolefty » Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17294
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
It is simply NOT good practice even if it MIGHT work in SOME circumstances.

I can live with that.

 I just think there are circumstances where it would work without negative consequences. And that the simple Arduino activating a 12 volt relay is such a specific case.

Lefty
Logged

Pages: [1]   Go Up
Jump to: