Source: https://mokxi.com/teachers/plans/build-cat-laser-toy
Updated: 2026-11-19

Lesson plan

# Build a cat laser toy lesson plan

Your first robot: a pan and tilt laser turret on two servos that plays with a cat on its own, with random glides, tuned speed and pauses, real laser eye safety, a session timer, and a toy at the end of every game.

3 chapters, 7 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

- What a servo is, the pulse that steers it, and a pan and tilt turret that puts a dot exactly where the math says.
- Random paths that only look random, glide speed you can time, the servo’s own limit, and pauses that make a cat pounce.
- Laser classes and a beam that stays on the floor, a timer that never blocks, and a full play session that ends on a real toy.

### Materials for the whole unit

- Arduino Uno R3
- Half breadboard
- Hobby servo x 2
- Laser module, KY-008
- Pushbutton

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

## Two servos

What a servo is, the pulse that steers it, and a pan and tilt turret that puts a dot exactly where the math says.

Lesson | Time | What students do

A servo from scratch Meet the motor that goes to an angle and stays there: what is inside a servo, the pulse that steers it fifty times a second, and the math from an angle to a pulse width. | 45 min

- Run it
- What is inside a servo
- Turn it all the way
- And back the other way
- From an angle to a pulse

Pan, tilt and where the dot lands Two servos make a turret: pan turns it left and right, tilt points it up and down. Work out where the dot lands on the floor with one line of trigonometry, then switch the laser on. | 45 min

- Two axes
- Where the dot lands
- Predict, then aim
- Laser on
- Home

### Materials

- Arduino Uno R3
- Half breadboard
- Hobby servo x 2
- Laser module, KY-008
- Pushbutton

### Check for understanding

Each student finishes "Pan, tilt and where the dot lands" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

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

Chapter 2. About 1 h 30 min

## Make it play

Random paths that only look random, glide speed you can time, the servo’s own limit, and pauses that make a cat pounce.

Lesson | Time | What students do

Random paths The gallery sketch makes the dot wander on its own with random(). Learn why the numbers only look random, pin the dance down with a seed, and shrink the play box. | 45 min

- Run it
- Where the randomness lives
- Same seed, same dance
- Shrink the box
- A shorter round

Speed and pauses How fast the dot moves and how long it freezes is what makes a cat chase. Time a glide, make it faster, find the servo’s own speed limit, and tune the pauses. | 45 min

- Run it
- Time a glide
- Faster
- The servo has a speed limit
- Freeze

### Materials

- Arduino Uno R3
- Half breadboard
- Hobby servo x 2
- Laser module, KY-008
- Pushbutton

### Check for understanding

Each student finishes "Speed and pauses" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

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

Chapter 3. About 2 h 15 min

## Safe, timed and kind

Laser classes and a beam that stays on the floor, a timer that never blocks, and a full play session that ends on a real toy.

Lesson | Time | What students do

Safety for eyes A laser is not a flashlight. Laser classes in real milliwatts, why a pet toy uses class 2 or less, a beam that cannot leave the floor, and a kill switch. | 45 min

- Laser classes
- Turn it down
- The dot stays on the floor
- Steeper is safer
- A kill switch

A timer Sessions that end on their own, a length that does not overflow, a button that still works mid-game because nothing blocks, and a rest between games. | 45 min

- How long is a session
- Big numbers on a small chip
- Time is up
- The button still works
- A rest between games

Project: a play session Put it all together into a session a cat will love: a warm up, a timed chase, a cool down, and the dot parked on a real toy so every game ends in a catch. | 45 min

- The plan
- The chase
- End on the toy
- Move the toy
- Enough for today

### Materials

- Arduino Uno R3
- Half breadboard
- Hobby servo x 2
- Laser module, KY-008
- Pushbutton

### Check for understanding

Each student finishes "Project: a play session" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

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

Your class

## Teach this unit as a class

Start a class from this course and its 7 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.
