Analog Nightlight

A no-code nightlight: an LED noodle switched by a photoresistor and a 2N2222 transistor on perfboard, powered by a USB wall adapter.

Analog Nightlight

Analog Nightlight

Key Features

  • Uses the 10K Potentiometer
  • Uses the LDR Photoresistor

Key Benefits

  • Free, open lessons. The Moving Rainbow textbook has the kit page, wiring, and MicroPython code.
  • Classroom friendly. Built on a solderless breadboard or no-solder connectors.
  • Try before you build. An interactive MicroSim on the kit page runs in the browser.
  • Real-world data. Students read sensors and turn measurements into decisions.
  • Budget. About $4–$6 (sum of the listed parts).

Parts

Part (price)Role
10K PotentiometerInput knob
LDR PhotoresistorSensor
830-Point Breadboard ($1.10)Breadboard

Microcontroller listed first. Prices shown only where known; see the source book for quantities, wiring, and current prices.

About this kit: From the Moving Rainbow collection.
Source: Moving Rainbow