*Code For Automatic Dustbin* //define Pins #include Servo servo; int trigPin = 9; int echoPin = 8; // defines variables long duration; int distance; void setup() { servo.attach(7); servo.write(0); delay(2000);
// Sets the trigPin as an Output pinMode(trigPin, OUTPUT); // Sets the echoPin as an Input pinMode(echoPin, INPUT); // Starts the serial communication Serial.begin(9600); } void loop() { // Clears the trigPin digitalWrite(trigPin, LOW); delayMicroseconds(2); // Sets the trigPin on HIGH state for 10 micro seconds digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Reads the echoPin, returns the sound wave travel time in microseconds duration = pulseIn(echoPin, HIGH); // Calculating the distance distance= duration*0.034/2; // Prints the distance on the Serial Monitor Serial.print("Distance: "); Serial.println(distance); if ( distance
This project really works guys I tried it and it worked I was shocked because I had tried the other videos but they did not work I was soo happy to see it working I recommend all of you all to try this!!!
@@honghtc4628 sure you need to make sure that the code is correct so verify your code first and then you can press the upload button which is and arrow to the left done! its very easy!!!
@@honghtc4628 if you found it helpful then please checkout my channel please you will get to learn more about arduino in my future videos thank you so much!!!
Sir i really appreciate your work I want to do this project as one of my college assignment can you please share the circuit diagram and more detailed explaination about the project It would really helpful if you reply quickly
Hi, there's a problem. When I was doing the wirings stuffs, i found out that the video mention 2 times for to connect the 5V. But there's only 1 5V that only could be used. So, what should i do?
sir, if you don't mind can you upload the arduino circuit? Please~ I need the circuit for my assignments and have to submit it on Nov 29, 2020. I'm looking forward to it, thank you!
Hey! Amazing video! Could you please tell us where did you get the bin from? We are trying to build a segregation project and this seems like a perfect fit for it. Thanks :)
Is that possible to control two different mechanism with one arduino. Let's say I do two of these, but when one sensor works, I want the open two different box at the same time. There will be a distance between them, so I can't connect with the cable. Please help...
Bro please help me... How can i connect ultrasonic sensor to led such that as the garbage level increases the led will light up, there will be 4 LED's green (bottom at 4th no.) blue (3rd) yellow(2nd) red(at top) and how can we tell gsm module that the garbage is at top go and send a message to the authorised no.
//define Pins #include Servo servo; int trigPin = 9; int echoPin = 8; // defines variables long duration; int distance; void setup() { servo.attach(7); servo.write(0); delay(2000);
// Sets the trigPin as an Output pinMode(trigPin, OUTPUT); // Sets the echoPin as an Input pinMode(echoPin, INPUT); // Starts the serial communication Serial.begin(9600); } void loop() { // Clears the trigPin digitalWrite(trigPin, LOW); delayMicroseconds(2); // Sets the trigPin on HIGH state for 10 micro seconds digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Reads the echoPin, returns the sound wave travel time in microseconds duration = pulseIn(echoPin, HIGH); // Calculating the distance distance= duration*0.034/2; // Prints the distance on the Serial Monitor Serial.print("Distance: "); Serial.println(distance); if ( distance
bonjour j'ai remarquer que sur la borne "+" de l'arduino il n'y a que 1 broche, alors comment vous faite pour brancher le positif du "servo moteur" et "HCsr04" ? merci
Diagram me servo motor ke connection me mistake hai. Code me servo motor ke liye jo pin write ki hain wahan dekho or us pin me Echo, Trigger or 5 volt kisi bhi pin me laga do aurdino ke 5 volt pin me
Hey cool project, I'd like to use your project as a base for mine. Do you have experience adding sound. I would like to play sound when a person passes to lure him or her to the trash can. If anyone can help me, just let me know.
hi, can you tell me how much did it cost for this sensor tools? im making one sensor smart trash for my final project for student , i hope you can tell me asap, love your tutorial 💖💖💖
Im facing problem tho Like the Arduino board, when connected to computer with its wire Then LED, when inserted in the Arduino terminals, it started glowing on its own And the glow was non stop I dint even write anything It started glowing on its own
*Code For Automatic Dustbin*
//define Pins
#include
Servo servo;
int trigPin = 9;
int echoPin = 8;
// defines variables
long duration;
int distance;
void setup()
{
servo.attach(7);
servo.write(0);
delay(2000);
// Sets the trigPin as an Output
pinMode(trigPin, OUTPUT);
// Sets the echoPin as an Input
pinMode(echoPin, INPUT);
// Starts the serial communication
Serial.begin(9600);
}
void loop()
{
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance= duration*0.034/2;
// Prints the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.println(distance);
if ( distance
uy pero que pro
is this need your access?
How to buy
.
❤❤
The way you showed every wire setup it becomes very user friendly for beginners. Loved it 😍
this one is far better , smart Automatic Intelligent Sensor Smart Trash Can Dustbin : th-cam.com/video/9RivHtAlDW8/w-d-xo.html
how to use the code
Oohh💥🔥nyzz presentation
🤗Waah Bhai 💯 aekdam 👌 Perfect 🙌 project 👍👌Pin configuration aekdam saras batayu je pins kya joint kare che ae complete batayu💯👍bahu jj Jordar 😀 Bro 💥💯 amazing video
Yaru project thai gyu hoy too plz
...ame aama help kari de pz
Taru*
Hi I wanna ask .. So ultrasonic and motor servo connected to same 5v pin ?
Check mine with full wiring diagram
This project really works guys I tried it and it worked I was shocked
because I had tried the other videos but they did not work
I was soo happy to see it working
I recommend all of you all to try this!!!
Hi,can i know how to add code to Arduino?
Can I know it?
@@honghtc4628 sure you need to make sure that the code is correct so verify your code first and then you can press the upload button which is and arrow to the left
done!
its very easy!!!
@@smrtinnovtor3799need coding app to do it right, thanks, I will do it
@@honghtc4628 if you found it helpful then please checkout my channel please
you will get to learn more about arduino in my future videos
thank you so much!!!
Thank you brother ❤ tum ne jo code dala he iske vajah se mera code upload hogaya
thanks for the tutorial,i love it!
Great project. Thank you for sharing
How do u plug in the ultrasonic sensor at 5v but also the motor at 5v?
im confuse at it too
same problem@@govand3622
me too
Bro you can use a breadboard for this ❤❤
Nice 🎉😂😅 I can’t wait to do this project.
LOVED IT VERY INFORMATIVE
Great One indeed! Easy to follow. I bought theze products and they were exactly what i expected. Keep up the good work.
Thank you so much for the comment
How can I bought theezz?
@@sasikumarm1509 you can check the description. As they were mentioned there.
this one is far better , smart Automatic Intelligent Sensor Smart Trash Can Dustbin : th-cam.com/video/9RivHtAlDW8/w-d-xo.html
Cost ?
I like way you stated everything 😊😊😊
i dont known at 2:20 connect servo with arduino , can you help me pls
amazing.. please upload simple robotic for lifehack
Great project boss
Sir i really appreciate your work
I want to do this project as one of my college assignment can you please share the circuit diagram and more detailed explaination about the project
It would really helpful if you reply quickly
waoo it easy to build
Nice Maza aya ga
Thank you boss
Loved the way of teaching 💝💞💖💖💖
What do u mean by led code is it separate to servo code,,?
Superb🎉
Thank you bro this two project done well because of you very very thank you
Thank you so much for sharing
Plz... Help me to make this project... My project is not working
hii, amazing video,but, do i have to use a 9v battery power plug?,can i use just 4 normal battery?
No bro you can't it's not enough to make your sensor and servo motor work
Wow! Amazed!
you helped me a lot thank u
VERY VERY HELP FUL VIDEO THANK YOU VERY MUCH
just awsome
Hi, there's a problem. When I was doing the wirings stuffs, i found out that the video mention 2 times for to connect the 5V. But there's only 1 5V that only could be used. So, what should i do?
same
@@flinty_video4385which one have you bought?
Use just one
are u using orignal arduino?
You can also use breadboard
Amazing tutorial.. Thanks
Is led necessary for this project or you can just excluded and only need the motor?
No it is not necessary he only used as a feedback at the beginning but u could use others software to read the sensor values
sir, if you don't mind can you upload the arduino circuit? Please~ I need the circuit for my assignments and have to submit it on Nov 29, 2020. I'm looking forward to it, thank you!
Awesome video
★ loved it i noted down metirials
materials
Thanks it is helpful for my project
i dont have a male to male orange wire can i keep other one? pls reply fast
Vcc pin 5v and red wire is also 5v
Amazing tutorial, very easy to follow
Nice.
do i have to include some libraries if i use elegoo?
Amazing and Contemporary solution in short detailed video. Thanks for sharing! :)
Thank you so much for your precious feedback
this one is far better , smart Automatic Intelligent Sensor Smart Trash Can Dustbin : th-cam.com/video/9RivHtAlDW8/w-d-xo.html
How do we make the final connection of both Servo motor and ultrasonic sensor to the arduino uno
Use a breadboard please
Can someone pls tell me how to combine the servo and led code
We have to connect ultrasonic sensor to 3.3v and servo to 5v
What is the com port should I select or how should I change Com port
Sir why the servo and the sensor has the same spot to the arduino? Please help
Use a breadboard
hey good project , but clarification that ultrasonic and servo but are joining to 5V??
You can use breadboard for that
Iove your videos sir have been following ur page u are great
Very good video but you may want to cover the electronics on the inside so they do not get dirty or damaged, but still very good work!
Hey! Amazing video! Could you please tell us where did you get the bin from? We are trying to build a segregation project and this seems like a perfect fit for it. Thanks :)
Thank you so much for your valuable feedback. I got the dustbin from local market
this one is far better , smart Automatic Intelligent Sensor Smart Trash Can Dustbin : th-cam.com/video/9RivHtAlDW8/w-d-xo.html
Awesome!!!
Could this work for a wall powered vacuum. Edit. Like could I change that servo for turing on and off the vacuum.
i lve tha creativity
thankyou very much
Where will I put the GND and 5v for the sensor and the motor?
You can use a breadboard
Do you use two arduinos?
Very Good Idea Sir.🙂
Is that possible to control two different mechanism with one arduino. Let's say I do two of these, but when one sensor works, I want the open two different box at the same time. There will be a distance between them, so I can't connect with the cable. Please help...
yes sure you can
What are those pins called as how shall i buy them , i mean those wires?
4:57 where do you put the wire?? PLEASE RESPONS🙏🙏🙏
Its is connected already he just closed the bin and the wire just folded
how you put 2 wire in one 5v
Just put 2. wire on 5V at the top
Hi, why the servo keeps moving? and it wont stop at 90 ? and never go back to 0 ?
this one is far better , smart Automatic Intelligent Sensor Smart Trash Can Dustbin : th-cam.com/video/9RivHtAlDW8/w-d-xo.html
Samee
i love anna super
we don 't need to combine the codes ?
how much adruino compitable UNO R3 you use? please respons🙏🙏
Can i ask a question? in arduino, how can i connect the vcc pin to 5v if the servo motorr power wire is in it?
You can just connect servo motor wire to 3.3v and the sensor wire to 5v
thanks or the amazing video n
Glad you liked it!
hi if i want to add both the led and the motor how do i do that?
How i coad code led as well as adiuno board? Pls reply i have to make it in 4 days pls
in arduino there is only one 5v pin where will i put the other pin
Excellent Question! Just for experiment purpose, you can use a 3v pin. But it is recommended to provide external power to the servo
I Love Creativity how will we do that ??
The program (sketch) kept giving me errors. Tried another fellows and worked . Problem is don’t have enough room for a longer aren
Otherwise we give powersupply adopter means it will work and how much volts adopter need ardunio
First of all, it will depend on the motor being used. Please check the manufacturer's website for more information.
Tôi không biết lúc 2:20 kết nối ultrasonic module và servo với arduino, bạn có thể giúp tôi không
How much away sensor detect (cm)?
It's around 2 metre ( check mine 💯 working )
Bro please help me...
How can i connect ultrasonic sensor to led such that as the garbage level increases the led will light up, there will be 4 LED's green (bottom at 4th no.) blue (3rd) yellow(2nd) red(at top) and how can we tell gsm module that the garbage is at top go and send a message to the authorised no.
Are you using 2 arduino
Pls hw many 5v are on the board it is one but u told us to connect vcc to 5v and red wire to 3.3v
Does this project require led lighting
hello will this work on Infrared Proximity sensor???
Reinna Fandiño yes
can someone help me? why i using the battery snap connector but doesn't work? when i using arduino cable connected to computer can operate
the ultrasonic led code?
I do not have my computer currently and I have a preuploaded code in my ardiuno,can I do the making like you using that code??? Please reply fast
fast
What kind of wire was used?
//define Pins
#include
Servo servo;
int trigPin = 9;
int echoPin = 8;
// defines variables
long duration;
int distance;
void setup()
{
servo.attach(7);
servo.write(0);
delay(2000);
// Sets the trigPin as an Output
pinMode(trigPin, OUTPUT);
// Sets the echoPin as an Input
pinMode(echoPin, INPUT);
// Starts the serial communication
Serial.begin(9600);
}
void loop()
{
// Clears the trigPin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
// Sets the trigPin on HIGH state for 10 micro seconds
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Reads the echoPin, returns the sound wave travel time in microseconds
duration = pulseIn(echoPin, HIGH);
// Calculating the distance
distance= duration*0.034/2;
// Prints the distance on the Serial Monitor
Serial.print("Distance: ");
Serial.println(distance);
if ( distance
Thank u sir
how to use the code
bonjour
j'ai remarquer que sur la borne "+" de l'arduino il n'y a que 1 broche, alors comment vous faite pour brancher le positif du "servo moteur" et "HCsr04" ?
merci
nice
How you put vcc to 5v and sevor motor to 5v also??
Jahan par 5 volt write hai wahan kisi bhi jagah laga dijiye
Diagram me servo motor ke connection me mistake hai. Code me servo motor ke liye jo pin write ki hain wahan dekho or us pin me Echo, Trigger or 5 volt kisi bhi pin me laga do aurdino ke 5 volt pin me
Maine abhi banaya hai ye model.
Model work kar raha hai
Hey cool project, I'd like to use your project as a base for mine. Do you have experience adding sound. I would like to play sound when a person passes to lure him or her to the trash can. If anyone can help me, just let me know.
Can we sensing a Container for plastics? If yes, we are working for this, I need a technical person who can do that...answer plz
I can't visit the servo code and led code can you please fix it?
Hey were do I get the headers (.h) file.
how to make the led stop if there is nothing go through the sensor?
hi, can you tell me how much did it cost for this sensor tools? im making one sensor smart trash for my final project for student , i hope you can tell me asap, love your tutorial 💖💖💖
this one is far better , smart Automatic Intelligent Sensor Smart Trash Can Dustbin : th-cam.com/video/9RivHtAlDW8/w-d-xo.html
Mi wykostowało na allegro 379,25 zł
sorry for the inconvenience I wanted to ask in this video where is the code for the engine
how did you connect two wires in 5v?
Change the motor to 3.3v
@@b34rb00 hi, i have no idea about codes but i have a project to finish. where in the codes should i change it to 3.3v?
Brooo damn easy
Hi, where can we find these tools in Africa Please it's urgent
Hello! I have a question, can I use Arduino Uno and will it be still gonna work? Or do I really have to use Arduino Uno R3?
u can use Arduino uno and it will still work even nano too it will work perfectly
Im facing problem tho
Like the Arduino board, when connected to computer with its wire
Then
LED, when inserted in the Arduino terminals, it started glowing on its own
And the glow was non stop
I dint even write anything
It started glowing on its own