'Overheating Dog/Baby in a Car' Alarm - Email Notifier

Published

Introduction: 'Overheating Dog/Baby in a Car' Alarm - Email Notifier

About: Aerospace Engineer working in Software Development with a passion for Hardware.

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.

Step 1: BoM

* Arduino 101

* TMP36 Temperature Sensor

* Sound Detector Board

* Wires

* Breadboard

Step 2: Wiring

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

Step 3: 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();
}

Step 4: 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!

Share

    Recommendations

    • Casting Contest

      Casting Contest
    • Woodworking Contest

      Woodworking Contest
    • Make it Move Contest

      Make it Move Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments