Skip to content
LEARN · THE LAB · FREE

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

TEACHIST LABEXPLORE · WIRE · CODE
ARDUINO UNO · 0 OF 5 DONE
BUILDING THE BOARD
LESSON 1 OF 5

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)
  1. void setup() {
  2. pinMode(LED_BUILTIN, OUTPUT);
  3. }
  4. void loop() {
  5. digitalWrite(LED_BUILTIN, HIGH);
  6. delay();
  7. digitalWrite(LED_BUILTIN, LOW);
  8. delay();
  9. }
WHAT THE BOARD DIDSTOPPED
  1. 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)