Visual programming with a real Arduino (1/4): first visual program
Students use Blockly with a real Arduino to turn an LED on, wait, and connect block order with observable board behavior.
- Embedded systems
- Secondary (ages 14–15)
- 50 min

LabsLand
Program a real Arduino Uno board with blocks and use peripherals
Laboratory information
With this laboratory, you can program a real Arduino Uno board. It also includes several input and output peripherals, similar to those that are often included in Arduino starter kits.
Those peripherals include LEDs, switches, buttons, an OLED display, a servo motor, etc.
What students do
Ready lesson plans
Preview classroom-ready activities that guide students through the real laboratory.
Students use Blockly with a real Arduino to turn an LED on, wait, and connect block order with observable board behavior.
Students build LED sequences with visual blocks, replace repeated copies with loops, and test timing on a real Arduino board.
Students use visual blocks to read an input, make a decision with a threshold, and verify LED behavior on a real Arduino board.
Video
Available experiments
Program your robot using blocks!
Teaching resources
Learn how to use the LEDs and how to print into the serial terminal.
Open resourceLearn how to detect button presses and use conditionals to react to them.
Open resourceContains some basic exercises along with solutions, which can be used by instructors as a starting point to their own courses and activities.
The provided DOCX contains several proposed activities, along with their visual-code solutions.
The activities and exercises that it includes are the following:
While the first activities are very introductory, the last ones are relatively complete.