'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
21245850_1070215413114191_992046417_o.jpg
21245868_1070215399780859_1352922266_o.jpg
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

* Arduino 101

* TMP36 Temperature Sensor

* Sound Detector Board

* Wires

* Breadboard

Wiring

IMG_20170829_184316.jpg
IMG_20170829_184311.jpg
IMG_20170829_184324.jpg
I/OI/O Pin #Wire Colour Arduino pin#
Sound Detector BoardVCCOrangeVCC
GNDWhiteGND
EnvelopeYellowA0
TMP361BlackGND
2GreenA1
3RedVCC*

Code

Screen Shot 2017-08-29 at 8.34.44 PM.png
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
UNADJUSTEDNONRAW_thumb_b3f.jpg
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!