LazerDazer: Arduino Laser Cat Toy
by robotgeek_official in Circuits > Arduino
8615 Views, 34 Favorites, 0 Comments
LazerDazer: Arduino Laser Cat Toy
Cats just want to straight up do a murder on that little red laser dot. Hunting is great exercise for cats, and it's always amusing to watch them go on the attack! Sure you can just grab your laser pointer and go for it, but you always know where the laser is going to be. Let's inject a little chaos into the mix with a pan/tilt turret to make a laser that moves to random positions at random intervals!
Project Parts List
This should work with any hobby servo driven pan/tilt turret. Here are two suggestions:
RobotGeek Pan and Tilt:
This is a great choice if you'd like to add a camera or attach a fishing pole type cat toy.
- 1 x RobotGeek Pan and Tilt Kit w/Servos
- 1 x Laser w/Mounts
- 1 x Geekduino or other Arduino UNO equivalent
- 1 x Sensor Shield (recommended for easy wiring)
- 1 x 7v5a Power supply
Mini Pan-Tilt:
This is a good choice for low cost, but using 9G servos limits the weight of what you can add.
- 1 x Mini Pan-Tilt Kit
- 2 x 9G Metal Gear Servo
- 1 x Laser w/Mounts
- 1 x Geekduino or other Arduino UNO equivalent
- 1 x Sensor Shield (recommended for easy wiring)
- 1 x 6v2a Power supply
Assemble Your Turret
Wiring
Device | Pin Type | Pin # |
---|---|---|
Pan Servo | Digital | 10 |
Tilt Servo | Digital | 11 |
Laser | Digital | 2 |
Make sure to set the voltage to VIN for larger servos running 7v. You can keep it on 5V for 9G servos or run it VIN with a 6v power supply. Super simple wiring. On to the code!
Programming
Grab the RoboTurret Sketches from GitHub and drop them in your Arduino Sketches folder.
Open up roboTurret3_lazerDaser
and upload it to your board.
Grab your cat and power it up (power up the turret, not your cat. Your cat provides its own power. Do not attempt to power your cat)!
You're Done!
Now you can just sit back and watch your cat rush and attack the evil red dot!