Build it · Analog

The night pumpkin

A Halloween pumpkin whose eyes light up by themselves when the room goes dark: a light sensor and a resistor make a voltage divider, a transistor switches two red LEDs on. A build sheet to print, and how it works in eight animated slides.

Beginner · 30 min · 7 parts · published 24 October 2026

Free · no account needed · it opens in your browser

The night pumpkin: the cover of the project

What you learn by building it

  1. A light sensor (LDR): its resistance rises in the dark.
  2. With a 100 kΩ resistor it makes a voltage divider that follows the light: lit, VB ≈ 0.4 V; in the dark it climbs to 0.7 V.
  3. A BC547 transistor used as a switch: a tiny base current turns the 15 mA of the two red LEDs on.
  4. LEDs in series and the 330 Ω resistor that protects them; a 9 V battery keeps the eyes glowing about 30 hours.
  5. If it does not work: turn the LEDs round (long leg to +) and check C, B, E. A 100 kΩ trimmer sets how dark it must be.

What you need

Inside the project

The build sheet

The parts, the schematic, the steps and what to check, on one page to print.

How it works

The physics step by step, in animated slides. Press Present (F5) to play them.

Your own copy

It opens as a Circuit Notebook project: change the values, draw your own version.

Open the project

Read next