Source: https://mokxi.com/teachers/plans/build-aquarium-controller
Updated: 2026-11-19

Lesson plan

# Build an aquarium controller lesson plan

Build the controller a reef tank runs on: temperature, a guarded heater, sunrise to moonlight, auto top-off and a feeder.

3 chapters, 6 lessons, about 5 hours, on the Arduino Uno R3. 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

- Read the water, and heat it safely.
- A day of light from the clock, and water topped off.
- A feeder that cannot overfeed, then the whole tank.

### Materials for the whole unit

- Addressable RGB LEDs
- Arduino Uno R3
- Battery: AA, coin cell, LiPo x 2
- Filament lamp
- Full-size breadboard
- Hobby servo
- Mini water pump
- Pushbutton
- Real-time clock, DS3231
- Relay module
- Solid-state relay, SSR-25DA / G3MB-202P
- Temperature sensor, DS18B20
- Water level sensor

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 1 h 30 min

## Keep it warm

Read the water, and heat it safely.

Lesson | Time | What students do

Temperature Read the water with a DS18B20 every second and hold it against the 24 to 27 C that most tropical fish want. | 40 min

- Tropical water
- A cold night
- A heatwave
- A sixteenth of a degree

Heater control Run a heater through an SSR as a thermostat with a half degree band, and guard it: an overtemp latch, a probe fault cutoff and a no-rise check. | 50 min

- Safety, and a thermostat
- Heat
- Warm enough
- A stuck heater
- No rise

### Materials

- Addressable RGB LEDs
- Arduino Uno R3
- Battery: AA, coin cell, LiPo x 2
- Filament lamp
- Full-size breadboard
- Hobby servo
- Mini water pump
- Pushbutton
- Real-time clock, DS3231
- Relay module
- Solid-state relay, SSR-25DA / G3MB-202P
- Temperature sensor, DS18B20
- Water level sensor

### Check for understanding

Each student finishes "Heater control" 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: "No rise".

Chapter 2. About 1 h 40 min

## Light and water

A day of light from the clock, and water topped off.

Lesson | Time | What students do

Lighting cycles Light the tank on a WS2812 bar from the clock: a 30 minute sunrise and sunset, the day, three hours of moonlight and darkness. | 50 min

- Midday
- Sixteen LEDs
- Sunrise
- Moonlight
- Two dim LEDs

Water level Top off evaporation automatically: a level sensor powered only while it is read, a relay pump from 20 to 30 mm, a 15 second limit and a high water stop. | 50 min

- The normal level
- Evaporation
- Pumping
- Full again
- An empty reservoir

### Materials

- Addressable RGB LEDs
- Arduino Uno R3
- Battery: AA, coin cell, LiPo x 2
- Filament lamp
- Full-size breadboard
- Hobby servo
- Mini water pump
- Pushbutton
- Real-time clock, DS3231
- Relay module
- Solid-state relay, SSR-25DA / G3MB-202P
- Temperature sensor, DS18B20
- Water level sensor

### Check for understanding

Each student finishes "Water level" 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: "An empty reservoir".

Chapter 3. About 1 h 40 min

## Feed and run

A feeder that cannot overfeed, then the whole tank.

Lesson | Time | What students do

Feeding Feed on a schedule with a servo feeder and by hand on a button, and guard against the most common way fish die: overfeeding. | 50 min

- A servo feeder
- By hand
- The drum turns
- On schedule
- Enough

Project: a reef night and day The whole controller: the heater, the light day, the top-off and the feeder, with a status line every minute. | 50 min

- The reef controller
- A cold tank
- Sunset
- Dinner
- Your tank

### Materials

- Addressable RGB LEDs
- Arduino Uno R3
- Battery: AA, coin cell, LiPo x 2
- Filament lamp
- Full-size breadboard
- Hobby servo
- Mini water pump
- Pushbutton
- Real-time clock, DS3231
- Relay module
- Solid-state relay, SSR-25DA / G3MB-202P
- Temperature sensor, DS18B20
- Water level sensor

### Check for understanding

Each student finishes "Project: a reef night and day" 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: "Your tank".

Your class

## Teach this unit as a class

Start a class from this course and its 6 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.
