All paths

Build a cat laser toy

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.

Arduino Uno R3Free7 lessons5 h3 chapters1,650 XPRobotics · Beginner+100 XP

0 of 7 done

What you will build

3 projects, built step by step

7 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

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.

Open it in the simulator
Chapter 2 project

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.

Open it in the simulator
Chapter 3 project

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.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

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.

  1. Open165 XP

    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.

    0 of 5 steps

  2. ProjectLocked330 XP

    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.

    0 of 5 steps

4 questions, graded as you go.
Chapter 2

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.

  1. Locked165 XP

    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.

    0 of 5 steps

  2. ProjectLocked330 XP

    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.

    0 of 5 steps

4 questions, graded as you go.
Chapter 3

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.

  1. Locked165 XP

    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.

    0 of 5 steps

  2. Locked165 XP

    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.

    0 of 5 steps

  3. ProjectLocked330 XP

    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.

    0 of 5 steps

4 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

Two servos

  1. A servo from scratchMeet 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.
  2. Pan, tilt and where the dot landsTwo 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.
Chapter 2

Make it play

  1. Random pathsThe 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.
  2. Speed and pausesHow 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.
Chapter 3

Safe, timed and kind

  1. Safety for eyesA 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.
  2. A timerSessions 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.
  3. Project: a play sessionPut 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.
Keep going

The next course on your track

Build a cat laser toy is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a CubeSat flight computer

Bring up a 1U CubeSat on the bench: sensors, a real power budget, CCSDS telemetry, beacons, safe mode and a ground pass.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a cat laser toy

Is Build a cat laser toy free?

Yes. All 7 lessons of Build a cat laser toy are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a cat laser toy take?

About 5 hours: 7 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Pan, tilt and where the dot lands, Speed and pauses and Project: a play session.

Where do I start?

With "A servo from scratch", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.