Raspberry pi-based internet controlled cat laser toy.
Python JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static Change === to == comparison for targetCal and servoCal null check. Mar 17, 2014
templates
.gitignore
Adafruit_I2C.py Add Adafruit PWM and I2C driver code to repository. Sep 10, 2013
Adafruit_PWM_Servo_Driver.py Add Adafruit PWM and I2C driver code to repository. Sep 10, 2013
LICENSE.txt
README.md
model.py
modeltests.py Update readme and cleanup comments. Sep 10, 2013
server.py Update README and LICENSE Sep 11, 2013
servos.py Add beginning of calibration logic to page. Sep 10, 2013

README.md

Raspberry Pi Cat Laser Toy

Demo of a cat laser toy that can be controlled through the web using a Raspberry Pi. See the demo from Tony on Adafruit's 9/7/2013 show and tell show (~12 minutes into the show)!

The hardware setup:

Mobile Upload

The web application. Clicking in the red target area will aim the laser:

Guide

This project is now written up as a guide on the Adafruit Learning System. See the guide there for details on how to set up the hardware and software for the project.

Testing Outside The Raspberry Pi

For convenience the server can be run from outside the Raspberry Pi by executing:

python server.py test

The test parameter will instruct the server to use a mock servo control class which does not depend on Raspberry Pi-specific libraries and functions. Make sure the machine this command is running from has Python, Flask, and NumPy installed on it.

License

Copyright 2013 Tony DiCola

This code is released under an MIT license. See LICENSE.txt for the full details of the license, and the licenses of dependencies that are distributed with this code.