So after burning up a couple Arduinos, I'm running out of ideas...

I am trying to power both a Solenoid valve and the Arduino(nano) with the same 12V-2amp power supply. I've tried it with both a relay breakout board, and via transistor switching, and both are giving me sporadic behavior for the Solenoid.

Early failures came from realizing that the solenoid water value was actually a coil (duh), and thus needed some kind of diode placed over its connections, so I'm assuming the back voltage spike is what fried the first two boards.

At first I added a small diode that helped but wasn't enough, so I beefed it up to a 3 amp "rectifier diode" 200PIV, which stopped the board frying.

Here is a link to the solenoid water valve. Not much to go on I'm afraid. 12V 0.02-0.8Mpa.

The behavior that I'm seeing now, is that the solenoid will engage, but it won't disengage.

Do I need to add a Capacitor for the solenoid? If so, any recommendations on sizing?

Fritzing Schematic

int relayPin = 2;

void setup() 
{ 
  pinMode(relayPin, OUTPUT);
  Serial.begin(115200);
} 


void loop() 
{ 
  Serial.println("starting");
  digitalWrite(relayPin, HIGH);
  delay(2000);
  digitalWrite(relayPin, LOW);
  delay(2000);
} 

bumped to the homepage by Community 10 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

  • The valve might require the water to be pressurized, to disengage properly. Using the water pressure instead of a sprint, like in regular solenoids. – Gerben Apr 6 '16 at 18:22
  • Sorry, I did leave out that it's a "normally closed" solenoid. I've tried direct powering with the 12v supply and it works fine that way. – ZacWolf Apr 6 '16 at 21:37
  • Please double check your transistor pinout. The TIP3055 you name doesn't come in the TO-92 case you depict. – sekdiy Apr 9 '16 at 23:00
  • The red wire is connected to the Arduino or the power supply? Not very clear in the picture. – user31481 Jul 7 '17 at 22:30
  • It's a prototyping board, so each vertical line (when laid horizontally) are all connected. So you'll see the the 12v power is provided to both the arduino and the solinoid – ZacWolf Aug 5 at 15:01

I have setup Arduino UNO and succeeded turning solenoid on when pot soil moisture dry, I was adding rain sensor when I mistakenly disvmcoonected the diode it fried my board, but atleast I had it working . I am using 24 volt normally closed solenoid , since I was monitoring over web I also had ethernet shield attached. And I was powering over ethernet using splitter and extracter.

enter image description here

The vin should only feed in 3.3 volt which you can get using stepdown buck converter , and use remains power to connect to solenoid. The transistor should be on the ground same as arduino nano the ground The top became messy later enter image description here

enter image description here

Try This Circuit...

  1. I think you are overpowering Arduino Board.

  2. Transistor Will not Carry heavy current for long duty period.

  3. It easy to use Simple 5v relay board then you don't have to worry about Current limits and all...

  • If you review my diagram this is the exactly same setup I had already outlined, just using a different transistor. I'll try again with a TIP120. – ZacWolf Aug 5 at 15:04

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.