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.
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.
Keep it warm
Read the water, and heat it safely.
| Lesson | Time | What students do |
|---|---|---|
| TemperatureRead the water with a DS18B20 every second and hold it against the 24 to 27 C that most tropical fish want. | 40 min |
|
| Heater controlRun 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 |
|
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".
Light and water
A day of light from the clock, and water topped off.
| Lesson | Time | What students do |
|---|---|---|
| Lighting cyclesLight 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 |
|
| Water levelTop 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 |
|
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".
Feed and run
A feeder that cannot overfeed, then the whole tank.
| Lesson | Time | What students do |
|---|---|---|
| FeedingFeed 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 |
|
| Project: a reef night and dayThe whole controller: the heater, the light day, the top-off and the feeder, with a status line every minute. | 50 min |
|
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".
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.