Source: https://mokxi.com/learn/path/lighting-controls
Updated: 2026-11-20

All paths

# Lighting and lighting controls

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.

Free 7 lessons 6 h 7 chapters 1,652 XP Electrical · Intermediate +150 XP

0 of 7 done

Start the course free Lamps and LEDs: what each one wants Lesson plan for teachers

What you will build

## 0 projects, built step by step

7 lessons in 7 chapters, about 6 hours on a simulated breadboard. Free, in your browser, every step checked by the simulator.

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Lamps and LEDs

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

Open 236 XP

### 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.

0 of 6 steps

Start What is in it

4 questions, graded as you go.

Chapter 2

## Drivers

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

Locked 236 XP

### 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.

0 of 6 steps

4 questions, graded as you go.

Chapter 3

## Dimming methods

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

Locked 205 XP

### 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.

0 of 5 steps

3 questions, graded as you go.

Chapter 4

## Photocells

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

Locked 236 XP

### 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.

0 of 6 steps

4 questions, graded as you go.

Chapter 5

## Occupancy sensors

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

Locked 205 XP

### 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.

0 of 5 steps

4 questions, graded as you go.

Chapter 6

## Schedules

A Python time clock with sunrise and sunset offsets.

Locked 236 XP

### 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.

0 of 6 steps

4 questions, graded as you go.

Chapter 7

## Boss build

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

Locked 298 XP

### 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.

0 of 8 steps

4 questions, graded as you go.

Syllabus

## Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Lamps and LEDs

- 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.

Chapter 2

### Drivers

- 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.

Chapter 3

### Dimming methods

- 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.

Chapter 4

### Photocells

- 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.

Chapter 5

### Occupancy sensors

- 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.

Chapter 6

### Schedules

- 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.

Chapter 7

### Boss build

- 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.

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Lighting and lighting controls

Is Lighting and lighting controls free?

Yes. All 7 lessons of Lighting and lighting controls are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need any parts?

No. Every circuit is built on a simulated breadboard, and the simulator checks each step as you go. When you want to build it for real, the same parts and wiring work on a real bench.

How long does Lighting and lighting controls take?

About 6 hours: 7 lessons in 7 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

Where do I start?

With "Lamps and LEDs: what each one wants", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
