Cat Blocker With Arduino

by DaisyDream in Circuits > Arduino

154 Views, 0 Favorites, 0 Comments

Cat Blocker With Arduino

截圖 2021-05-16 下午10.18.32.png

I invented this product since our cats like to jump onto things, tables, dining tables, closets, cabinets, etc. So I want to male a product with Arduino and continue to use my last project Arduino Capacitive Touch Sensor With LEDs to extend my new product. I used a none harmful way to "scare" off my cat from the table.

Supplies

  • Arduino development board *1
  • Wires *7
  • Alligator clip *2
  • Breadboard *1
  • Tinfoil pieces *4
  • USB input line *1
  • Computer *1
  • Micro Servo *1
  • Buzzer(Piezo small) *1
  • Box *1
  • Knife *1

Wiring

截圖 2021-05-16 下午10.03.16.png

The photo above is how we are going to wire up our product. First, you would have to have an Arduino development board and a breadboard. Then we connect all the wires kike how I connect in the above sketch, then we will connect the rest of the equipment. Which are the micro servo, buzzer, and alligator clip.

In the case of a motor, I added the micro servo to have a greater opportunity to attract the cat easier if they are do not go when the buzzer ended.

Coding

截圖 2021-05-17 上午8.14.31.png
截圖 2021-05-17 上午8.14.48.png
截圖 2021-05-17 上午8.15.01.png
截圖 2021-05-17 上午8.15.12.png

I added the code for the micro servo and the buzzer. I replace these codes with the previous LEDs code. In which I added the code inside the loop, the if/else loop. These codes are also used from the previous project Arduino Capacitive Touch Sensor With LEDs.

The Code is in code.

Wrap Out the Final Product

IMG_20210516_215104.jpeg

I choose a box randomly then cut two holes at the side of the box(if there is already holes on the box, you don't have to cut), then put the Arduino development board and the breadboard inside the box, be very careful when you are putting the buzzer, it's fragile. then pull the alligator clip and the line that connects the micro servo out the box. The last steps, close you box and clip a piece of tinfoil on your alligator clip and put them on your table. And you are done.

Final Product

Cat Blocker with Arduino

Please turn your volume higher when you are watching this video. And I use a doll for simulating a cat, which cat are more difficult to film. You can see when the doll jumps onto the table and step on the tinfoil, the buzzer starts to produce sound to scare the doll away, in the real case the cat. Then as we have seen, the doll isn't scared, so the motor starts a quick move, which the doll is scared and jumps away.