Sharjah, UAE GST
Beginner30-45 min setup, then 9 lessons of 25-60 min (about 6 hours in all)9 parts9 lessonsCode for 9

Start here: Arduino Ultrasonic Distance & Parking Learning Kit

Everything for the bench, in the order you need it: set up the computer and the board, then the lessons. Keep this page open while you build.

Don't have the kit yet? AED 85.00 3 packed · ships now What's in the box →

Start here: your learning path

Follow these 7 steps before Lesson 1. They take about 30-45 minutes and prove that your computer, cable and UNO all work - so if something goes wrong later, you know it is the wiring, not the setup.

  1. 0Start here30-45 min · setup
  2. 1 Measure Distance with Sound 30-45 min
  3. 2 Traffic-Light Distance Indicator 30 min
  4. 3 Parking Beeper 30 min
  5. 4 Blind Zone & No Echo 25 min
  6. 5 Calibrate Your Sensor 40 min Extra equipment
  7. 6 Angles & Surfaces 40 min Extra equipment
  8. 7 Smoothing Noisy Readings 30 min
  9. 8 OLED Distance Meter 45 min Adult help
  10. 9 Everything Together - Distance Lab 45-60 min Extra equipment

Lessons 1-7 need only the kit, a computer and things from home such as a book and a ruler. Lesson 8 adds the OLED and needs two free libraries (and an adult only if the OLED has no pins). Lesson 9's battery demo needs a 9V battery, which is not in the box.

