Professional Documents
Culture Documents
IOMP LAB - Project Report: Components Required
IOMP LAB - Project Report: Components Required
Components Required:
NodeMcu
Ultrasonic Sensor
Buzzer
Jumper Wires
PCB
5V charger
100uF-2
Regulator
Software used:
Ardunio IDE
Application used:
Blynk App.
Explanation:
This project uses an electronic device( Ultrasonic Sensor ) that can detect the human activity
and switch on the buzzer to alert the user. The system will also be connected to the internet
and can send the data to the cloud spontaneously and notifies the user with the mobile
application. The main intention to develop this project to provide a security to the house.
Connections:
Schematic:
IOMP LAB - Project Report
APP (BLYNK):
Program:
#define BLYNK_PRINT Serial
#include <SoftwareSerial.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define TRIGGERPIN D4
#define ECHOPIN D5
#define buzzPin D6
WidgetLCD lcd(V1);
void setup()
// Debug console
Serial.begin(9600);
pinMode(TRIGGERPIN, OUTPUT);
pinMode(ECHOPIN, INPUT);
pinMode(buzzPin, OUTPUT);
// Please use timed events when LCD printintg in void loop to avoid sending too many
commands
}
IOMP LAB - Project Report
void loop()
lcd.clear();
digitalWrite(TRIGGERPIN, LOW);
delayMicroseconds(3);
digitalWrite(TRIGGERPIN, HIGH);
delayMicroseconds(12);
digitalWrite(TRIGGERPIN, LOW);
// Buzz
digitalWrite(buzzPin, HIGH);
lcd.print(4, 0, "Alert!!!"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
delay(2000);
} else {
// Don't buzz
digitalWrite(buzzPin, LOW);
lcd.print(0, 0, "Distance in cm"); // use: (position X: 0-15, position Y: 0-1, "Message you want
to print")
IOMP LAB - Project Report
}
Serial.print(distance);
Serial.println("Cm");
lcd.print(7, 1, distance);
Blynk.run();
delay(60);
THANK YOU