Arduino

Arduino is a tiny computer: it switches voltage on its pins, reads buttons and follows your program. Wire the board to an LED, a button and a buzzer.

Build the program from ready-made blocks while the real Arduino C++ code writes itself alongside. Blink an LED, send SOS, make traffic lights, play a tune and build a mini piano.

In this lab

  • Arduino pins
  • blocks and C++ code
  • LED, button, buzzer
  • traffic lights, mini piano, reaction game

What you learn

An Arduino is a small computer (a microcontroller): it puts 0 or 5 V on its pins, reads a button and does this following a program. Here the program is built from blocks, and real Arduino C++ code appears beside it automatically. The aim is to understand the idea "circuit + program = device".

Tasks

  1. Drive an LED from a pin: on, off, blinking
  2. Control timing with delay and build signals such as SOS
  3. Read a button (INPUT_PULLUP) and act on a condition
  4. Make sounds and tunes with a buzzer
  5. Make a counter with a variable and the serial monitor

What you can build

  • Beacon — A light flashing at equal intervals.
  • SOS signal — Morse code · · · — — — · · · with light and sound.
  • Traffic light — Red, yellow and green in turn with realistic timings.
  • Mini piano — Each button plays its own note (C, D, E …).
  • Reaction game — The LED lights at a random moment and your press time is printed to Serial.
  • Counter — Count people coming in with button presses.

Virtual Lab › Robotics

Related labs

  • Robotics basics
  • Arduino LED
  • Arduino sensors
  • Arduino servo
  • Arduino thermometer
  • Arduino LCD