Projects / Ideas / Automatic headlight switch

Automatic headlight switch

BeginnerVehiclesIdeaReviewed
In short

How do you build an automatic headlight switch?

A light sensor turns on bike or model car lights at dusk with a delay so tunnels do not flicker them. You need Arduino Nano, BH1750 light sensor, MOSFET IRLZ44N, High-power LED 1 W white (star) and Resistor 10 kΩ.

Level
Beginner
Time
About 60 min
Parts
5
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Add hysteresis and delay to a light switch.

Parts list

How to build it

  1. Read lux
  2. Turn on below one level and off above a higher one
  3. Wait 3 s before changing
  4. Switch the LED with a MOSFET
  5. Test going under a bridge

Related projects

Common questions

What parts do I need for the automatic headlight switch?

Arduino Nano, BH1750 light sensor, MOSFET IRLZ44N, High-power LED 1 W white (star) and Resistor 10 kΩ.

How long does the automatic headlight switch take to build?

About 60 minutes for a beginner maker.