Mec25 Steve O'Toole Aurduino Lab: Equiptment needed: Aurduino Mega USB Cable Aurduino IDE software http://arduino.cc/en/main/software#.UxdSYIU2haE Lab: (1) establish connection with the aurduino using the IDE software down load the example BLINK program compile it and download it to the aurduino. verify that it is running on the Aurduino. (2) Modify the blink program to alternate from a long blink to a short blink consecutivly. (3) type in the following, compile and load to the Aurduino: void loop() { int i; for(i = 0; i < 5; i ++){ // run the following 5 times digitalWrite(13, HIGH); // set the LED on delay(250); // wait for a second digitalWrite(13, LOW); // set the LED off delay(250); // wait for a second } for(;;); // Spin your wheels forever } (4) Modify the above program to run for 100 times and change the interval to (25) What are the results? (5) type in the following, compile and load to the Aurduino: /* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ #include // Pin 13 has an LED connected on most Arduino boards. // give it a name: int led = 13; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { // wait for a second dash(); dot(); dot(); dot(); dot(); // wait for a second } void dash(){ digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1500); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(500); } void dot(){ digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(500); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(500); } (6) How is the structure in above program different from the one in section 3? Modify the program to send 2 CW charicters (_._. _ _._ ). Write up lab.