Safety rules for every lesson
  • Unplug the USB cable (and the battery) before you add, move or remove any wire.
  • LEDs: the long leg is +, and every LED gets its own 220 Ω resistor.
  • Never connect 5V straight to GND.
  • Keep the buzzer away from your ears; type sound off (Lesson 9) during long tests.
  • If anything gets hot or smells, or the UNO keeps restarting, unplug at once.
  • Use only USB power or the 9V battery in its holder, plugged into the UNO's round DC jack - never mains electricity.
  • This is a learning model, not a parking or safety device. Never use it on a vehicle.
  • Small parts: keep them away from young children.
  1. 1

    Check the parts

    • Open the box and lay the parts out on a clear table.
    • Tick each one off against the photos and descriptions below.

    Safety: Small parts: keep them away from young children and pets.

    UNO R3 Development Board ATmega328P Microcontroller with US…
    1 × UNO R3 Development Board ATmega328P Microcontro… Board marked UNO with a square USB socket. The cable has a square plug at one end.
    HC-SR04 Ultrasonic Distance Sensor Module for Arduino, Rasp…
    1 × HC-SR04 Ultrasonic Distance Sensor Module for A… Board with two round "eyes" and 4 pins: VCC, TRIG, ECHO, GND.
    Active Buzzer Module 5V DC, Plug-and- Alarm Output,Electron…
    1 × Active Buzzer Module 5V DC, Plug-and- Alarm Out… Small board with a round black buzzer and 3 pins (VCC, GND, I/O).
    1 × 5MM LED R-Y-G Red, yellow and green 5 mm LEDs. The longer leg is +.
    RESISTOR ASSORTED 220-1K-10K
    1 × RESISTOR ASSORTED 220-1K-10K Small beige parts with coloured bands: 220 Ω red-red-brown, 1 kΩ brown-black-red, 10 kΩ brown-black-orange.
    400 Tie Point Solderless Breadboard - Half Size Prototyping…
    1 × 400 Tie Point Solderless Breadboard - Half Size… White board with 400 holes and red and blue lines along the edges.
    Jumper Wire Assorted Pack 120 Pieces - Male-to-Male, Male-t…
    1 × Jumper Wire Assorted Pack 120 Pieces - Male-to-… Rainbow ribbon of wires: male-male, male-female and female-female (10 cm).
    0.96" OLED Display Module 128x64 I2C (White)
    1 × 0.96" OLED Display Module 128x64 I2C (White) Small display with a glass screen and 4 pins labelled GND, VCC, SCL and SDA (the order varies).
    9V Battery Holder Case with 5.5x2.1mm DC Male Plug, Onboard…
    1 × 9V Battery Holder Case with 5.5x2.1mm DC Male P… Black box for a 9V battery, with a round plug on a lead. The battery is not included.

    Photos are the catalogue pictures of each part. Your parts may differ slightly in colour - go by the shape, the pins and the labels.

    You should see: You have all 9 items listed below.

    If it doesn't work
    Something is missing or brokenSend us a photo with your order number on WhatsApp.
    Breadboard
    A white board full of holes that lets you connect parts without soldering.
  2. 2

    Check what else you need

    • Read the "You also need" list below.
    • Find a computer you are allowed to install software on, with a free USB port.
    You also need (not in the box)ForNote
    A computer (Windows, macOS or Linux) where you can install the free Arduino IDE 2 - or a Chromebook with the Arduino Cloud EditorAll lessons
    A free USB-A port, or an adapter, for the kit's USB cableAll lessons
    An internet connection, to download the IDE, the libraries and the codeStart here, Lesson 8
    A ruler or tape measure, and a book or flat piece of cardLessons 1-9
    A cushion or jumper, a bottle and a pencil, to test targetsLessons 4 and 6
    A spreadsheet program (Google Sheets, Excel, LibreOffice)Lesson 5 - optional
    A 9V batteryLesson 9 battery demo - optionalNot included. The holder is in the box.
    A 4-pin header and solderingLesson 8 - only if your OLED has no pins fittedAdult only
    A multimeterOptionalNo lesson needs one. Useful for an adult checking 5V and GND.

    You should see: You have a computer, a free USB port, an internet connection, a ruler and a book.

  3. 3

    Set up the computer

    • Go to arduino.cc/en/software and download the free Arduino IDE 2 for your computer (Windows, macOS or Linux).
    • Install it and open it. If it asks to install drivers, allow it.
    • On a Chromebook, use the free Arduino Cloud Editor in the browser instead (it needs a free Arduino account).

    You should see: The Arduino IDE opens with a new, empty sketch that contains setup() and loop().

    If it doesn't work
    The download or install is blockedSchool and work computers often block installs. Ask an adult or use a home computer.
    IDE
    The program where you write code and send it to the UNO.
    Sketch
    An Arduino program.
  4. 4

    Connect the UNO with its USB cable

    • Plug the square end of the USB cable into the UNO and the flat end into the computer.
    • Nothing else is connected to the UNO yet.

    Safety: Put the UNO on a dry table, away from coins, paper clips and other metal - they can touch the pins underneath and cause a short.

    You should see: A small power light on the UNO (marked ON or PWR) lights up. The light marked L may already be blinking - some boards come with Blink loaded.

    If it doesn't work
    No light at allPush the plug fully into the UNO. Try another USB port, then another cable.
  5. 5

    Select the board and the port

    • In the IDE open Tools → Board → Arduino AVR Boards → Arduino Uno.
    • Open Tools → Port and choose your UNO: COM3, COM4… on Windows, /dev/cu.usbserial… or /dev/cu.usbmodem… on a Mac, /dev/ttyUSB0 or /dev/ttyACM0 on Linux.
    • Not sure which one? Unplug the UNO, look at the list, plug it back in: the new entry is your UNO.

    You should see: The bottom of the IDE window shows "Arduino Uno" and your port.

    If it doesn't work
    The Port menu is greyed out or emptySome USB cables only charge and carry no data. Try the kit's cable in another port, or another data cable.
    Windows shows "USB2.0-Serial" or an unknown deviceLook at the small chip next to the UNO's USB socket. If it says CH340, the computer needs the free CH340 driver - ask us on WhatsApp and we'll send the link.
    Mac: no new port appearsDo the same CH340 check. After installing a driver, you may need to allow it in System Settings → Privacy & Security.
    Linux: "permission denied" on the portAsk an adult to add your user to the dialout group (sudo usermod -a -G dialout $USER), then log out and back in.
    Port
    The name your computer gives the USB connection to the UNO.
  6. 6

    Upload Blink

    • Open File → Examples → 01.Basics → Blink.
    • Click the round Upload button (the → arrow) at the top left.
    • Wait for "Done uploading." at the bottom of the window.

    You should see: The small light marked L (next to pin 13) blinks: 1 second on, 1 second off.

    Try it: Change both delay(1000) lines to delay(200) and upload again. The L light blinks five times faster. Now you know you can change code and upload it.

    If it doesn't work
    "can't open device" or "Access is denied"The port is busy or wrong. Close other Arduino windows, choose the port again (step 5) and try again.
    "programmer is not responding"The wrong board or port is selected, or the cable carries no data. Check step 5 and try another cable.
    A red "Compilation error"The example was changed by accident. Close it without saving and open Blink again from File → Examples.
    "Done uploading" but L doesn't changeYour board may already have been running Blink. Do the change below (delay 200) and look for faster blinking.
    Upload
    Sending your sketch from the computer into the UNO. It stays there even after you unplug.
    Compile
    The IDE checks your sketch and turns it into code the UNO understands. It happens automatically before every upload.
  7. 7

    Continue to Lesson 1

    • Unplug the USB cable.
    • Open Lesson 1: Measure Distance with Sound and follow it step by step.
    • Do the lessons in order: each one builds on the last, and the wiring stays in place.

    You should see: You are ready to build.

    Open Lesson 1 → Printable manual
Try a lesson in the simulator first

Every lesson runs on screen with the same code and pins. It is a good way to check your code - but it is not the real breadboard:

  • The simulator checks your code and pins, not your wiring: it does not know which way round an LED is, or whether a resistor is fitted.
  • Distances come from a slider, so readings are perfectly steady and every ping comes back. Soft, thin and tilted targets (Lessons 4-6) need the real sensor.
  • Power is not simulated, so the 9V battery demo in Lesson 9 needs the real kit.
  • The OLED is drawn on screen and its text appears in the console; the real IDE also needs the Adafruit libraries installed.
