NSK Electronics Electronics Basics

Electronics Basics · Lesson 5

Breadboard& Relays

Build without soldering: how a breadboard’s rows and rails connect, how to add a switch and LED, how a relay switches a bigger load, and how a potentiometer (pot) gives a smooth analog voltage — with clear diagrams and animated demos.

What you will learn

Breadboard

Rows, power rails, and where parts plug in.

Switches + LED

Pushbutton / toggle, then a working light circuit.

Relay

Coil vs contacts — COM, NO, NC in plain English.

Potentiometer

VCC, GND, and wiper — turn a knob for analog voltage.

What is a breadboard?

A solderless breadboard is a plastic board full of holes. Under those holes are metal clips that grip component leads and jumper wires. You push parts in — no soldering — so you can try ideas quickly and change them later.

Top-down view of a white solderless breadboard with red and blue power rails, jumper wires, an LED, and a resistor.

Typical hobby breadboard: centre area for parts, coloured rails along the edges for power.

How the holes connect

Think of the board as two halves, split by the centre trench (where many ICs sit). Yellow bars in the diagram show what is joined underneath:

  • Numbered rows (A–E and F–J) — five holes in a row share one horizontal metal strip. The centre gap isolates left from right — holes do not connect across the trench.
  • Power rails — the long columns marked + (often red) and − (often blue/black) are connected vertically along each rail. All + holes on that rail share power; all − holes share ground.
Solderless breadboard internal connections: yellow bars show horizontal ties within columns A–E and F–J on each numbered row, not across the centre gap; power rails (+ and −) connect vertically along each rail.

Yellow = joined underneath. Rows tie horizontally within A–E and within F–J (not across the centre gap). Power rails (+/−) connect vertically. Jump a wire across the gap if you need both halves linked.

How to use a breadboard

  1. Power first. Connect your supply (battery or adapter) to the + and − rails. Use red for +, black for −. Many boards have rails on both sides — jumper across if you need both sides powered.
  2. Place parts in the centre. Each lead goes in its own hole. Two leads in the same 5-hole row are shorted together.
  3. Use jumpers for wiring. Short wires link a component row to a rail or to another part. Keep colours consistent: red = power, black = ground.
  4. ICs straddle the centre trench so each pin lands on its own row.

Wiring tips: push leads straight in (not bent sideways); leave a little slack so wires don’t pull out; double-check that + and − never share a row; and keep the board tidy — messy wiring is the #1 beginner bug.

Switches — pushbutton vs toggle

A switch opens or closes a path so current can flow — or not.

Pushbutton

Spring-loaded. Hold = ON (momentary), release = OFF. Good for “press to light” or microcontroller inputs.

Toggle / slide

Stays where you leave it — ON or OFF until you flip it again. Good for power switches.

On a breadboard

Use a tactile (4-pin) button or a 2-pin slide switch. Pins that belong together must land on the right rows.

Wire a switch + LED on the breadboard

Same idea as the Ohm’s Law LED demo: battery → switch → resistor → LED → ground. The resistor keeps LED current safe.

Breadboard with battery rails, pushbutton, resistor, red LED, and jumper wires forming a simple series circuit.

Example layout: power on the rails, switch controlling the path to the resistor and LED.

  1. Connect battery + to the red rail, − to the blue/black rail.
  2. Place the switch so one side ties to the + rail (via a jumper) and the other side goes to a free row.
  3. From that row, add a series resistor (e.g. 220 Ω for a 5 V LED).
  4. LED: long leg (anode) toward the resistor side, short leg (cathode) to the − rail.
  5. Press / flip the switch — the LED should light.

Try it: switch turns the LED on

Flip the switch. When closed, current flows battery → switch → resistor → LED → ground. Watch the wire path light up and the LED glow.

Battery → switch → resistor → LED → GND

Switch open — no path for current. Flip to close the circuit.

What is a relay?

A relay is an electrically controlled switch. A small signal through the coil flips metal contacts so you can turn a bigger load on or off — a lamp, fan, or motor — without that load’s current going through your button or microcontroller pin.

The coil circuit and the load circuit stay electrically isolated: magnetism moves the switch; the two sides do not share the same wires.

Relay pins and symbol

A typical hobby relay is a 5-pin package: two pins for the coil, plus three for the switch — COM, NO, and NC.

Coil pins control the switch. NC, NO, and COM make up the switch.

Typical 5-pin relay: housing with Coil, COM, NC, and NO pins next to the schematic symbol showing coil and COM–NC–NO switch.

Left: pin names on a real-looking 5-pin body. Right: the schematic — coil on one side, COM swinging between NC and NO.

COM (Common)

The moving contact. It connects to either NO or NC depending on the relay state.

NO (Normally Open)

Open when the coil is OFF. Closes when the coil is ON — load turns on when the relay is energized.

NC (Normally Closed)

Closed when the coil is OFF. Opens when the coil is ON — load turns off when the relay is energized.

