Inspiration: My parkouring cat, Youshi
For my first smart circuit, I decided that (once again) I wanted to create something related to my cat. She has been consistently jumping on my bedroom vanity, and I wanted to deter her from that as I place my accessories and perfume bottles which she might break (she's allowed to jump on any other surface in the house. While going through Instructables.com, I found this simple Arduino Alarm - Cat Proof which is an alarm activated by arduino and an ultrasonic sensor to activate a buzzer when the cat is near it. Given that she sleeps in my bed and sometimes I forget my bedroom door open before leaving for work, this might be a good solution to deter her from jumping on to my vanity (hopefully) for good!
Tinker Cad
Arduino IDE
Arduino Uno 3
Breadboard (also mini)
Ultrasonic sensor
Piezo buzzer
5V adapter
Jumper wires
330 Ohm Resistor
Software & Componenets
I read through the Arduino Alarm - Cat Proof project details until I came across the circuit design. In the original, there was an LED bulb used which I decided to discard as my cat was used to LED bulbs in her cat house. The rest of the circuit components and design were available and would help me follow the task's criteria. I created a new board on Tinker CAD and started creating the circuit similar to the existing model. I had to create the block codes myself as they were not provided in the project. This was not an issue as I turned back to the lecture slides, the internet, and my notes as reference.
System Simulation on Tinker CAD
I applied the virtual design on the actual bread board and components. I copied the text code from Tinker CAD to Arduino IDE. It worked from the first time which was great. I played around the frequency levels from 32 to 256 and settled on 128 as it was loud enough to startle the cat but also not too loud that it would be hurtful. I also made the buzzer work for 8 seconds as it was the right type of duration to make my cat jump off the vanity and hopefully deter it from jumping again on top of it. The distance was also defined as less than 10 cm as my vanity is relatively slim and my cat usually likes to walk near the mirror and wall.
Electric circuit making and fitting into enclosure
Title of Media
Building the code block from scratch: As mentioned earlier, the existing project did not provide any code so I had to build one on my own. I resolved to the lecture slides, the internet, and my notes as reference.
Circuit Design: Cat proofing Arduino alarm
Circuit Design: Cat proofing Arduino alarm (in action)
Title of Media
Title of Media