Arduino Motor and Relay Control
By LoonOfTheLakeArduino, used to control a relay and motor.
// LED chaser
void setup ()
{
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(8,OUTPUT);
pinMode(7,OUTPUT);
pinMode(4,OUTPUT);
pinMode(4,OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(12, HIGH);
delay(1000);
digitalWrite(12, LOW);
delay(1000);
}