Thursday, 13 June 2013

Try to use Arduino board - Blink

We are trying to use Arduino board to test a basic and sample program today.  For blinking the LED light, the algorithm are as shown in following:

1. Set the pin 13 as the output
2. Set the voltage of pin 13 to be high at the beginning.
3. After 1 second, set the voltage of pin 13 to be low.
4. Repeat the second and third step.

The basic step is shown as following:
1. Click "Verify" to compile the program.
2. Connect the Arduino board to the PC.
3. Click "upload" to transfer the compiled code to Arduino board.
4. Observe the experimental result as shown in following Figure.


                                                                          Figure 1: LED is lighted



                                                             Figure 2: LED is extinct after one second












No comments:

Post a Comment