BayBies: Babysitting Assistant
We decide to focus on the following assistant after looking for a real day-to-day problem. We were interviewing Shira Gazit - Nadav’s aunt who is a new mother to Omer. We identify that her main pain points come from helping Omer’s babysitter.
Shira mentioned the fact that omer need to eat his specific food at a specific temperature. she also mentioned that she wants to know when Omer is crying or there is an emergency. We conclude that Shira needs a helper who connects Omer and her while the babysitter is with Omer. We also want the babysitter to have a tool she can calm or play with him.
Step 1: Hardwear & Softwear
Before you begin you will gave to prepare the material and software needed for creating the product.
First You will need to get the following hardwear:
- Arduino with temperature sensor, voice receptor, Audio sensor and 10 lights.
- USB cable
Second, You need to create acounts.
- Download on your phone the blynk app and create a user on the blynk website - https://blynk.cloud/
- Create a User at Integromat (It is free of charge up to certain amount of use) - integromat.com
- Download the Arduino app
Step 2: Features Phase Code
babysitter countdown: the babysitter helper arduino also calculates the time left until the parents are coming back home. when the parent leave the babysitter, they can set the time they are going to be gone and white lights will be turned on as the number of hours that’s left for their absence. They can change the hour anytime and keep the babysitter updated!
for example: if the parents set they are going to be back in 3 hours, 3 lights will be ON. after an hour, only 2 lights will be on…
In your blynk project, define buttons as the number of different melodies you would like to play. define the buttons on a “switch” mode, write the name of the song as the “off” text and “playing…” as the on text.
Arduino code attached here
Food Preparation Helper
This feature makes sure non of the food the babysitter made for the child will be overheated. We are using the temperature sensor and defining that it shouldn't pass a specific temp. For starts, the babysitter will click the left button and a red light will be shown once the temperature will reach the desirable temp the lights will change to green.
The code is attached
Magic Music Player:
the babysitting helper includes a magic music player that plays known children's songs to the baby with a press of a button. if the baby is crying in the crib or if you're just looking for an easy way to entertain the baby - click on the button of the song you’d like to play, and watch the baby enjoy the music and the colors of the LEDs changing with the music! If the parents miss the baby, they can also send him his favorite songs
The code:
void PlayHappyBDay(){
souneandTone(0,0,255,262, 100);
souneandTone(0,0,255,262, 100);
souneandTone(0,255,255,294, 200);
souneandTone(0,0,255,262, 200);
delay(120);
souneandTone(0,255,0,349, 200);
souneandTone(255,0,0,330, 200);
delay(120);
souneandTone(0,0,255,262, 100);
souneandTone(0,0,255,262, 100);
souneandTone(0,255,255,294, 200);
souneandTone(0,0,255,262, 200);
delay(120);
souneandTone(220,0,55,392, 200);
souneandTone(0,255,0,349, 300);
delay(120);
souneandTone(0,0,255,262, 100);
souneandTone(0,0,255,262, 100);
souneandTone(60,255,255,523, 200);
souneandTone(100,200,0,440, 200);
delay(120);
souneandTone(0,255,0,349, 200);
souneandTone(0,255,0,329, 200);
souneandTone(255,0,0,294, 200);
delay(250);
souneandTone(0,255,255,294, 100);
souneandTone(70,70,200,466, 100);
souneandTone(70,70,200,466, 100);
souneandTone(100,200,0,440, 200);
souneandTone(0,0,255,329, 200);
souneandTone(0,255,0,392, 200);
souneandTone(0,0,255,349, 400);
souneandTone(0,0,0,0,0);
}
void PlayOldMcdonald(){
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(255,255,0,587, 200);
souneandTone(255,0,0,659, 200);
souneandTone(255,0,0,659, 200);
souneandTone(255,255,0,587, 400);
souneandTone(0,255,0,988, 200);
souneandTone(0,255,0,988, 200);
souneandTone(0,255,255,880, 200);
souneandTone(0,255,255,880, 200);
souneandTone(0,0,255,784, 400);
souneandTone(255,255,0,587, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(255,255,0,587, 200);
souneandTone(255,0,0,659, 200);
souneandTone(255,0,0,659, 200);
souneandTone(255,255,0,587, 400);
souneandTone(0,255,0,988, 200);
souneandTone(0,255,0,988, 200);
souneandTone(0,255,255,880, 200);
souneandTone(0,255,255,880, 200);
souneandTone(0,0,255,784, 500);
souneandTone(255,255,0,587, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(255,255,0,587, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 400);
souneandTone(0,0,255,784, 100);
souneandTone(0,0,255,784, 100);
souneandTone(0,0,255,784, 100);
delay(150);
souneandTone(0,0,255,784, 100);
souneandTone(0,0,255,784, 100);
souneandTone(0,0,255,784, 100);
delay(150);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
delay(300);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(0,0,255,784, 200);
souneandTone(255,255,0,587, 200);
souneandTone(255,0,0,659, 200);
souneandTone(255,0,0,659, 200);
souneandTone(255,255,0,587, 400);
souneandTone(0,255,0,988, 400);
souneandTone(0,255,0,988, 400);
souneandTone(0,255,255,880, 400);
souneandTone(0,255,255,880, 400);
souneandTone(0,0,255,784, 700);
souneandTone(0,0,0,0,0);
}
SOS Button
The SOS represents an emergency the parents need to know about. The case starts when the babysitter slides the emergency button on the Blynk app. A red light is shown on the Arduino and through the Integromat we send a message in Telegram to the parents - “Hey! Its an 🆘 situation!”.
Crying Baby Monitor
After clicking on the right button we enter the monitor phase. This monitor backup by lights. once the baby create noise (crying…) the lights on the Arduino show the intense of the noise (more lights = more noise) after the baby reach a certain level of noise it means something has happend and the father get nonfication throug Integromar To Telegram - “Hey! Your 👶🏼 is crying
Interactive Game - Occupational Therapy
This feature is helping to relax the baby - once you click play on the Blink app the joystick shows and the game begins. The lights in the Arduino change according to where the child put the angle of the joystick.
The Code
//Color game
BLYNK_WRITE(V11)
{
int pinValue = param.asInt();
if (pinValue == 1)
game_on = true;
else {game_on = false;}
}
BLYNK_WRITE(V16)
{
int pinValue = param.asInt();
x_joystick = pinValue;
}
BLYNK_WRITE(V17)
{
int pinValue = param.asInt();
y_joystick = pinValue;
}
BLYNK_WRITE(V15)
{
int pinValue = param.asInt();
if (pinValue == 1)
{
for (int i = 0; i < 10; i++)
CircuitPlayground.setPixelColor(i, 0, 0, 0);
}
}
void calculate_pin()
{
if ((y_joystick >= 0) && (y_joystick <= 200))
{
if (x_joystick <= 500)
chosen_pin = 4;
else
chosen_pin = 5;
}
if ((y_joystick >= 200) && (y_joystick <= 400))
{
if (x_joystick <= 500)
chosen_pin = 3;
else
chosen_pin = 6;
}
if ((y_joystick >= 400) && (y_joystick <= 600))
{
if (x_joystick <= 500)
chosen_pin = 2;
else
chosen_pin = 7;
}
if ((y_joystick >= 600) && (y_joystick <= 800))
{
if (x_joystick <= 500)
chosen_pin = 1;
else
chosen_pin = 8;
}
if ((y_joystick >= 800) && (y_joystick <= 1000))
{
if (x_joystick <= 500)
chosen_pin = 0;
else
chosen_pin = 9;
}
}
void color_game()
{
if (game_on)
{
calculate_pin();
CircuitPlayground.setPixelColor(chosen_pin, color1, color2, color3);
color1 += 50;
color2 += 50;
color3 +=50;
}
}
Integromat Setup
Set up the integromat in a new scenario. Create the chart using the plus sign and connect the entities according to the attached chart (1)
Set up the web entities according to the following diagram and ensure that the virtual pins are the same as the virtual pins you defined previously.
Follow the steps below to configure the bot telegram:
https://www.integromat.com/en/help/app/telegram
Then, define the telegram entity in accordance with the following chart, enter the appropriate id and the appropriate message as necessary:
Duplicate this to the “Crying” feature as well.
Run & Play
Before you begin you will prepare the material and software needed for creating the product.
First You will need to get the following hardwear:
Arduino with temperature sensor, voice receptor, Audio sensor and 10 lights.
Second, You need to create acounts.
- Download on your phone the blynk app and create a user on the blynk website - https://blynk.cloud/
- Create a User at Integromat (It is free of charge up to certain amount of use) - integromat.com
Here a link to videos of some uses example:
https://drive.google.com/file/d/1IsUhPc1ne_7JGsTsQZzcJ9j0nLaawz6Y/view?usp=sharing