Lesson plan

Build a greenhouse controller lesson plan

Build the controller that runs a greenhouse: climate and VPD, fans with hysteresis, safe watering, a photoperiod, schedules and a season log.

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 climate, and move air when it goes wrong.
  • A pump with limits, and a grow light on the clock.
  • Schedules from a table, then the whole house with a log.

Materials for the whole unit

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Fan module, L9110
  • Filament lamp
  • Full-size breadboard
  • Mini water pump
  • Real-time clock, DS3231
  • Relay board, four channels
  • Soil moisture sensor, capacitive
  • Temperature and humidity, SHT31

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 40 min

The air

Read the climate, and move air when it goes wrong.

LessonTimeWhat students do
Climate sensingRead a greenhouse's air with an SHT31 and turn temperature and humidity into the one number growers steer by: the vapor pressure deficit.45 min
  1. The air in the house
  2. Too humid
  3. Too dry
  4. Seedling weather
Fans and ventsRun a fan with hysteresis: on at 28 C, off only under 26 C, faster as it gets hotter, and on for damp air too.55 min
  1. Two thresholds
  2. A hot afternoon
  3. Spinning
  4. Cooling, but not off
  5. Damp air

Materials

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Fan module, L9110
  • Filament lamp
  • Full-size breadboard
  • Mini water pump
  • Real-time clock, DS3231
  • Relay board, four channels
  • Soil moisture sensor, capacitive
  • Temperature and humidity, SHT31

Check for understanding

Each student finishes "Fans and vents" 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: "Damp air".

Chapter 2. About 1 h 40 min

Water and light

A pump with limits, and a grow light on the clock.

LessonTimeWhat students do
WateringWater from a soil probe through an active-low relay and a pump: start under 35 percent, stop at 50, never run longer than 10 seconds, and catch an empty reservoir.55 min
  1. Active low
  2. Thirsty
  3. Water flows
  4. Wet enough
  5. An empty reservoir
LightsRun a grow light on a 16 hour photoperiod from a DS3231, with its state worked out from the clock so a power cut cannot leave it wrong.45 min
  1. It is noon
  2. Light
  3. Nightfall
  4. Sunrise

Materials

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Fan module, L9110
  • Filament lamp
  • Full-size breadboard
  • Mini water pump
  • Real-time clock, DS3231
  • Relay board, four channels
  • Soil moisture sensor, capacitive
  • Temperature and humidity, SHT31

Check for understanding

Each student finishes "Lights" on their own, without opening the hints. The simulator checks 4 of its 4 steps as they go.

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

Chapter 3. About 1 h 40 min

Run the season

Schedules from a table, then the whole house with a log.

LessonTimeWhat students do
SchedulesWater only in morning and evening windows from a schedule table, work out the next event from the clock, and keep the photoperiod going.45 min
  1. A table, not a tangle
  2. The morning window
  3. Watering in the window
  4. Evening
Project: a season logThe whole controller: climate, fan, scheduled watering and lights, an hourly log line, and a summary of every day.55 min
  1. The logbook
  2. Heat
  3. Morning watering
  4. End of the day
  5. Your season

Materials

  • Arduino Uno R3
  • Battery: AA, coin cell, LiPo
  • Fan module, L9110
  • Filament lamp
  • Full-size breadboard
  • Mini water pump
  • Real-time clock, DS3231
  • Relay board, four channels
  • Soil moisture sensor, capacitive
  • Temperature and humidity, SHT31

Check for understanding

Each student finishes "Project: a season log" 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 season".

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.