Lesson plan

Build a backyard weather station lesson plan

A solar weather station on an Uno: wind, rain, the air and UV, packed into 14 bytes over LoRa to a base station that prints the day.

3 chapters, 6 lessons, about 6 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

  • Reed switches and a resistor ladder, then calibrated chips for the air and the sun.
  • Solar power that lasts, and a radio link that sips.
  • A page of the day, from 14 bytes.

Materials for the whole unit

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED
  • LoRa module, SX1278 (Ra-02) x 2
  • Pressure, humidity and temperature, BME280
  • Resistor x 3
  • Solar panel, 6 V 1 W
  • UV and light, LTR-390
  • Weather meter kit, SEN-15901

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 2 h 55 min

The sensors

Reed switches and a resistor ladder, then calibrated chips for the air and the sun.

LessonTimeWhat students do
Wind and rainThe weather meter kit has no electronics inside: wind speed from an anemometer's clicks, direction from a vane's resistor ladder, and rain from a tipping bucket.55 min
  1. Clicks are wind
  2. The Beaufort scale
  3. The vane's ladder
  4. Turn the vane
  5. The tipping bucket
Temperature and pressureA BME280 for temperature, humidity and pressure, the dew point from the first two, and the sea-level correction that makes pressure comparable with a weather map.55 min
  1. Find the sensor
  2. Temperature
  3. Humidity and dew point
  4. Pressure
  5. At sea level
The UV indexAn LTR390 counts ultraviolet light. Turn counts into the UV index with the datasheet's sensitivity, name the band, work out a time to burn, and measure visible light too.65 min
  1. Find the sensor
  2. Counts per UV index
  3. The UV index
  4. Midday sun
  5. Time to burn
  6. Visible light

Materials

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED
  • LoRa module, SX1278 (Ra-02) x 2
  • Pressure, humidity and temperature, BME280
  • Resistor x 3
  • Solar panel, 6 V 1 W
  • UV and light, LTR-390
  • Weather meter kit, SEN-15901

Check for understanding

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

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

Chapter 2. About 2 h 10 min

In the field

Solar power that lasts, and a radio link that sips.

LessonTimeWhat students do
Solar powerA panel, a LiPo cell and an INA219: charging by day, carrying the station by night, a daily energy budget that does not add up, and sleep that fixes it.65 min
  1. The battery line
  2. Charging
  3. The daily budget
  4. Night
  5. Autonomy
  6. Sleep
LoRa uplinkPack every reading into 14 bytes, big-endian, with wind and direction sharing two bytes, send them over LoRa, and work out the time on air and the duty cycle.65 min
  1. Two radios
  2. Pack it
  3. Bit packing
  4. Time on air
  5. Duty cycle
  6. Nothing lost

Materials

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED
  • LoRa module, SX1278 (Ra-02) x 2
  • Pressure, humidity and temperature, BME280
  • Resistor x 3
  • Solar panel, 6 V 1 W
  • UV and light, LTR-390
  • Weather meter kit, SEN-15901

Check for understanding

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

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

Chapter 3. About 1 h 5 min

The base station

A page of the day, from 14 bytes.

LessonTimeWhat students do
Project: a garden weather pageThe whole station sends to the base station, which prints a page of readings: lows and highs, the day's gust and rain, UV and the link, all from 14 bytes.65 min
  1. The page
  2. Highs and lows
  3. Gusts
  4. Rain today
  5. Your own height
  6. Make it yours

Materials

  • Arduino Uno R3 x 2
  • Battery: AA, coin cell, LiPo
  • Current monitor, INA219
  • Diode
  • Full-size breadboard
  • LED
  • LoRa module, SX1278 (Ra-02) x 2
  • Pressure, humidity and temperature, BME280
  • Resistor x 3
  • Solar panel, 6 V 1 W
  • UV and light, LTR-390
  • Weather meter kit, SEN-15901

Check for understanding

Each student finishes "Project: a garden weather page" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

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

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.