Picture

Adding a cat attack detection function to the xmas tree 2.0

Cats can be cute, but no Christmas tree is safe from them. That's why I put a sensor in my Xmas tree 2.0 that can detect if it's being attacked by a hostile cat.

  • # Cats
  • # Cattatack
  • # Sensors
Picture

This tree is precious to me, and I want to protect it by al costs. It wouldn't be good if he fell over (for example by a cat jumping in). So somehow I would have to detect if it would fall over. This is where the embedded gyroscope accelerometer sensor in the Arduino Uno Wifi comes in handy. I paid for the whole board, so I'm gona use the whole board.

Since this sensor was built in, accessing these gyro values where rather easy and I did not have to connect any cables. If a difference in tilt is detected, in each direction (x, y ,z) a message is sent to the database.

Picture
Picture
Picture

For now, it is just stored in the database. I still have to figure out what happens if a cat attacks the tree, maybe the owner can get a notification, or a text message, or the tree can play a sound to scare the cat.

Picture