An NodeMCU based Laser Cat Toy with treats ouput and automatic/manual control mode.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tim Schabe 33b4b0b5d3 „LaserCatWiFiwithManualControl.ino“ hinzufügen 1 year ago
LaserCatWiFiwithManualControl.ino „LaserCatWiFiwithManualControl.ino“ hinzufügen 1 year ago
README.md „README.md“ ändern 1 year ago

README.md

Laser-Cat-Toy-with-manual-control

Pseudo-randomly moves a servo pan/tilt kit with an attached laser for a preselected time. At the end of the specified time, treats are issued. In addition to automatic control, the movement can also be controlled manually via an Website over WiFi.

After switching on, you can select the automatic mode and its operating time (1, 2 or 3 minutes) by pressing the button several times. A long press (> 5 seconds) on the button activates the manual mode. Both modes are indicated by corresponding feedback from the LEDs.

I used the following electronic components:

NodeMCU
Servo Pan/Tilt
1x hacked Servo (continous rotation)
Laserpointer
Button
3x LEDs
installation socket

Automatic part of program code is based on Lucas Berbessons (LA FABRIQUE DIY) "Laser Tower for the cat". The Manual part is based on a publication by robotzero.one. Dual button function by xn1ch1 on instructables.com.

Copy ’n’ pasted together by Tim Schabe (timschabe.com) 21 Dec 2019