Intermediate · Project 12
Light Messenger
Send a signal between two completely separate circuits using light hidden inside a tiny chip.
Build this only with an adult present. Before you start, read our safety notice and disclaimer.
🧰 What you need
- 1×Half-size breadboardA board full of little holes with metal clips inside, so you can build circuits without soldering.
- 2×3×AA battery holder with wire leadsHolds three AA batteries in a row and gives you a red (+) and black (−) wire.
- 6×AA batteryA regular household battery. Each one gives 1.5 volts.
- 1×PC817 optocouplerAn LED and a light sensor sealed in one tiny chip, so two circuits can talk using light.
- 1×Push button (tactile switch)A little button with 4 legs. It connects its two sides only while you press it.
- 1×220 Ω resistor — red, red, brown, goldOur go-to LED resistor. Colors: red, red, brown, gold.
- 1×330 Ω resistor — orange, orange, brown, goldColors: orange, orange, brown, gold.
- 2×5 mm LED (any color) — one red, one greenA tiny light that only lets current flow one way. The long leg is +.
- 6×Jumper wireA short wire with stiff ends that push into the breadboard.
✨ The finished project
Here’s a puzzle: can you make a button in one circuit light an LED in a different circuit, with its own batteries, without connecting them with a single wire?
Yes, with light! The PC817 optocoupler is a tiny chip with two things sealed inside, facing each other in the dark:
- an infrared LED (light you can’t see), and
- a light-sensitive transistor that switches on when the LED shines on it.
- Pin 1 · A — anode (+) of the hidden infrared LED (sender side)
- Pin 2 · K — cathode (−) of the hidden LED
- Pin 3 · E — emitter of the light-sensitive transistor (receiver side)
- Pin 4 · C — collector of the light-sensitive transistor
Two separate circuits
- Sender (bottom half): its own battery pack on the bottom rails, a button, a red LED (so you can see it sending) and the optocoupler’s hidden LED.
- Receiver (top half): its own battery pack on the top rails, a green LED and the optocoupler’s light-sensitive transistor.
Because the chip sits across the middle gap, its LED pins (1, 2) are in the bottom half and its transistor pins (3, 4) in the top half. Do not add any wire between the top rails and the bottom rails in this project!
Build it
Optocoupler: across the gap, dot/notch on the left: pins 1–2 in f13–f14, pins 4–3 in e13–e14.
Sender button: this one sits in the bottom half only, legs in g4, i4, g6 and i6. Red wire j4 → B+4 (bottom red + rail, column 4).
Sender resistor (220 Ω): j6 → j10.
Sender red LED: long leg g10, short leg g11. Blue wire j11 → j13 (pin 1), and black wire j14 (pin 2) → B-14 (bottom blue − rail, column 14).
Receiver: black wire a14 (pin 3, emitter) → T-14 (top blue − rail, column 14). Blue wire b13 (pin 4, collector) → b17.
Receiver green LED: short leg e17, long leg e18. 330 Ω resistor b18 → b22, red wire a22 → T+22 (top red + rail, column 22).
Batteries: receiver pack red → T+1, black → T-2. Sender pack red → B+1, black → B-2.
Press the button: the red sender LED lights, and so does the green receiver LED, with no wire between them! 📡
Not working?
- Red lights but green doesn’t? Check the optocoupler’s dot is on the left and the receiver’s black wire goes to pin 3’s column.
- Neither lights? Check the sender battery is on the bottom rails and the button is turned the right way.
- Green always on? Pins 3 and 4 might be swapped. Check which way round the chip is.