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
1 Comments
Ratna Widya
16 December 2023 at 04:39
link blynk nya dimana ya bang ?
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer
Older
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
Build Your Own Gps Tracking System using Arduino
Ultrasonic Sensor as a Counter with Arduino
OTP Based Door Lock Using Arduino And SIM800L
How To Make RFID & Keypad Based Door Lock
IoT Based Patient Health Monitoring System Using Blynk App
Arduino Based Ventilator
IoT Weight Scale using Load Cell HX711 & ESP8266
Esp32 Cam Based Face Unlock
ESP32 Led Blink With Push Button
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
1 Comments
link blynk nya dimana ya bang ?
ReplyDelete