How to Create a Blinking LED Project

In this tutorial, we will guide you through creating a simple blinking LED project using OmniBoard Studio.


Steps to Create a Blinking LED Project

1

Open OmniBoard Studio and create a new project.

2

Drag and drop the necessary blocks to create a node diagram that turns an LED on and off.

Try to explore and make the diagram you self or click here and find out one of the solutions.
  • Place Start block.
  • Connect the Start block to a While True block to create an infinite loop.
  • Then connect the While True block to a Toggle LED block. This will cause the LED to toggle between on and off states.
  • Finally connect the Timer block to the Toggle LED block. This will create the desired blinking effect. You can adjust the timer duration to change the blinking speed as you wish. (1000 milliseconds = 1 second)
Blinking LED Blocks
3

Make the correct circuit

  • Connect the GPIO pin asigned to the LED to the rezistor.
  • Connect the positive leg of the LED to a resistor, and then connect the other end of the LED to ground. You can determine which leg is positive and which is negative by finding the longer leg (positive) and shorter leg (negative) or flat side of the LED cover (negative).
Blinking LED Circuit
4

Compile the code and upload it to your microcontroller.

5

Watch your LED blink on and off at the interval you set with the Timer block!

Bonus informations