Inside a relay

Under the plastic cover there are two jobs: an electromagnet (coil + core) and a mechanical switch (armature, spring, and contacts).

Cutaway of a relay showing coil, core, armature, return spring, moving COM contact, and fixed NC and NO contacts.

Resting state: the return spring holds COM against NC. A gap stays open at NO until the coil pulls the armature.

Main parts

  • Coil and core — copper wire wound around an iron core. Current in the coil makes a magnet.
  • Armature — the lever that moves when the magnet pulls.
  • Return spring — pulls the armature back when the coil turns off.
  • Moving contact (COM) — the piece the armature pushes; it is the common terminal.
  • Fixed NC / Fixed NO — stationary contacts. At rest COM touches NC; when energized COM touches NO.

How to connect a load

Think of two separate loops: a small coil circuit (control) and a load circuit through the contacts.

  1. Coil: apply the relay’s rated DC voltage across the two coil pins (or follow a module’s IN / VCC / GND labels).
  2. Load supply: use a suitable separate supply for the lamp or motor — not the microcontroller’s GPIO pin current.
  3. COM–NO for “on when energized”: wire the supply, COM, the load, and NO in one series loop. When the coil turns on, COM joins NO and the load lights.
  4. Optional NC: use COM–NC if you want the load on by default and off when the coil is energized.
Electromechanical relay how-it-works diagram: coil, armature, COM NO NC legend, and a COM-to-NO lamp load example with electrical isolation takeaway.

Same idea in one picture: coil + contacts inside, COM/NO/NC meanings, and a COM–NO lamp example.

Safety: this lesson is for low-voltage DC practice (batteries, USB, small DC adapters). Mains AC (wall power) can kill — do not wire household AC to a breadboard or bare relay contacts unless you are trained and using properly rated, enclosed modules with correct insulation and fusing.

Try it: coil ON → COM flips to NO → lamp ON

Toggle the coil. Off = COM rests on NC (lamp path open). On = COM swings to NO and the lamp lights.

Coil OFF → COM–NC · Coil ON → COM–NO → lamp

Coil OFF — COM on NC. Lamp path open.

Potentiometer (pot)

Potentiometer (pot) — A variable resistor with a knob or slider — volume controls, brightness dials, and sensor adjusters.

Most pots have three pins: the two outer ends of a resistive track, and a middle wiper that slides along that track as you turn the knob. Moving the wiper changes how much resistance sits on each side — so the voltage at the wiper changes smoothly.

Blue rotary potentiometer with a black knob and three metal pins: two ends and a centre wiper.

Typical rotary pot: knob on top, three pins underneath (ends + wiper).

How to connect VCC, GND, and the wiper

Wired as a voltage divider, the pot gives a voltage you can read with a meter or an MCU analog (ADC) pin:

  1. One end → VCC (e.g. 5 V or 3.3 V — match your board).
  2. Other end → GND (0 V).
  3. Middle (wiper) → output — your ADC pin, or a meter probe. This is the analog signal.
Diagram of a potentiometer on a breadboard wired to Arduino: red VCC 5V, black GND, yellow OUT to ADC A0.

Red = VCC, black = GND, yellow/orange = OUT (wiper) to the ADC.

Three pins at a glance pot body → VCC OUT (wiper) → GND

As you turn the knob from one stop to the other, the wiper voltage sweeps from near 0 V (GND) through mid-scale (about half of VCC) up to near VCC. That smooth range is why pots are perfect for volume, brightness, and sensor trim.

Try it: turn the pot — watch the analog voltage

Drag the slider (or turn the on-screen knob). The wiper voltage moves from 0 V → mid → 5 V, the meter fills, and the LED brightens — same idea as reading the pot on an ADC pin.

VCC → end · GND → other end · OUT = wiper voltage

Wiper at mid — about 2.50 V (half of 5 V)

Where you meet potentiometers

Volume

Audio knobs set level by dividing a signal — classic pot job.

Brightness

Dim an LED or backlight by changing the control voltage (or a PWM setpoint).

Sensor adjust

Trim thresholds, calibrate LDR/temperature circuits, set “how sensitive.”

Tip: on Arduino, read the wiper with analogRead() (0–1023 for a 10-bit ADC). Map that number to voltage with V = reading × VCC ÷ 1023.

Quick checklist

  • Same breadboard row = connected horizontally (A–E or F–J); centre trench isolates left/right.
  • Power rails connect vertically; keep + and − never shorted.
  • LED always needs a series resistor with the switch.
  • Relay coil = control; COM / NO / NC = load switching.
  • Pot: one end VCC, other end GND, middle wiper = analog OUT (0 V → VCC).
  • Use a separate supply for motors and lamps — and stay on safe low-voltage DC while learning.

In one sentence: the breadboard lets you try circuits without solder; a switch opens or closes the path; a relay uses a small coil current to flip contacts; a pot divides VCC to GND so the wiper gives a smooth analog voltage.