Sad Cat Fixer

by 653966 in Circuits > Arduino

349 Views, 0 Favorites, 0 Comments

Sad Cat Fixer

2exibvue1u651.jpg
Sad Cat Fixer Video

Making a 'cat toy' using Arduino components to entertain sad cats, and turn them into yoked cats.

Supplies

frosted-leds-red-green-blue-yellow-white-800x800.jpg
50937b38cc80f5b80bd360e9efbd082de3179159_2_500x500.jpg
15569-Ultrasonic_Distance_Sensor_-_HC-SR04-01a.jpg
IR-Remote-Control-Kit-1.jpg
51l0vKU6bEL._SL1001_.jpg
Electronic-Component-Potentiometer.jpg
sg90-9g-micro-servo-motor-500x500.jpg
71z22cRPeeL._AC_SL1000_.jpg

Plan Your Code Logic

Sad Cat Fixer.png

Plan out the logic for the Sad Cat Fixer. I have already done so using a previous concept in mind. Figure out what you want the toy to do, and how to program that.

Test Your Hardware

Arduino-Buzzer.jpg
servo test.jpg
ultrasonic circuit.jpg

Test out your hardware before you start building. Make a very simple circuit and program to test the functionality of your hardware. Doing this will save you lots of time diagnosing hardware issues later on in case something goes wrong.

Assemble Your Circuit

Sad_Cat_Back_View.jpg
Sad_Cat_Front_View.jpg
Sad_Cat_Left_Oblique_View.jpg
Sad_Cat_Right_Oblique_View.jpg
Sad_Cat_Top_View.jpg
Sad Cat Fixer TinkerCAD.png
circuit.png

Put together the hardware and assemble your circuit. You may want to use a circuit building software such as TinkerCAD before building it in real life, as you can quickly make adjustments to your circuit. Carefully connect all your components and keep track of all the pins and wires. This will help you avoid wiring issues later on. One thing you may want to try is cutting wires to make them appear neater, but do this only once you are 100% sure your wiring is correct.

Implement the Code

Code Screenshot.jpg

Time to use the code to operate your circuit. You will need to use the Arduino IDE in order to compile and upload the code to your Arduino. Once that is done, make sure you have the IR Remote library installed. To quickly summarize the code, it receives and decodes an IR signal to check what button the user pressed. Based on the user's inputs, it will rotate the horizontal servo, vertical servo, or turn on the laser. It will also ping the ultrasonic sensor once for each iteration and sound the buzzer when the cat is in proximity.

Downloads

Test the Entire Project

Time to have fun and run the project in its entirety! Test to see if anything isn't working, and troubleshoot it. For coding issues, check the data in the serial monitor and trace any variables that aren't lining up. For hardware issues, check wiring, pins, and if worst comes to worst, rebuild your circuit. Once you feel comfortable with the project, enjoy it!

(Optional) Turn the Circuit and Code Into a Cat Toy

Sad Cat Fixer Sketch.jpg

Make the circuit into a usable toy for cats. Building materials you may want to consider are cardboard, coroplast, and plywood. You can recreate this concept.