Source: https://mokxi.com/teachers/plans/lighting-controls
Updated: 2026-11-19

Lesson plan

# Lighting and lighting controls lesson plan

Lamps and LEDs, constant-current drivers, dimming, photocells, occupancy sensors and schedules, ending in a hallway controller you wire and tune, all at low voltage.

7 chapters, 7 lessons, about 6 hours, no board. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- A filament and a power LED: current, forward voltage, and what burns.
- An LM317 holds 0.69 A from any supply with headroom, and gets hot doing it.
- PWM from a knob, and how 0-10 V and phase dimmers compare.
- An LDR divider switches a lamp at dusk, and why hysteresis matters.
- A PIR, daylight hold-off, a relay and a time delay.
- A Python time clock with sunrise and sunset offsets.
- A hallway controller: photocell, PIR, SSR, LM317 driver, your delay and power.

### Materials for the whole unit

- Arduino Uno R3
- Bench power supply
- D4184 dual MOSFET switch module
- DC jack and adapter
- Filament lamp
- Half breadboard
- LED
- Light sensor
- LM317 regulator
- MOSFET
- Motion sensor
- Multimeter x 2
- Photoresistor sensor module
- Potentiometer
- Power LED, 1 W or 3 W star
- Pushbutton
- Raspberry Pi 4 Model B
- Relay module
- Resistor x 2
- Solid-state relay, SSR-25DA / G3MB-202P

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 50 min

## Lamps and LEDs

A filament and a power LED: current, forward voltage, and what burns.

Lesson | Time | What students do

Lamps and LEDs: what each one wants A 12 V filament lamp and a 3 W power LED side by side: the lamp's current, the LED's forward voltage, why an LED needs something to set its current, how each behaves when the supply sags, and what too little resistance does. | 50 min

- Run it: a lamp at its rating
- The LED's current
- Forward voltage
- Predict: the supply sags
- Predict: a gentler resistor
- Too little resistance

### Materials

- Bench power supply
- Filament lamp
- Multimeter
- Power LED, 1 W or 3 W star
- Resistor x 2

### Check for understanding

Each student finishes "Lamps and LEDs: what each one wants" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Too little resistance".

Chapter 2. About 50 min

## Drivers

An LM317 holds 0.69 A from any supply with headroom, and gets hot doing it.

Lesson | Time | What students do

Drivers: an LM317 that holds the current An LM317 with one resistor becomes a constant-current LED driver: 1.25 V across the set resistor, the same 0.69 A from 12 V or 15 V, the headroom it needs, a 350 mA setting, and the heat a linear driver makes. | 50 min

- Run it: 0.69 A
- 1.25 V, always
- Predict: 15 V in
- Headroom
- Predict: a 350 mA driver
- The heat

### Materials

- Bench power supply
- LM317 regulator
- Multimeter x 2
- Power LED, 1 W or 3 W star
- Resistor

### Check for understanding

Each student finishes "Drivers: an LM317 that holds the current" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The heat".

Chapter 3. About 45 min

## Dimming methods

PWM from a knob, and how 0-10 V and phase dimmers compare.

Lesson | Time | What students do

Dimming methods: PWM and the rest An Uno dims a 12 V lamp by switching it on and off 490 times a second: the duty from a knob, the pin flickering faster than a filament can follow, and how PWM, constant-current reduction, 0-10 V and phase dimmers compare. | 45 min

- Run it: full on
- Half: a pin that flickers
- Half the time is not half the light
- Down to 10 %
- Off

### Materials

- Arduino Uno R3
- D4184 dual MOSFET switch module
- DC jack and adapter
- Filament lamp
- Potentiometer

### Check for understanding

Each student finishes "Dimming methods: PWM and the rest" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Off".

Chapter 4. About 50 min

## Photocells

An LDR divider switches a lamp at dusk, and why hysteresis matters.

Lesson | Time | What students do

Photocells: light turns on the light An LDR and a resistor make a divider that drives a MOSFET: off in daylight, on in the dark, the narrow gray zone where it switches, trimming the switch point, and why real photocontrols snap with hysteresis. | 50 min

- Run it: an office at 300 lux
- Night
- Dusk: 10 lux
- The gray zone
- Predict: an overcast afternoon
- Predict: trim the switch point

### Materials

- Bench power supply
- Filament lamp
- Light sensor
- MOSFET
- Multimeter
- Resistor

### Check for understanding

Each student finishes "Photocells: light turns on the light" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Predict: trim the switch point".

Chapter 5. About 45 min

## Occupancy sensors

A PIR, daylight hold-off, a relay and a time delay.

Lesson | Time | What students do

Occupancy sensors: light when someone is there A PIR, a photocell module and a relay on an Uno: daylight hold-off, motion that switches a 12 V lamp, the click of the relay, and the time delay that turns it off when the room is empty. | 45 min

- Run it: daylight
- Night falls
- Someone walks in
- The relay
- The time delay

### Materials

- Arduino Uno R3
- DC jack and adapter
- Filament lamp
- Half breadboard
- Motion sensor
- Photoresistor sensor module
- Relay module

### Check for understanding

Each student finishes "Occupancy sensors: light when someone is there" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "The time delay".

Chapter 6. About 50 min

## Schedules

A Python time clock with sunrise and sunset offsets.

Lesson | Time | What students do

Schedules: a time clock in Python A Raspberry Pi runs a porch light's day in Python: fixed times and sunrise and sunset offsets, the summer bug where a morning on-time lands after sunrise, the fix, and the hours and kWh a schedule costs. | 50 min

- Run it: a December day
- How long it is on
- Predict: June
- Fix it with an offset
- Your change: off at 22:00
- Back to December

### Materials

- Half breadboard
- LED
- Raspberry Pi 4 Model B
- Resistor

### Check for understanding

Each student finishes "Schedules: a time clock in Python" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Back to December".

Chapter 7. About 1 h 10 min

## Boss build

A hallway controller: photocell, PIR, SSR, LM317 driver, your delay and power.

Lesson | Time | What students do

Boss: a hallway controller Wire an LM317 driver for a 3 W LED, then run a hallway controller: a photocell with hysteresis holds it off in daylight, a PIR and a wall switch turn it on through an SSR, a vacancy delay turns it off, and you set the delay and the power. | 70 min

- Wire the driver
- Run it: daylight
- Night falls
- Someone walks in
- The driver holds 0.69 A
- Vacant
- Your change: the delay
- Your change: half power

### Materials

- Arduino Uno R3
- Bench power supply
- Light sensor
- LM317 regulator
- Motion sensor
- Power LED, 1 W or 3 W star
- Pushbutton
- Resistor x 2
- Solid-state relay, SSR-25DA / G3MB-202P

### Check for understanding

Each student finishes "Boss: a hallway controller" on their own, without opening the hints. The simulator checks 8 of its 8 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Your change: half power".

Your class

## Teach this unit as a class

Start a class from this course and its 7 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
