Dog "Manager"

by idobichler in Circuits > Arduino

2229 Views, 7 Favorites, 0 Comments

Dog "Manager"

IMG_3014.jpg

Meet Bailey, she's a 1.5 years old Weimeraner.

As expected from such dog, she is a handfull. This project is made in order to make me and my wife's life somewhat easier by helping us raise Bailey.

From helping us with her pills routine (yes she takes 3 different pills every day) and with letting us know when she's hungry.

This project is based on the Adafruit Circuit Playground Express (2 of them) and uses Blynk, Integromat and IFTT to perform all tasks. Every curcuit is also connected to a ESP8266 board for WIFI connection.

Supplies

This project is based on the Adafruit Circuit Playground Express (2 of them) and uses Blynk, Integromat and IFTT to perform all tasks. Every circuit is also connected to a ESP8266 board for WIFI connection.

The connection is made via UART connection, thus means in each board:

  1. GND <-> GND
  2. VCC <-> VCC
  3. RX <-> RX
  4. TX <-> TX

Food Alarm

IMG_3677.jpg
IMG_3676.jpg
Bailey Wants Food
Screen Shot 2022-01-12 at 3.58.21 PM.png
Screen Shot 2022-01-13 at 9.34.51 AM.png

As mentioned in the instructions, two circuits are used. The first is in charge for the food logic - telling us when Bailey is hungry. The second is connected to the computer, and is in charge for the pill management and the music (spoiler alert).

I'll start with the first one. This device is connected to an external power source as you can see in the picture. Whenever Bailey is hungry she uses her legs to move her food bowl. Some of the times, of course we miss it, so i figured why not send a notification to my smartphone when she does it, and turn on the neopixels on the bowl to mark it (see the video).

When she moves the bowl, an HTTP request is sent to Blynk that turns a switch on, a webhook on Blynk sends an HTTPS request to Integromat which sends my phone the notification. This mix is done because i couldn't find a way to sent an https request directly to integromat and make it work.

You can find the code, the blynk and integromat configurations attached.

Pills & Music

Screen Shot 2022-01-12 at 3.21.08 PM.png
Screen Shot 2022-01-12 at 3.18.22 PM.png
Screen Shot 2022-01-12 at 6.17.11 PM.png
Screen Shot 2022-01-12 at 6.19.34 PM.png
IMG_3684.jpg
Play Dog playlist

This part is for the circuit thats connected to the computer.

Bailey has an inflammation in her spine so she takes 3 pills every day, with different amounts each month. It is very hard to keep track of it.

The solution i chose was:

  1. Create a reoccurring google calendar event that will remind us each day to give her the pills (photo attached).
  2. In each events description, write a json with the amount of every pill.
  3. Using Integromat, each day, if there is an event as described in 1, parse the json, and using Blynk turn on neo pixels (For example: 2 pink, 1 green, 1 blue). In the attached picture you can see the different pills, the event and the neopixels.


Now lets talk music. Did you know that Spotify has dedicated dog relaxing music playlists?

I thought, why not let Bailey enjoy it. Every time i leave the house, using IFTT to recognize it an HTTP request will be sent to Blynk, which will activate a Keyboard and Mouse action on my computer that activates the desired Spotify playlist. The same goes for when we get back, it will pause the music.


You can find the code, the Blynk, Integromat and IFTT configurations attached.