![]() Myservo_up. Int pirVal = LOW //Initialize PIR as low/off Int servoPos = 0 //variable to store the servos servoPosition BOM - 1X Arduino UNO, 2X TowerPro SG90 Servos, 1X PIR Sensor, 1X Laser, Jumpers, Hot Glue/Gun, Imagination, Patience Special Thanks to Michael James excellent training at He even shares this hobby with his son, who does projects of his own for school! Many thanks to John for submitting this project along with his code.Īfter some further iteration, the breadboard is now snug inside the enclosure.Īrduino Code: //UNO_Laser_Turret_Cats_Tree_Defender_v1_14Dec16 John’s enthusiasm and passion for his project while learning about programming, and fun that came along with it are great things to see. Once again…hope you and yours have a most wonderful Holiday. Am actually working on interrupts right now. John: “I have learned A LOT from you over the last few months, and do not plan on stopping any time soon. For a future upgrade, John plans to use a wireless connection between the sensor and the laser, so the sensor and laser turret can each be ideally located around the tree. The laser turret is made up of two servos on two axes so that it can point the laser around the room.Īfter getting the project working to distract the cats, John was able to mount the Arduino and laser turret on a box with the battery and breadboard inside. ![]() When the UNO sees the HIGH signal from the sensor, the program sweeps the laser turret in programmable angles, speed, and duration for best tree protection and family entertainment. When it senses motion it sends a HIGH signal to the Arduino UNO. The sensor is a PIR (passive infrared sensor) that uses the infrared spectrum of light to detect motion. At the center of his project is an Arduino UNO. 150ms the motor has moved into a position where the firing mechanism physically holds the Fire Trigger switch in the run position until the dart. When the cat trips the motion sensor, the servo and laser go to action, diverting the cat from playing in the tree. ![]() This project, submitted by John Hart, uses a motion detector to activate a turret mounted laser. How are you supposed to defend your Christmas tree from curious and fiendish cats? Why not distract them with a Christmas Tree Defender Cat Diversion Laser Turret!
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |