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
ESP32 Interfacing With LDR Sensor
How to Make Gas Leak Detector & Auto Exhaust Fan Using Arduino
Arduino Based Countdown Timer
RFID Based Automatic Toll Collection System Using Arduino Nano
Esp32 Cam Based Face Unlock
Ultrasonic Sensor as a Counter with Arduino
IoT Based Patient Health Monitoring System Using Blynk App
MLX90614 Non-Contact Infrared Thermometer With Arduino
ESP32 Led Blink With Push Button
How To Make RFID & Keypad Based Door Lock
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