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
IoT Based Patient Health Monitoring System Using Blynk App
ESP32 Interfacing With LDR Sensor
Arduino Gps And Gsm Based location Tracking System
Arduino Based Countdown Timer
NRF Based Servo Motor Control
Arduino ebook
PIR And LDR Based Night Security System
Raspberry Pi 4 Complete Guide
Vehicle Accident Alert System Using Accelerometer GPS And GSM
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
0 Comments