Go Down

Topic: Control when current can flow (Read 5826 times) previous topic - next topic


I want to have my Arduino control when a device can receive current from a voltage source. So basically what I am envisioning is the device being hooked up to a voltage source other than the Arduino, with a "stopper" between the voltage source and the device. The stopper will be controlled by the Arduino, to allow the current to flow on command. So is there something feasible. I was thinking about a voltage regulator, but I'm not to sure.


James C4S

How much current are you trying to stop?  Better yet, why are you trying to do this?

A voltage regulator is just that, a regulator.  (Or perhaps you found one that has a on/off control?)  A simple transistor is an option.  It can be used as a solid-state switch.  Again, it depends on how much current you are talking about.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com


This is how I understand it - when the gods / hero members arrive at the new forum, they may have other input.

For DC current - a transistor.
For AC current - a relay.

If you are hooking up a a motor, you need to be careful and use diodes to keep the motor from mule kicking your arduino.

Connect the grounds together when using external DC power sources (hence the name common).

Have fun


I am using it to control 10 led's for a combined .17A.


I would suggest a simple transistor used as a switch. The arduino would control the gate (or base depending whether you use a MOSFET or BJT).


Jan 26, 2011, 06:28 pm Last Edit: Jan 26, 2011, 06:30 pm by pwillard Reason: 1
Like this:

Though I think we need to know a little more about your LED STRIP.


Thanks for the diagram. I worked on my own schematic using eagle. The file is public on my mobileme account https://files.me.com/john_rickman/5zq1om. It would be nice if it can be checked for correctness.


James C4S

That's not in your Public folder (or your Public folder has a password.)

Also more people can look at it if you distribute it as a PDF or Image (like JPG or PNG.)  Not everyone runs or has Eagle installed.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com


Sorry I forgot I protected it, the password is arduino for those of you that have eagle.

Here is a png of the same thing https://files.me.com/john_rickman/sqlspe also with password arduino


Sorry your diagram is totally wrong. Each LED needs it's own resistor, then need to be in the collector to positave, the base needs to be connected to the arduino through a resistor and the emitter should be at ground.


I'm with mike.   ... and I also don't know what that transistor is doing in your diagram.  Is that something you bought or something you are building?


Here is the modified schematic https://files.me.com/john_rickman/kmmc6v password arduino, the transistor is there to act as a switch.


Better but still not right. The arrow on the transistor is pointing in the wrong direction you need an NPN transistor here not a PNP as you have drawn. The emitter should be connected to ground not +5V. The base should be connected to a resistor with the other end to the arduino.


Jan 26, 2011, 11:47 pm Last Edit: Jan 26, 2011, 11:54 pm by pwillard Reason: 1
I updated my drawing so you can see what we are talking about   The only difference is that you should be using parallel LED's and resistors.  I am now assuming that you are not very well acquainted with schematic symbols... but we are being "particular"  or "picky" because it is the language we need to speak to pass our ideas and solutions around... so we need to get it right.   This is us helping you get it right.

Parts of a Transistor


Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131