IOT Pet Assistant

by Sapir Peretz in Circuits > Arduino

360 Views, 2 Favorites, 0 Comments

IOT Pet Assistant

WhatsApp Image 2021-08-21 at 16.24.00.jpeg

Pet assistant is an hardware-software solution for pet caring

There are 4 things the pet care can do:

1) Notify you if your dog is in an enviromen that is too hot/cold

2) Notify you when your dog is barking and making too much noise

3) Let you know without going inside the app (you can check the app as well) if it's hot/cold for a walk and what the humidity is

4) find your dog if you lost it.

Hope you'll find that helpfull and usefull :)

Technologies and Set-up

WhatsApp Image 2021-08-21 at 16.39.17 (8).jpeg
cpx image.jpg
blynk image.png
integromat-logo.png

The three main technologies we used in our project are: CPX, Blynk, Integromat.

1. CPX- Circuit Playground Express- a board packed with LEDs, buttons, alligator clip pads and variety of sensors such as motion, temperature, sound and light sensors.
In this project, we use the CPX for measuring the temperature around the dog and also use the sound sensor in order to detect when the dog is barking.

2. Blynk- Application which was designed for the Internet of Things. It can control hardware remotely, display sensor data, store data, vizualize it and more.
In this project, Blynk is used as the connective part between CPX and Integromat.

3. Integromat- allows connecting apps and automating workflows.

set up:

1. Download Blynk app: - on Google Play :https://play.google.com/store/apps/details?id=clou...
- on App Store: https://play.google.com/store/apps/details?id=clou...

2. Download Arduino from the following link:https://www.arduino.cc/en/software

3. Sign up to Integromat. link to site: https://www.integromat.com/en/register

4. Create a new project in Blynk: - name your project
- choose device: Arduino MKR1000

5. Find the AUTH TOKEN in the project settings of your new project in Blynk.

Monitor the Temperature Around Your Pet

WhatsApp Image 2021-08-21 at 16.39.17 (5).jpeg
WhatsApp Image 2021-08-21 at 16.39.17 (7).jpeg

We would like to monitor the temperature around the dog, such that we will be notified when the temperature is over 28 degrees or under 15 degrees.


Follow the steps below:
1. On Integromat site, create a new scenario.
2. choose "Webhooks" -> "custom webhook" -> "add".
3. choose "re-determine data structure".
4. press the "copy address to clipboard" , then open a new tab, and paste the adress to url, add to this url the following: "?message="message"".
5. once you press enter you should get "accepted" message on the screen.
6. on Integromat, press the right side of the webhook symbol, to add a new module, choose the device you're using, and choose "send a push notification".
7. add your device- scan the QR code int the Integromat app.
8. insert a title for the push notification. for the body choose "message".
9. clicking the clock symbol on the bottom left of the screen will allow you to choose how often to send push notifications.
10. in your new project on Blynk, scroll down the Widget Box (you can find it by sliding the screen left), and add "WebHook" widget.
11. choose V3 as the output.
12. insert the same copied address as in step 4, replace the "?message="message"" with
"?message=/pin/"

13. Set labeled value on V5 and add °C after "/pin/"

Learn About the Weather :)

WhatsApp Image 2021-08-21 at 16.39.17 (2).jpeg
WhatsApp Image 2021-08-21 at 16.39.17 (4).jpeg
WhatsApp Image 2021-08-31 at 8.40.40 PM.jpeg
Screen Shot 2021-08-31 at 21.14.00.png

You want to go out with your dog but you aren't sure the weather is fine?

Don't worry! On the CPX you will see both temperatur and humidity levels!

The temerature is already there by the CPX temperature chip, so we only need to configure the humidty.

Follow these steps:

  1. Create a new scenario on Integromat.
  2. Pick weather and choose the current weather.
  3. Write your city.
  4. Press on the half circle and add HTTP request
  5. In the URL line enter the following address:"http://188.166.206.43/XXXXXXXXX/update/V0?value=" and replace the "XXXXXXXXX" with the AUTH TOKEN of your Blynk app.
  6. Add after the "=" the humidity level.
  7. Set the interval to be every 15 minutes (clock symbol).
  8. Add Guage, set the input to V0 and set the values to be between 0 to 100.
  9. Now you will so both humidity and temperature levels

Is Your Pet Making Loud Noises?

WhatsApp Image 2021-08-21 at 17.03.53.jpeg

We would like to monitor the noise that the dog makes, so he won't bother people around.

Follow the steps below:

  1. On Integromat site, create a new scenario.
  2. choose "Webhooks" -> "custom webhook" -> "add".
  3. choose "re-determine data structure".
  4. press the "copy address to clipboard" , then open a new tab, and paste the adress to url, add to this url the following: "?message="message"".
  5. once you press enter you should get "accepted" message on the screen.
  6. on Integromat, press the right side of the webhook symbol, to add a new module, choose the device you're using, and choose "send a push notification".
  7. add your device- scan the QR code int the Integromat app.
  8. insert a title for the push notification. for the body choose "message".
  9. clicking the clock symbol on the bottom left of the screen will allow you to choose how often to send push notifications.
  10. in your new project on Blynk, scroll down the Widget Box (you can find it by sliding the screen left), and add "WebHook" widget.
  11. choose V2 as the output.12. insert the same copied address as in step 4, replace the "?message="message"" with"?message=/pin/"

Find My Dog

find-my-app-icon-250x247.jpeg
WhatsApp Image 2021-08-21 at 16.39.17 (3).jpeg

Lost your dog? It's easy, just press on the button in your blynk app and the cpx will make noise untill one of the buttons is pressed.

Just set a button in the blynk app on V1 and that's it :)

The Code

  1. Download the included file and open it in arduino editor
  2. Read the comments and change the constants as you like (for example max temp)
  3. Change the following vars:
    1. char auth[] - should be your auth key

    2. char ssid[] - should be your wifi ssid

    3. char pass[] - should be your wifi password

  4. Press on the play button to compile and upload the code to the cpx.
  5. Disconnect it from your PC and connect it to the batteries.
  6. enjoy

Downloads

Enjoy!

WhatsApp Image 2021-08-31 at 9.22.31 PM.jpeg
IMG_2722.PNG

You did all the steps and now you can take care of your dog!

Have fun and be safe :)