'Overheating Dog/Baby in a Car' Alarm - Email Notifier
by TechMartian in Circuits > Assistive Tech
1292 Views, 8 Favorites, 0 Comments
'Overheating Dog/Baby in a Car' Alarm - Email Notifier
![21245815_1070215366447529_774213645_o.jpg](/proxy/?url=https://content.instructables.com/FIP/CSR4/J6WGPSST/FIPCSR4J6WGPSST.jpg&filename=21245815_1070215366447529_774213645_o.jpg)
![21245850_1070215413114191_992046417_o.jpg](/proxy/?url=https://content.instructables.com/FGB/TYIO/J6WGPSUS/FGBTYIOJ6WGPSUS.jpg&filename=21245850_1070215413114191_992046417_o.jpg)
![21245868_1070215399780859_1352922266_o.jpg](/proxy/?url=https://content.instructables.com/FMM/2HLB/J6WGPSUV/FMM2HLBJ6WGPSUV.jpg&filename=21245868_1070215399780859_1352922266_o.jpg)
![21246021_1070215379780861_1512922042_o.jpg](/proxy/?url=https://content.instructables.com/F4A/GNOB/J6WGPSWT/F4AGNOBJ6WGPSWT.jpg&filename=21246021_1070215379780861_1512922042_o.jpg)
More than 36 children die in overheated cars every year in the United States, research shows, adding up to more than 600 deaths since 1998. Most of these are accidents where well-intentioned parents forget about their kids or dog in their car for hours.
This project is an alarm system that notifies the parent if a baby or dog has been left in a hot car. It uses a combination of a multitude of different sensors and systems to predict if a dog or baby has been left in the car, among these are a sound detector board, temperature sensor, real time clock, and Bluetooth Low Energy.
BoM
![IMG_20170829_185449.jpg](/proxy/?url=https://content.instructables.com/FNK/33HY/J6WGLXFA/FNK33HYJ6WGLXFA.jpg&filename=IMG_20170829_185449.jpg)
* Arduino 101
* TMP36 Temperature Sensor
* Sound Detector Board
* Wires
* Breadboard
Wiring
![IMG_20170829_184316.jpg](/proxy/?url=https://content.instructables.com/FO5/HZ3Z/J6WGLX17/FO5HZ3ZJ6WGLX17.jpg&filename=IMG_20170829_184316.jpg)
![IMG_20170829_184311.jpg](/proxy/?url=https://content.instructables.com/F0H/SF88/J6WGLWVC/F0HSF88J6WGLWVC.jpg&filename=IMG_20170829_184311.jpg)
![IMG_20170829_184324.jpg](/proxy/?url=https://content.instructables.com/FU2/IS6A/J6WGLX9Q/FU2IS6AJ6WGLX9Q.jpg&filename=IMG_20170829_184324.jpg)
I/O | I/O Pin # | Wire Colour | Arduino pin# |
---|---|---|---|
Sound Detector Board | VCC | Orange | VCC |
GND | White | GND | |
Envelope | Yellow | A0 | |
TMP36 | 1 | Black | GND |
2 | Green | A1 | |
3 | Red | VCC* |
Code
![Screen Shot 2017-08-29 at 8.34.44 PM.png](/proxy/?url=https://content.instructables.com/FV3/QAT4/J6WGLGRF/FV3QAT4J6WGLGRF.png&filename=Screen Shot 2017-08-29 at 8.34.44 PM.png)
![Screen Shot 2017-08-29 at 8.34.47 PM.png](/proxy/?url=https://content.instructables.com/FSS/DN3X/J6WGLGTJ/FSSDN3XJ6WGLGTJ.png&filename=Screen Shot 2017-08-29 at 8.34.47 PM.png)
#include <BlynkSimpleCurieBLE.h> #include <CurieBLE.h>
// You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "795aa10d38cf4a4c987de4be9b6d0de3";
BLEPeripheral blePeripheral;
void emailOnButtonPress() { // *** WARNING: You are limited to send ONLY ONE E-MAIL PER 15 SECONDS! ***
if (analogRead(A0)>300 && analogRead(A1)*3.3/1024 > 35) {
Blynk.email("techmartian@techmartian.com", "Subject: URGENT OVERHEATING DOG/BABY IN THE CAR", "Your Dog / Baby is Overheating in the Car!!!"); } }
void setup() { // Debug console Serial.begin(9600);
delay(1000);
blePeripheral.setLocalName("TechMartian"); blePeripheral.setDeviceName("TechMartian"); blePeripheral.setAppearance(384);
Blynk.begin(blePeripheral, auth);
blePeripheral.begin();
Serial.println("Waiting for connections..."); }
void loop() { blePeripheral.poll(); Blynk.run(); }
Setting Up Blynk
![UNADJUSTEDNONRAW_thumb_b44.jpg](/proxy/?url=https://content.instructables.com/FWI/ZVID/J6WGLWE3/FWIZVIDJ6WGLWE3.jpg&filename=UNADJUSTEDNONRAW_thumb_b44.jpg)
![UNADJUSTEDNONRAW_thumb_b3f.jpg](/proxy/?url=https://content.instructables.com/FSJ/VT9K/J6WGLVHU/FSJVT9KJ6WGLVHU.jpg&filename=UNADJUSTEDNONRAW_thumb_b3f.jpg)
![UNADJUSTEDNONRAW_thumb_b43.jpg](/proxy/?url=https://content.instructables.com/F9S/7WW7/J6WGLW59/F9S7WW7J6WGLW59.jpg&filename=UNADJUSTEDNONRAW_thumb_b43.jpg)
* Add a BLE, Email, and Notify Widget
* Turn on notifications on the notify widget.
* Register your email on the email widget
* Connect to your Arduino 101 board on the BLE widget.
Enjoy and keep your pets safe!