'Overheating Dog/Baby in a Car' Alarm - Email Notifier
by TechMartian in Circuits > Assistive Tech
1347 Views, 8 Favorites, 0 Comments
'Overheating Dog/Baby in a Car' Alarm - Email Notifier
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
* Arduino 101
* TMP36 Temperature Sensor
* Sound Detector Board
* Wires
* Breadboard
Wiring
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
#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
* 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!