Source: https://mokxi.com/teachers/plans/build-smart-bird-feeder
Updated: 2026-11-19

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.

Start a class from this course

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.

Lesson | Time | What students do

Visit detection Count 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

- A feeder that watches
- One bird, one visit
- What a PIR cannot tell you
- A busy minute

Seed weight Hang the feeder from a load cell: the seed left in the hopper, and every visitor weighed and sized as it lands. | 50 min

- A full feeder
- Someone landed
- A bigger bird
- 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.

Lesson | Time | What students do

Squirrel guard Shut 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

- The heaviest songbird
- A squirrel
- Not straight back
- Birds still welcome

Logging visits Write 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

- A card and a clock
- A visit, timed
- Into the file
- 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.

Lesson | Time | What students do

Daily report At 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

- The evening count
- Seed eaten
- The busiest hour
- Time to refill

Project: a bird diary The whole feeder: motion, landings and departures with times and weights, a log on the card, and the evening report. | 50 min

- Dawn
- Breakfast
- On the card
- 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.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
