Introduction: IoT Baby Monitor
Baby Monitor is a hardware-software solution for babysitting.
Our baby monitor allows to supervise a couple of scenarios:
1. Noise Detection - Notify you when the baby is crying
2. Temperature Detection - Displays the current temperature in the baby's room and notifies when the temperature exceed 30 degrees or drops down below 20 degrees.
3.Find My Baby - If necessary, allows you to press a button that helps you find the baby by triggering noise
4.Play a song - Allows you to play a song to calm down the baby
Step 1: Setting the Environment
Step 2: Noise Detection
We would liked to be notified when the baby cries!
Follow the steps below:
1. On Integromat site, create a new scenario.
2. choose "Webhooks" -> "custom webhook" -> "add".
3. choose "re-determine data structure". press the "copy address to clipboard" , then open a new tab, and paste the address to url, add to this url the following: "?value="value"".
4. once you press enter you should get "Accepted" message on the screen.
5. On Integromat, press the right side of the webhook symbol, to add a new module, choose Apple iOS, and choose "send a push notification".
6. add your device- scan the QR code int the Integromat app.
7. insert a title for the push notification. for the body choose "message".
8. clicking the clock symbol on the bottom left of the screen will allow you to choose how often to send push notifications.
9. In your project on Blynk, choose V4 as the output.
10. Add the "message" parameter to Query parameters and choose "device_PinValue"
Step 3: Temperature Detection
We would like to know the temperature at the baby's room.
When the temperature exceeds 30 degrees or drops below 20 degrees we would like to get notified.
Follow the steps below:
1. On Integromat site, create a new scenario.
2. choose "Webhooks" -> "custom webhook" -> "add".
3. choose "re-determine data structure". press the "copy address to clipboard" , then open a new tab, and paste the address to url, add to this url the following: "?value="value"".
4. once you press enter you should get "Accepted" message on the screen.
5. On Integromat, press the right side of the webhook symbol, to add a new module, choose Apple iOS, and choose "send a push notification".
6. add your device- scan the QR code int the Integromat app.
7. insert a title for the push notification. for the body choose "message".
8. clicking the clock symbol on the bottom left of the screen will allow you to choose how often to send push notifications.
9. In your project on Blynk, choose V4 as the output.
10. Add the "message" parameter to Query parameters and choose "device_PinValue"
Step 4: Find My Baby
Lost your baby?
We will help you find him!
Press the "Find my Baby" button on the blynk app and the CPX will make noise that will help you detect the baby!
Set a virtual pin in the blynk app that gets DataStream from pin V0.
Step 5: Play a Song
Want the CPX to play a nice song to the baby?
Just press the "Play Song" button on the blynk app.
Set a virtual pin in the blynk app that gets DataStream from pin V3.
Step 6: Code
Download the included file and open it in arduino editor.
Read the comments and change the variables values as you like.
Change the following vars:
1. char auth[] - should be your auth key
2. char ssid[] - should be your wifi name
3. char pass[] - should be your wifi password
4. #define BLYNK_TEMPLATE_ID
5. #define BLYNK_DEVICE_NAME
In order to get the (4), (5) you should enter Blynk >> Templates >> Baby Monitor >> info
Press on the play button to compile and upload the code to the cpx.