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
IoT Based Patient Health Monitoring System Using Blynk App
Measure CO2 Level in Air Using Arduino
ESP32 Led Blink With Push Button
Esp32 Cam Based Face Unlock
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
NRF Based Servo Motor Control
Home Security System Using Arduino, Pir Sensor And GSM Sim900A
DIY Weighing Scale using Load Cell HX711 & Arduino
Home Automation with GSM SIM800L DTMF & Voice Feedback Using Arduino Uno Board
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