Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
IoT Based Car Parking Project
Just Do Electronics
November 12, 2019
IoT Based Car Parking Project
Circuit Diagram :-
App S
ettings :-
CODE :-
/* ******************************************** //Prateek //wwww.prateeks.in //https://www.youtube.com/c/JustDoElectronics/videos ******************************************** */ #define TRIGGER D0 #define ECHO D2 // NodeMCU Pin D0 > TRIGGER | Pin D2 > ECHO #define BLYNK_PRINT Serial // Comment this out to disable prints and save space #include
#include
// You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "BeGg-T745coWgyrlFLBfx5jxwQf9lpqj"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "Redmi"; char pass[] = "partik123"; void setup() { Serial.begin (9600); Blynk.begin(auth, ssid, pass); pinMode(TRIGGER, OUTPUT); pinMode(ECHO, INPUT); pinMode(BUILTIN_LED, OUTPUT); } void loop() { long duration, distance; digitalWrite(TRIGGER, LOW); delayMicroseconds(2); digitalWrite(TRIGGER, HIGH); delayMicroseconds(10); digitalWrite(TRIGGER, LOW); duration = pulseIn(ECHO, HIGH); distance = (duration/2) / 29.1; if (distance <=200) { Blynk.virtualWrite(V0, 255); } else { Blynk.virtualWrite(V0, 0); } if (distance <= 35) { Blynk.virtualWrite(V1, 255); } else { Blynk.virtualWrite(V1, 0); } if (distance <= 30) { Blynk.virtualWrite(V2, 255); } else { Blynk.virtualWrite(V2, 0); } if (distance <= 25) { Blynk.virtualWrite(V3, 255); } else { Blynk.virtualWrite(V3, 0); } if (distance <= 20) { Blynk.virtualWrite(V4, 255); } else { Blynk.virtualWrite(V4, 0); } Serial.print(distance); Serial.println("Centimeter:"); Blynk.virtualWrite(V5, distance); delay(200); Blynk.run(); Serial.print(distance); Serial.println("Centimeter:"); Blynk.virtualWrite(V6, distance); delay(100); Blynk.run(); }
Video :-
Project Download
GitHub Link
0 Comments
Newer
Older
GSM + GPS Based Vehicle Location Tracking System
Smart Shopping Cart using RFID and NodeMCU
Build Your Own Gps Tracking System using Arduino
Sign Language to Speech Conversion using Arduino With Flex Sensor
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
RFID Based Automated Toll Collection System Using Arduino
Car Parking System Using Arduino
Ultrasonic Sensor as a Counter with Arduino
Automatic Fan Controlled Using Temperature Sensor
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments