Source: https://mokxi.com/teachers/plans/build-dog-ball-launcher
Updated: 2026-11-19

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.

Start a class from this course

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.

Lesson | Time | What students do

Flywheels Two 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

- How a launcher throws
- Spin up
- Opposite ways
- Spin-up time
- The volts the driver keeps

Ball detection An 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

- Two sonars
- A ball in the hopper
- Empty first
- 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.

Lesson | Time | What students do

Safety zone A 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

- Hold while someone is close
- Stop mid spin
- Read the zone
- A wider zone

Distance settings Three settings, three wheel speeds, three distances. Read the range table, throw far, and see what the launch angle does to the range. | 60 min

- Near
- Far
- Throw far
- 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.

Lesson | Time | What students do

Rest timer Some 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

- Five and rest
- Back to play
- Fewer in a row
- A longer break

Project: fetch on its own A 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

- A game of fetch
- Keep them guessing
- Tune the session
- 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.

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.
