Great tutorial!!! Very good explaining. I appreciate how you start simple and then add functionality. As a noob, this makes it so much easier to follow.
From where did you buy this plastic trash bin. I can find all other parts very easily. But no where to find this cute plastic trash bin for this project. Please give the link
Looking at the code, does it go to sleep for 500ms then measure distance, then go back to sleep constantly unless it sees something in front of the sensor?
Hi Can you help me please? I have kids car electric And i want to connect distance sensor to the wire of the motor. So when it will Get near something it will cut the power. And reconnect it automatically when it will be cleared Some dry contact i/o that can handle about 7 ampere 12v. And this dry contact will be the switch of the wire , Can you help me of the components? Thanks Yossi
Hello i am an engineer student and i don't know how to program in xod.I only know c and c++.please tell me how can i programming in Arduino to make my own smart dustbin.....
Plz help me with the program..I am doing it for past couple of weeks...bt am having problem with program in Arduino nano...I went and bought a new Arduino bt it's the same..not getting any output of your program..plz suggest me.. what can I do in it..even xod program is not working..plz help
Hi Can you help me please? I want some distance sensor for (20cm) with adjustment option if there is, and with dry contact open/close. so, when it detects Obstacle it will open the dry contact and automatically close it when it will stop detect the Obstacle can you help me to find the item that I need on AliExpress? Thanks Yossi
Hi, i don't see it, where you use digital output 4 ? d4 in the XOD programing, i saw that use for turn on ultrasonido but dont see in the program ? Bye Thank you
hey i have been trying to get my garbage can to open ike yours but it wouldnt even move. can anyone help me? i am using the Arduino Nano Everyday here is my code. #define maxH 50 // working distance #define cap_time 3 // time while cap is open, seconds #define open_angle 10 // open angle #define close_angle 155 // close angle #define debug 0 // debug information (0 off, 1 on) //-------------------- SETTINGS ---------------------- // --- WIRING --- #define trigPin 3 #define echoPin 2 #define sensorVCC 4 #define servoPin 5 // --- WIRING --- #include // servo library Servo servo; long duration; byte distance; unsigned long open_timer; boolean open_flag; void setup() { Serial.begin(9600); if (debug) Serial.println("system start"); servo.attach(servoPin); pinMode(trigPin, OUTPUT); digitalWrite(trigPin, 0); ; pinMode(echoPin, INPUT); pinMode(sensorVCC, OUTPUT); digitalWrite(sensorVCC, 0); // power off the sensor open_cap(); // open cap with system start } void open_cap() { if (debug) Serial.println("open"); delay(1); servo.write(open_angle); // open cap delay(1000); // wait servo digitalWrite(5, 0); // disable servo open_flag = 1; // remember that cap is open } void close_cap() { if (debug) Serial.println("close"); digitalWrite(5, 1); // power up the servo delay(1); servo.write(close_angle); // close cap delay(1000); // wait servo digitalWrite(5, 0); // disable servo open_flag = 0; // remember that cap is closed } void loop(){ digitalWrite(sensorVCC, 1); // power up range sensor measure(); // first "idle" measure, there are some glitches without it distance = measure(); // get distance digitalWrite(sensorVCC, 0); // disable range sensor if (debug) { Serial.println(distance); delay(500); } if (distance > 5 && distance < maxH) { // if distance fit the range open_timer = 0; // reset timer if (!open_flag) { // if cap is closed open_cap(); } } else { if (open_flag) { // if cap is open open_timer++; // timer increment if (open_timer > cap_time) { // if passed more than cap_time after cap was opened close_cap(); } } } } // distance measuring function byte measure() { digitalWrite(trigPin, 0); delayMicroseconds(5); digitalWrite(trigPin, 1); delayMicroseconds(15); digitalWrite(trigPin, 0); duration = pulseIn(echoPin, HIGH); return (duration / 2) / 29; }
Great tutorial!!! Very good explaining. I appreciate how you start simple and then add functionality. As a noob, this makes it so much easier to follow.
Это украденно у alexgyver!!
Fantastic work, man! Really, really good! :D
From where did you buy this plastic trash bin. I can find all other parts very easily. But no where to find this cute plastic trash bin for this project. Please give the link
Looking at the code, does it go to sleep for 500ms then measure distance, then go back to sleep constantly unless it sees something in front of the sensor?
Hello, could you please give us a model number for the servo since your link to aliexpress no longer works?
Any other mosfet that can be used?
Very very good .
Thanks
really good!!
Hi
Can you help me please?
I have kids car electric
And i want to connect distance sensor to the wire of the motor. So when it will Get near something it will cut the power.
And reconnect it automatically when it will be cleared
Some dry contact i/o that can handle about 7 ampere 12v.
And this dry contact will be the switch of the wire ,
Can you help me of the components?
Thanks
Yossi
OMG you guys gotta specify what typa wire yall use to connect those components i'm tired of searching ONE video that does that
Hello i am an engineer student and i don't know how to program in xod.I only know c and c++.please tell me how can i programming in Arduino to make my own smart dustbin.....
Well done!
Hey! Can you update the link for the servo? thanks
Or at least give an exact model so that we can find it ourselves
AlexGyver
Nice project
Can you update the link for the servo? Thank you
One year but nothing change
How much time will 2700 mAh lithium ion battery will lasts ?
may I ask which code do I use for this project?
I have a metal trash can. 1,6 kg servo is enough?
My question is It is important to install XOD program in arduino.Actually my sensor is not working and I am cannot send xod program in Arduino.
f
@@sabiannenggalasunito6944 f
Which is better in creating this smart dust bin, Arduino UNO or Nano?
it's going to give you the same results
Both are ok, it's mostly a size difference between the 2
Use the force!
Nice
Plz help me with the program..I am doing it for past couple of weeks...bt am having problem with program in Arduino nano...I went and bought a new Arduino bt it's the same..not getting any output of your program..plz suggest me.. what can I do in it..even xod program is not working..plz help
Это видео украдено у alexgyver!!!
How much torque is on that servo?
*_Amazing_*
Parts list? Link to buy?
Great job! just one question; the 100 ohms resistor which pin of the mostfet goes?
the gate pin.
can i see the block diagram?
can we use arduino uno instead of nano?
coshie pamittan yes,u can use any board
Yep you can but it takes more space and power that's it
please tell the apparatus used in it
Hi
Can you help me please?
I want some distance sensor for (20cm) with adjustment option if there is, and with dry contact open/close.
so, when it detects Obstacle it will open the dry contact and automatically close it when it will stop detect the Obstacle
can you help me to find the item that I need on AliExpress?
Thanks
Yossi
there are video materials from alexgyver
how can i delay the opening of the lid?
All it needs now is 2 UV light bulbs! 🤨
may i buy it?
Good tutorial, but ditch the music. It just gets annoying
Bro when I run the coding its showing that 'low power' is not declared please help me.
Maybe you don't have the LowPower library, u can download that in github
mr. could you pls go to my house and teach me how to do it? but i'm from indonesia. my complex is in bali view blok: c2 no. 2
Hi, i don't see it, where you use digital output 4 ? d4 in the XOD programing, i saw that use for turn on ultrasonido but dont see in the program ? Bye Thank you
digital output 4 is high "true" to feed the ultrasonic VCC 5v
Please give code
Скоммуниздил у ALEXGYVER show
Teagamer 228 неа. Этот канал тоже его
hey i have been trying to get my garbage can to open ike yours but it wouldnt even move. can anyone help me? i am using the Arduino Nano Everyday here is my code.
#define maxH 50 // working distance
#define cap_time 3 // time while cap is open, seconds
#define open_angle 10 // open angle
#define close_angle 155 // close angle
#define debug 0 // debug information (0 off, 1 on)
//-------------------- SETTINGS ----------------------
// --- WIRING ---
#define trigPin 3
#define echoPin 2
#define sensorVCC 4
#define servoPin 5
// --- WIRING ---
#include // servo library
Servo servo;
long duration;
byte distance;
unsigned long open_timer;
boolean open_flag;
void setup() {
Serial.begin(9600);
if (debug) Serial.println("system start");
servo.attach(servoPin);
pinMode(trigPin, OUTPUT);
digitalWrite(trigPin, 0);
;
pinMode(echoPin, INPUT);
pinMode(sensorVCC, OUTPUT);
digitalWrite(sensorVCC, 0); // power off the sensor
open_cap(); // open cap with system start
}
void open_cap() {
if (debug) Serial.println("open");
delay(1);
servo.write(open_angle); // open cap
delay(1000); // wait servo
digitalWrite(5, 0); // disable servo
open_flag = 1; // remember that cap is open
}
void close_cap() {
if (debug) Serial.println("close");
digitalWrite(5, 1); // power up the servo
delay(1);
servo.write(close_angle); // close cap
delay(1000); // wait servo
digitalWrite(5, 0); // disable servo
open_flag = 0; // remember that cap is closed
}
void loop(){
digitalWrite(sensorVCC, 1); // power up range sensor
measure(); // first "idle" measure, there are some glitches without it
distance = measure(); // get distance
digitalWrite(sensorVCC, 0); // disable range sensor
if (debug) {
Serial.println(distance);
delay(500);
}
if (distance > 5 && distance < maxH) { // if distance fit the range
open_timer = 0; // reset timer
if (!open_flag) { // if cap is closed
open_cap();
}
} else {
if (open_flag) { // if cap is open
open_timer++; // timer increment
if (open_timer > cap_time) { // if passed more than cap_time after cap was opened
close_cap();
}
}
}
}
// distance measuring function
byte measure() {
digitalWrite(trigPin, 0);
delayMicroseconds(5);
digitalWrite(trigPin, 1);
delayMicroseconds(15);
digitalWrite(trigPin, 0);
duration = pulseIn(echoPin, HIGH);
return (duration / 2) / 29;
}
A garbage can will probably need more than servo motors to move
Ведро из фикспрайса
Please help....
Isme paise kitne lage
wednesday ok
Nice diy 😃
(see our first video 😉)
Plagiat!!!
Amazing