Open the simulator →

Stuck?

Most problems are one wire in the wrong hole. Check these first:

  1. Unplug, then compare every wire with the lesson's diagram and table. One pin off is the most common problem.
  2. Sensor: are VCC, TRIG, ECHO and GND wired by their labels, with TRIG on 9 and ECHO on 10?
  3. LEDs: is the long leg on the resistor side?
  4. Is the − rail connected to a UNO GND pin, and the + rail to 5V?
  5. Serial Monitor: is it set to 9600 baud (and "New Line" when you type commands)?
  6. Upload problems: is Tools → Board set to Arduino Uno and Tools → Port to your UNO? (Start here, step 5.)
Still stuck? Ask us on WhatsApp. Send this message with a photo of your wiring - it tells us exactly where you are.
Hi DIY KIT, I'm stuck on the Arduino Ultrasonic Distance & Parking Learning Kit.
Lesson: __
Step number: __
What should happen: __
What happens instead: __
Error message (copied exactly): __
I'll attach a photo of my wiring.
Message us on WhatsApp

9 projects in this kit

Every one is built from the parts in the box, plus the basics listed under You'll also need.

Free with this kit · print or PDF The complete kit manual Everything on this page, ready for the bench: a parts checklist, wiring tables and step-by-step instructions for every project. 9 step-by-step guides Parts checklist QR to every project Open the manual
Build guide · Arduino UNO · Beginner

Arduino Ultrasonic Distance & Parking Learning Kit

Start here sets up your computer. Then 9 lessons build one tabletop distance station step by step: each lesson adds a part or an idea and keeps the wiring from the one before. Every lesson page has a connection diagram, a wiring table, numbered steps, the code, what you should see and a fix-it table.

Start here + 9 lessons9 parts in the boxAbout 6 hoursSerial Monitor at 9600 baudLearning model - not a safety device

What this kit teaches

Measure · Lessons 1 and 5

Time an ultrasonic echo with pulseIn(), turn it into centimetres, and check the sensor against a ruler: error and spread.

Indicate · Lessons 2, 3 and 8

Show distance zones with green, yellow and red LEDs, slow and fast beeps, and big numbers on the OLED.

Investigate · Lessons 4, 6 and 7

Find the blind zone, see soft and tilted targets go missing, and smooth noisy readings with an average and a median.

Learning model only: never rely on this build for vehicle collision prevention, reversing assistance, industrial safety or unattended protection.

The distance zones (every lesson)

DistanceLEDBuzzerZone
50 cm or moreGreenSilentCLEAR
20 to 49 cmYellowSilentCAUTION
10 to 19 cmRedSlow beepsNEAR
Under 10 cmRedFast beepsCRITICAL
No echoYellow blinkingSilentNO_ECHO - unknown, not clear

Desk-size learning zones, not vehicle clearances or safety limits. They are named at the top of each sketch (CLEAR_CM, NEAR_CM, CRITICAL_CM), so you can change them.

One pin plan

PartUNO pinLessons
Red / yellow / green LED (each through 220 ohm)5 / 6 / 72, 3, 4, 9
Active buzzer I/O83, 4, 9
HC-SR04 TRIG / ECHO9 / 10All
OLED SDA / SCLA4 / A58, 9
All VCC and GND pins5V and GND railsAll

Lesson 9 commands

TypeWhat it does
helpShows the list of commands.
statusRunning or paused, sound on or off, and whether the OLED was found.
scanLists the I2C addresses that answer - the OLED is 0x3C or 0x3D.
run / pauseStarts or stops measuring; pause turns every output off.
sound on / sound offTurns the beeps on or off; the LEDs keep working.
testLights red, yellow and green in turn and beeps once.

Serial Monitor at 9600 baud with "New Line" selected.

What the sensor can and cannot do

The HC-SR04 measures about 2 cm to 4 m, but only when the echo comes back. Soft, thin, round or tilted targets can return no echo even when they are right in front of it - Lessons 4 and 6 show this. Readings also change slightly with temperature, because the speed of sound does. Lesson 5 measures your own sensor's error against a ruler.

Status

Wiring design-reviewed; all 9 sketches compile for the Arduino UNO with no warnings and run in the kit simulator. The complete physical assembly has not been bench-tested. Parts may differ slightly from the photos - go by the labels printed on your parts.

Build steps (10)

Tick steps off as you go — your place is kept on this device.

0 / 10
ℹ These steps come from the build reference recorded for this kit. The firmware is in the Code section below.

Code (9 files)

One sketch per project, written for the boards in this kit. Open a project to read it with its wiring, or copy it there.

9
1,206
arduino
ℹ Pin numbers and thresholds are written for the board in this kit. Change the board and the pin map changes with it — ask and we'll adjust it.
Bot
ECHO
Online — usually replies instantly
Catalog assistant: verify final stock/price on the product page before checkout.