Lesson plan

Build a smart bird feeder lesson plan

Build a feeder that keeps a diary: motion, a scale that weighs every visitor, a squirrel guard, a visit log and a daily report.

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

  • Motion, and a scale that weighs every visitor.
  • Keep the squirrels out, and write every visit down.
  • An evening report, then the whole feeder.

Materials for the whole unit

  • Arduino Uno R3
  • Full-size breadboard
  • Hobby servo
  • Load cell with HX711
  • microSD card module
  • Motion sensor
  • Real-time clock, DS3231

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

Who came

Motion, and a scale that weighs every visitor.

LessonTimeWhat students do
Visit detectionCount visits with a PIR motion sensor: one per rising edge, held for a few seconds, so a bird hopping about is one visit and not twenty.50 min
  1. A feeder that watches
  2. One bird, one visit
  3. What a PIR cannot tell you
  4. A busy minute
Seed weightHang the feeder from a load cell: the seed left in the hopper, and every visitor weighed and sized as it lands.50 min
  1. A full feeder
  2. Someone landed
  3. A bigger bird
  4. What it ate

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Hobby servo
  • Load cell with HX711
  • microSD card module
  • Motion sensor
  • Real-time clock, DS3231

Check for understanding

Each student finishes "Seed weight" 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: "What it ate".

Chapter 2. About 1 h 40 min

Guard and log

Keep the squirrels out, and write every visit down.

LessonTimeWhat students do
Squirrel guardShut a servo gate over the seed when anything over 300 g sits on the perch, and open it again only after 10 seconds clear.50 min
  1. The heaviest songbird
  2. A squirrel
  3. Not straight back
  4. Birds still welcome
Logging visitsWrite every visit to VISITS.CSV on microSD with the time from a DS3231: when, how heavy, what size, and how long it stayed.50 min
  1. A card and a clock
  2. A visit, timed
  3. Into the file
  4. No card

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Hobby servo
  • Load cell with HX711
  • microSD card module
  • Motion sensor
  • Real-time clock, DS3231

Check for understanding

Each student finishes "Logging visits" 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: "No card".

Chapter 3. About 1 h 40 min

The diary

An evening report, then the whole feeder.

LessonTimeWhat students do
Daily reportAt 20:00 every evening, sum up the day: visits by size, seed eaten, the share left, the busiest hour and a refill reminder.50 min
  1. The evening count
  2. Seed eaten
  3. The busiest hour
  4. Time to refill
Project: a bird diaryThe whole feeder: motion, landings and departures with times and weights, a log on the card, and the evening report.50 min
  1. Dawn
  2. Breakfast
  3. On the card
  4. Your feeder

Materials

  • Arduino Uno R3
  • Full-size breadboard
  • Hobby servo
  • Load cell with HX711
  • microSD card module
  • Motion sensor
  • Real-time clock, DS3231

Check for understanding

Each student finishes "Project: a bird diary" 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: "Your feeder".

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.