Skip to content

Tutorial : Hello world (Blinking LED)

Mélanie Bats edited this page Mar 6, 2014 · 10 revisions

If you do not know how to create a new project have a look to the tutorial How to create a new project ?.

In this tutorial we will see how to create a blinking LED with the Arduino Designer.

Hardware

In this example we use the Arduino Uno platform and hardware components from the DFRobot Ardublock kit.

The hardware is defined as below :

Blinking LED Hardware

The DFRduino Uno R3 platform is used and the blue LED module is connected to the pin 13 of the Arduino board.

Sketch

For the sketch, blinking an LED means :

  • wait a certain delay
  • set the blue LED to ON
  • wait again
  • set the blue LED to OFF
  • loop...

Blinking LED Sketch

Upload

Finally, click on the Upload button from the toolbar to upload the code to the Arduino board.

The source of this example are available in: https://github.com/mbats/arduino/tree/master/examples/fr.obeo.dsl.arduino.examples.helloworld