Skip to content

StanKatsyuk/Laser-cat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Laser Tower for the CAT

Pseudo-randomly moves a servo tower (on X and Y axis) and lights up a laser.

Set up

x_servo is attached to pin 9 (and +5V and GND) and moves in the X plan.

y_servo is attached to pin 6 (and +5V and GND) and moves in the Y plan.

Laser is attached to pin 13 (and GND).

Download the .ino file, open it inside the arduino software and send it to your arduino.

How it works :

The program randomly choose a new position for the laser inside a square you can define in the variables. It checks the new position is different from the old one of at least "minimal_movement". It moves the tower to the new position and stays still for a time between min_freeze and max_freeze (this aims to reproduce the behaviour of an insect landing somewhere for a bit and then flying off, that's the variable you need to increase if your cat is fat...). And starts the process over and over again.

Created 30 Sep 2016 by Lucas Berbesson for La Fabrique DIY Modified code 2 Feb 2018 by Stan Katsyuk

Note:

The Laser_cat_mod.ino is mostly the same code but with the laser beint intermittently switched on/off every half second. This decreases the risk that your cat will get a laser beam shined in their eye.

About

Arduino Cat Toy with intermittent laser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 100.0%