Arduino Masterclass — Toghrul Guluzade

Build real
electronics.
Today.

In 90 minutes you'll go from zero to wiring a two-player reaction game. No experience needed — just curiosity.

⏱ 90 minutes
👫 Work in pairs
🎮 Build a game
🔌 No soldering
Let's start
01 — FOUNDATIONS

How electricity works

Before touching any component, you need to understand the three ideas that explain everything in electronics.

Voltage (V)

Voltage is the push that moves electricity. Think of it like water pressure in a pipe — higher pressure pushes more water. We measure it in Volts. Your Arduino runs on 5V.

🌊

Current (A)

Current is the flow of electrons — how much electricity is actually moving. Like the amount of water flowing through a pipe. We measure it in Amperes (A) or milliamps (mA).

🚧

Resistance (Ω)

Resistance slows down the flow of electricity. Like a narrow section in a pipe. We measure it in Ohms (Ω). This is why we use resistors to protect LEDs from burning out.

🔁

Circuits need a loop

Electricity always flows from + to − (positive to negative / from high voltage to low). If the loop is broken anywhere, nothing works. This is called an open circuit.

// LIVE DEMO — watch the electrons flow from + to −
+ 5V 220Ω LED GND (−) ← + flows this way

Blue = current flowing + →    Red = returning to −    The resistor protects the LED

💡

Ohm's Law — one formula to rule them all

Everything in electronics comes back to: V = I × R (Voltage = Current × Resistance). Rearranged to find resistance: R = V ÷ I. This is exactly how we chose the 220Ω resistor below.

HOW WE CHOSE 220Ω FOR OUR LED

🔋
5V
Supply voltage
Arduino gives us 5 volts
💡
2V
LED forward voltage
LED "uses up" ~2V itself
20mA
Safe LED current
Max before LED burns out

The calculation:

Voltage across resistor = 5V − 2V = 3V
R = V ÷ I = 3V ÷ 0.02A = 150Ω minimum
✓ We use 220Ω — a bit higher = safer + dimmer is fine

🧮 TRY IT YOURSELF — RESISTOR CALCULATOR

Enter values above to calculate ↑
02 — YOUR KIT

Meet your components

Click each component to learn what it does and how it fits in a circuit.

Breadboard
ESSENTIAL

Breadboard

Tap to learn more

A breadboard lets you build circuits without soldering. Holes in the same row are connected underneath. The red (+) and blue (−) rails run along the edges and carry power.

Rows run horizontally (A–E and F–J are separate). The center gap separates the two halves. Push component legs straight in.

💡 Fun fact: "Bread" board comes from the 1960s when people literally used wooden bread boards to prototype circuits with nails!
Resistor
PROTECTOR

Resistor

Tap to learn more

Resistors limit current to protect components. The colored bands tell you its value in Ohms (Ω). We use 220Ω resistors to protect LEDs in this project.

Unlike LEDs, resistors have no polarity — you can put them in either way round.

🎨 Reading color bands: Brown=1, Red=2, Orange=3, Yellow=4, Green=5, Blue=6, Violet=7, Gray=8, White=9, Gold=÷10
LED
LIGHT

LED

Tap to learn more

Light Emitting Diode. Converts electrical current directly into light. Way more efficient than a bulb — no heat wasted.

Polarity matters! The longer leg is + (anode) and goes toward power. The shorter leg is − (cathode) and goes to GND. Put it in backwards and it won't light — but won't break either.

⚠️ Never connect an LED directly to 5V without a resistor — it will burn out in seconds!
Push button
INPUT

Push Button

Tap to learn more

A momentary button closes a circuit only while pressed. Our 4-leg button has two pairs of legs — legs on the same side are always connected, legs across the gap connect only when pressed.

We use Arduino's internal pull-up resistor — so buttons wire to GND, and pressing reads as LOW (not HIGH).

🎮 Every gaming controller uses the same principle — millions of tiny momentary buttons!
Buzzer
SOUND

Buzzer

Tap to learn more

An active buzzer makes sound when you apply voltage — no fancy code needed, just HIGH and LOW. It has a small vibrating disk inside that moves air to create sound.

Polarity matters! The + leg (longer, or marked +) goes to the Arduino pin, the − leg goes to GND.

🎵 The "remove seal" sticker covers a small hole. Remove it before use or the sound will be muffled!
🌈
CONNECT

Jumper Wires

Tap to learn more

Jumper wires connect components on a breadboard and to Arduino pins. Use colors as a convention: red for power (+), black for ground (−), other colors for signals.

It doesn't actually matter electrically — but consistent colors help you and others read your circuit and spot mistakes.

🔴 Pro tip: always use red for + and black for GND. Future you will thank present you.
03 — THE BRAIN

The Arduino Uno

The Arduino is a tiny computer that reads inputs (buttons, sensors) and controls outputs (LEDs, buzzers) based on code you give it.

Arduino Uno board

GND (Ground / −)

The negative terminal. Every component's negative leg must connect here to complete the circuit.

5V Power (+)

Supplies 5 volts. Use this to power components that need constant power (like the pull-up reference).

Digital Pins (2–13)

Can be set as INPUT or OUTPUT. Read buttons (HIGH/LOW) or control LEDs and buzzers. Our game uses pins 2, 4, 6, 7, 8, 11.

USB Port

Powers the board and transfers your code from the computer. The Arduino IDE sends code here when you click Upload.

Reset Button

Restarts the program from the beginning. Useful when you want to restart a game without unplugging.

Pin 13 — Built-in LED

There's an LED soldered onto the board connected to pin 13. Great for quick tests — no wiring needed.

04 — BUILD IT

Your two projects

Start with Blink to get confident, then build the full reaction game.

🎮

Reaction Game — 2 players

A yellow LED lights up at a random moment. Whoever presses their button first wins the round. 3 rounds, best of 3 wins.

ALL CONNECTIONS

ComponentArduino PinNotes
Button P1Pin 2 → GNDUses internal pull-up. No resistor needed!
Button P2Pin 4 → GNDUses internal pull-up. No resistor needed!
Green LED (P1)Pin 7+ leg → 220Ω → pin 7. − leg → GND.
Red LED (P2)Pin 8+ leg → 220Ω → pin 8. − leg → GND.
Yellow LED (GO)Pin 6+ leg → 220Ω → pin 6. − leg → GND.
Buzzer (+)Pin 11+ leg to pin 11. − leg to GND. Remove seal!

CIRCUIT DIAGRAM

Reaction game wiring diagram

HOW THE GAME WORKS

  • 01
    Hold both buttons for 2 seconds — both player LEDs light up and the buzzer beeps. Game is starting!
  • 02
    Yellow LED blinks 3 times — this is your "get ready" warning. Fingers off buttons!
  • 03
    Random wait — between 2 and 5 seconds of nothing. Don't press yet!
  • 04
    Yellow LED lights solid — GO! Press your button as fast as possible.
  • 05
    Winner's LED lights up and buzzer plays a beep. Serial Monitor shows your reaction time in milliseconds.
  • 06
    3 rounds total. Whoever wins 2 rounds wins the match — and gets the victory melody! 🎵

⚠️ False start rule

Press your button before the yellow LED lights up and you automatically lose that round. Your LED flashes with a penalty buzzer. Be patient!

YOUR CIRCUIT DIAGRAMS

// Insert your printed wiring diagrams here

// PROJECT 1 — BLINK

Blink wiring diagram

// PROJECT 2 — REACTION GAME

Reaction game wiring diagram