Build it, code it, watch it work.
Real boards in 3D: the Arduino Uno, the Raspberry Pi Pico, the BBC micro:bit, and the Raspberry Pi inside the Mini-Net. Wire LEDs, buttons and knobs, run the code, and watch the board do exactly what it says. Drag to look around; every part is labelled.
Teachist Lab
Meet the board
Find the parts of an Arduino Uno, then run your first program.
Your task: Run the program and watch the L LED next to pin 13. Then change the times and run it again.
The Arduino Uno is a small computer on a board, built around one chip: the ATmega328P microcontroller. You write a program on a computer, send it down the USB cable, and the board runs it on its own.
Every Arduino program has two parts. setup() runs once when the board starts. loop() then runs again and again, for as long as the board has power.
TRY IT YOURSELF
C++ (Arduino)void setup() {pinMode(LED_BUILTIN, OUTPUT);}void loop() {digitalWrite(LED_BUILTIN, HIGH);delay();digitalWrite(LED_BUILTIN, LOW);delay();}
- Press Run to send the program to the board.
For teachers and parents
Each lesson has a task the lab checks: run the program, press the button, turn the knob. The numbers in the code can be changed, so learners can test an idea and see the result straight away. Progress is kept on this device only.
In the curriculum
CAPS Coding and Robotics for Grades 4 to 6 names Arduino, Raspberry Pi and micro:bit as examples of a robot's controller, the part that gathers input and gives output. It covers sensors and actuators such as DC and servo motors. In that phase robotics is coded with blocks; the lab shows the same ideas as the text code the boards actually run.
CAPS Coding and Robotics, Grades 4 to 6 (PDF)(opens in a new tab)