Lesson plan

Build a dog ball launcher lesson plan

Flywheels and the physics of a throw, a sonar for the ball and one for the safety zone, distance settings from a range table, and a rest timer that looks after the dog.

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

  • Flywheel speed, spin-up and the driver’s voltage drop, and a sonar that sees the ball.
  • A zone nobody gets hit in, and distances from a range table.
  • A rest timer for the dog, then fetch on its own.

Materials for the whole unit

  • Arduino Uno R3
  • DC motor x 2
  • Hobby servo
  • Motor driver module, L298N
  • Photo interrupter, slot
  • Ultrasonic ranger x 2

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

Throw

Flywheel speed, spin-up and the driver’s voltage drop, and a sonar that sees the ball.

LessonTimeWhat students do
FlywheelsTwo wheels spinning opposite ways squeeze a ball out at their surface speed. Work out that speed from rpm, spin them up and time it, see them turn opposite ways, and find the volts the L298N keeps for itself.70 min
  1. How a launcher throws
  2. Spin up
  3. Opposite ways
  4. Spin-up time
  5. The volts the driver keeps
Ball detectionAn HC-SR04 looks down into the hopper. Read both sonars, drop a ball, make the hopper empty before the next ball counts, and set the line for a bigger ball.60 min
  1. Two sonars
  2. A ball in the hopper
  3. Empty first
  4. A bigger ball

Materials

  • Arduino Uno R3
  • DC motor x 2
  • Hobby servo
  • Motor driver module, L298N
  • Photo interrupter, slot
  • Ultrasonic ranger x 2

Check for understanding

Each student finishes "Ball detection" 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: "A bigger ball".

Chapter 2. About 2 h

Safe and on target

A zone nobody gets hit in, and distances from a range table.

LessonTimeWhat students do
Safety zoneA ball at 7 m/s hurts. A second sonar watches the front: nothing launches while someone is close, and the wheels stop the moment a dog walks in front. Hold, stop, read the zone and widen it.60 min
  1. Hold while someone is close
  2. Stop mid spin
  3. Read the zone
  4. A wider zone
Distance settingsThree settings, three wheel speeds, three distances. Read the range table, throw far, and see what the launch angle does to the range.60 min
  1. Near
  2. Far
  3. Throw far
  4. The launch angle

Materials

  • Arduino Uno R3
  • DC motor x 2
  • Hobby servo
  • Motor driver module, L298N
  • Photo interrupter, slot
  • Ultrasonic ranger x 2

Check for understanding

Each student finishes "Distance settings" 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: "The launch angle".

Chapter 3. About 2 h

Play

A rest timer for the dog, then fetch on its own.

LessonTimeWhat students do
Rest timerSome dogs will fetch until they collapse. After five throws the launcher takes a break, ignores the hopper, and comes back ready. Tune the break for your dog.60 min
  1. Five and rest
  2. Back to play
  3. Fewer in a row
  4. A longer break
Project: fetch on its ownA launcher the dog runs: drop the ball in, it checks the zone, spins up and throws, and keeps the dog guessing with a new distance each time. Tune the session and write it up.60 min
  1. A game of fetch
  2. Keep them guessing
  3. Tune the session
  4. Show it

Materials

  • Arduino Uno R3
  • DC motor x 2
  • Hobby servo
  • Motor driver module, L298N
  • Photo interrupter, slot
  • Ultrasonic ranger x 2

Check for understanding

Each student finishes "Project: fetch on its own" 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: "Show it".

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.