Arduino’s “Hello World!” : blinking a LED

As in all programming languages .. you start with a Hello World! code so you can see the basic structure for that language.
Because Arduino can’t just print ‘Hello World!’ (in fact it can but using an external device, like an LCD display, which I will describe in another tutorial) the easiest way is to blink a LED.
To do this, open the Arduino IDE and copy & paste the code I posted on tutorialpedia.org.
What it does is this : set a state switch than toggle between on and off after a delay of 1 second.

Arduino IDE

Arduino IDE


To verify a code on the Arduino IDE click the button marked with (1) and to upload it into the chip click the (2) button.
The electronic part is really simple too .. take a LED, and connect its anode (+) to pin 13 and it’s catode (-) to ground (GND).
Upload the program into the chip and then you’ll see the LED blinking 🙂
arduino hello world

arduino hello world


That was all 🙂

Categorized: Arduino

2 comments on “Arduino’s “Hello World!” : blinking a LED

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.