I am very new to Arduino and i am trying to controll a solenoid to fire at exact times. The problem that i have is that when i load the code nothing happens. When i reset the arduino the solenoid will sometimes fire once randomly but not every time. I need help/advice on how to fix this problem. I have included some pictures of my project incase you see something that is wrong. I also included the code that i am using. Any advice would be greatly appreciated.
I built my setup following these instructions
http://www.instructables.com/id/Controlling-solenoids-with-arduino/but i am using the Uno board
[/void setup(){
pinMode(13, OUTPUT);
digitalWrite(13, HIGH); // turn on
delay(1500); // the delay before it turns off
digitalWrite(13, LOW); // turn off
digitalWrite(13, HIGH);
delay(2000);
digitalWrite(13, LOW);
digitalWrite(13, HIGH);
delay(2500);
digitalWrite(13, LOW);
digitalWrite(13, HIGH);
delay(3000);
digitalWrite(13, LOW);
digitalWrite(13, HIGH);
delay(3500);
digitalWrite(13, LOW);
}
void loop(){
}]