void setup() {
Serial.begin(9600);
pinMode(5, OUTPUT);
pinMode(18, OUTPUT);
pinMode(19, OUTPUT);
pinMode(25, OUTPUT);
pinMode(32, OUTPUT);
pinMode(33, OUTPUT);
}
void loop() {
Serial.print(" ");
Serial.println("Stop1");
digitalWrite(5, LOW);
digitalWrite(18, LOW);
digitalWrite(19, HIGH);
Serial.print(" ");
Serial.println("GO2");
digitalWrite(32, LOW);
digitalWrite(33, HIGH);
digitalWrite(25, LOW);
delay(1000);
for( int n = 10; n >= 1 ; n-- )
{
Serial.print(" ");
Serial.print(n);
delay(1000);
}
digitalWrite(19, LOW);
digitalWrite(18, HIGH);
digitalWrite(5, LOW);
digitalWrite(25, LOW);
digitalWrite(32, HIGH);
digitalWrite(33, LOW);
delay(1000);
Serial.print(" ");
Serial.println("Ready");
for( int n = 5; n >= 1 ; n-- )
{
Serial.print(" ");
Serial.print(n);
delay(1000);
}
Serial.print(" ");
Serial.println("Stop2");
digitalWrite(33, LOW);
digitalWrite(32, LOW);
digitalWrite(25, HIGH);
Serial.print(" ");
Serial.println("GO1");
digitalWrite(5, HIGH);
digitalWrite(18, LOW);
digitalWrite(19, LOW);
delay(1000);
for( int n = 10; n >= 1 ; n-- )
{
Serial.print(" ");
Serial.print(n);
delay(1000);
}
digitalWrite(19, LOW);
digitalWrite(18, HIGH);
digitalWrite(5, LOW);
digitalWrite(25, LOW);
digitalWrite(32, HIGH);
digitalWrite(33, LOW);
delay(1000);
Serial.print(" ");
Serial.println("Ready");
for( int n = 5; n >= 1 ; n-- )
{
Serial.print(" ");
Serial.print(n);
delay(1000);
}
}