HomeExperiments
Smart Night Light — Combining Sensors & Actuators
Robotics

Smart Night Light — Combining Sensors & Actuators

Build an automatic night light that turns on when dark, adjusts brightness based on ambient light, and plays a tone when activated.

40 min (set-up 15 min)
Robotics Projects

What students learn

Students combine everything they learned — sensors, actuators, analog/digital I/O — into a complete interactive system.

The science behind this experiment

  • System integration combines multiple inputs and outputs
  • Threshold with hysteresis prevents rapid on/off switching
  • PWM brightness allows smooth dimming proportional to darkness
  • User-adjustable parameters (via potentiometer) make the system adaptable

Key relation: brightness = map(lightLevel, threshold, 0, 0, 255); threshold = map(analogRead(A1), 0, 1023, 100, 900)

Equipment used

  • Arduino Uno R3
  • Breadboard
  • 1x Photoresistor (LDR)
  • 1x 10kΩ resistor
  • 1x RGB LED
  • 3x 220Ω resistors
  • 1x Piezo buzzer
  • 1x Potentiometer (sensitivity)
  • Jumper wires

Questions for students

  • How would you add a motion sensor (PIR) to make this a smart security light?
  • What additional features would make this product commercially viable?

What to expect

A fully automatic night light: LED fades on when dark (brightness proportional to darkness), plays a soft tone on activation, with adjustable sensitivity. Building a smart night light demonstrates system integration — combining sensors, actuators, and code into a functional product. This is the foundation of IoT and smart home technology.

Run this experiment in your classroom

This experiment is part of ATP Volta — a self-contained mobile science lab that turns an ordinary classroom into a working STEM laboratory, with over 200 experiments in physics, chemistry, biology, robotics and engineering. Gali, the AI tutor built into ATP Connect, guides students through each step and answers their questions at the bench.

See the ATP Volta mobile science labTalk to our team

The full experiment library

Eighty-six guided experiments across physics, chemistry and biology — each with learning goals, equipment, background theory and questions for students. Browse the library

Physics 42
Chemistry and biology 44