Coding the Blink project

Open the Arduino IDE and then watch the video. Do not start coding until you have watched the whole video. The exact code will be explained again step-by-step in the slides following the video.

Take note how when you open the IDE there will be a coding page with some code in it already. The sketch (as we call it in Arduino speak), will have a section called the setup and the loop pre-written. This is to help you, because every Arduino sketch needs both these parts.

You will write your code in between the curly brackets { write code here....} for each of the sections. Sometimes, (not often) you might leave one of the sections empty, but you will still need to have the loop there, in the code. Do not delete it!

Blinking challenge

Once you had uploaded the code, did your LED blink on and off?

And once you were done, did you manage the challenge to make the LED blink faster?

Playing with your code is how you will learn.

Try to make the LED blink once fast (say 200ms) and once slowly (1000ms). In the loop it will repeat those actions.

You can use Ctrl+C and Ctrl+V to copy and paste code exactly the way you can with most other applications.

Each time you make a change to your code on your computer, you will need to upload the code (pressing the arrow in the circle) to your Arduino. Then you will see the changes implimented.

Complete and Continue