Click the red flag When i build a robot with arduino and there is fire involved Arduino is not as easy as scratch. If you do want to learn arduino i recommend Paul McWhorter's toutorails
The code i did a screenshot of. I made it. int REDpin1=13; //Declaring ledpin1 as an int + setting it to pin 13 int YELLOWpin1=12; //Declaring ledpin2 as an int and setting it to pin 12 int YellowON=500; //Amount of time that the yellow led stays on int YellowOFF=500; //Amount of time that the yellow led stays off int RedON=500; //Amount of time that the red led stays on int RedOFF=500; //Amount of time that the red led stays off int RedLedBlink=4; //Number of times that the red led blinks int YellowLedBlink=2; //Number of times that the yellow led blinks //When using the "For" function, allways remember to add closing brackets at the end of code. void setup()//Void setup runs the code in the section ONCE //little note: allways use intergers and use comments too keep track of code { Serial.begin(9600); pinMode(REDpin1,OUTPUT); //Redled pin is declared to output voltage pinMode(YELLOWpin1,OUTPUT); //Yellowled Pin is declared to output voltage } void loop()//Void loop repeats lots of times { for (int j=1; j<=RedLedBlink; j=j+1) //means each time this loops j=one more digt and when it reaches 10 it will "pop out of the loop and continue the code below. Similar to the "reapet 10 times on scratch" //another explanation is that whenever j is less than or equal too 10 it loops. But when j is more than ten, is pops out an the following code runs { Serial.print("You are on red blink #:"); //Serial.println does 1 (New line) 2 (New line) 3 (New line) 4, and serial.print does 1234 (New line) 1234 Serial.println(j); digitalWrite(REDpin1, HIGH); //turn Redled on delay(RedON); //wait for the time specifided digitalWrite(REDpin1, LOW); //Turns REDled off delay(RedOFF);//wait for the time specifided } Serial.println(" "); Serial.println("Yellow LED cycle started"); for (int j=1; j<=YellowLedBlink; j=j+1) { Serial.print("You are on Yellow blink #:"); Serial.println(j); digitalWrite(YELLOWpin1, HIGH); //turn YELLOWled on delay(YellowON); //wait for the time specifided digitalWrite(YELLOWpin1, LOW); //Turns YELLOWled off delay(YellowOFF);//wait for the time specifided } //Never forget to close you code with a curly bracket ({) {Code goes here} Serial.println(" "); Serial.println("Red LED cycle started");