Skip to content


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 :)

Posted in Arduino.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.


Get Adobe Flash playerPlugin by wpburn.com wordpress themes