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.

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.

LessonTimeWhat 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
  1. Tropical water
  2. A cold night
  3. A heatwave
  4. A sixteenth of a degree
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
  1. Safety, and a thermostat
  2. Heat
  3. Warm enough
  4. A stuck heater
  5. 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.

LessonTimeWhat 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
  1. Midday
  2. Sixteen LEDs
  3. Sunrise
  4. Moonlight
  5. Two dim LEDs
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
  1. The normal level
  2. Evaporation
  3. Pumping
  4. Full again
  5. 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.

LessonTimeWhat 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
  1. A servo feeder
  2. By hand
  3. The drum turns
  4. On schedule
  5. Enough
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
  1. The reef controller
  2. A cold tank
  3. Sunset
  4. Dinner
  5. 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.