Go Down

Topic: How to get 12v from arduino vin pin? (Read 3317 times) previous topic - next topic

robogeek

Hi guys,

I was trying to power a solenoid valve, which requires 12vdc to operate.
So I connected a 9v and 3.7 v battery in series and then connected it to arduino vin and gnd pins.
And then I connect the valve to 5v on arduino (as power source) and gnd. I thought since I am powering from vin pin, I should read 12v on the valve,but instead I am reading 5v.

Am I suppose to get 12v reading ? If not, please some one explain how can I deliver 12v to the valve?

Thank you.

magnethead794


Hi guys,

I was trying to power a solenoid valve, which requires 12vdc to operate.
So I connected a 9v and 3.7 v battery in series and then connected it to arduino vin and gnd pins.
And then I connect the valve to 5v on arduino (as power source) and gnd. I thought since I am powering from vin pin, I should read 12v on the valve,but instead I am reading 5v.

Am I suppose to get 12v reading ? If not, please some one explain how can I deliver 12v to the valve?

Thank you.


Relay with 5 volt coil.

RuggedCircuits

Quote
And then I connect the valve to 5v on arduino (as power source) and gnd. I thought since I am powering from vin pin, I should read 12v on the valve,but instead I am reading 5v.


No, if you connect something to the 5V pin on the Arduino you will read 5V.

You can deliver 12V to the valve by applying your 9V+3.7V battery to it. My guess you actually want to control it (on/off) from the Arduino. There are lots of tutorials on this -- here's the first one from Google:

http://www.arduino.cc/playground/Learning/SolenoidTutorial

It uses an optoisolator, which is not strictly required in your application. Here's another one from Instructables:

http://www.instructables.com/id/Controlling-solenoids-with-arduino/

--
The Ruggeduino: compatible with Arduino UNO, 24V operation, all I/O's fused and protected

Go Up