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
Make Smart Dustbin with Arduino
Just Do Electronics
January 11, 2020
Make Smart Dustbin with Arduino
CIRCUIT DIAGRAM :-
CODE :-
//prateek //www.prateeks.in #include
Servo servoMain; // int trigpin = 9; int echopin = 8; int distance; float duration; float cm; void setup() { servoMain.attach(7); // pinMode(trigpin, OUTPUT); pinMode(echopin, INPUT); } void loop() { digitalWrite(trigpin, LOW); delay(2); digitalWrite(trigpin, HIGH); delayMicroseconds(10); digitalWrite(trigpin, LOW); duration = pulseIn(echopin, HIGH); cm = (duration/58.82); distance = cm; if(distance<30) { servoMain.write(180); // delay(3000); } else{ servoMain.write(0); delay(50); } }
0 Comments
Newer
Older
Car Parking System Using Arduino
OTP Based Door Lock Using Arduino And SIM800L
Sign Language to Speech Conversion using Arduino With Flex Sensor
IoT Based Patient Health Monitoring System Using Blynk App
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
RFID Based Automated Toll Collection System Using Arduino
GSM + GPS Based Vehicle Location Tracking System
How To Make RFID & Keypad Based Door Lock
Ultrasonic Sensor as a Counter with Arduino
Arduino ebook
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