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?
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?
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: