DIY Automatic Trash Bin [Arduino and XOD]
HTML-код
- Опубликовано: 17 авг 2024
- Today we will make trash bin with robotized cap on Arduino! I used XOD to prototype this system.
Learn more about XOD ► goo.gl/YaJkmm (launch IDE to open tutorial)
XOD channel: goo.gl/5Spx6Z
★ Pass your hand to open the cap
★ Cap will not close while your hand is above the sensor
★ Cap will close some time after you remove your hand
★ Energy saving algorithm and hardware modifications allow this bin be in standby mode almost a year on 3 AA batteries!
► GitHub (scheme and sketch) github.com/Ale...
► Components
✓ Arduino NANO ali.ski/POpMO
✓ Range sensor ali.ski/BOSn_x
✓ Servo ali.ski/N8P0y
✓ Battery holder ali.ski/D4tPxC
✓ Box ali.ski/GpYU7U
✓ MOSFET
-IRF3704ZPBF
-IRLB8743PBF
-IRL2203NPBF
-IRLB8748PBF
-IRL8113PBF
-IRL3803PBF
-IRLB3813PBF
-IRL3502PBF
-IRL2505PBF
-IRF3711PBF
-IRL3713PBF
-IRF3709ZPBF
-AUIRL3705N
-IRLB3034PBF
-IRF3711ZPBF
✓ Resistor 100 Ом
✓ Resistor 10 кОм
✓ Highly recommend to use electrolytic capacitor 10V 470-1000 uF
► Page on Instructables
www.instructab...
═════════════════════════════
★ My website
alexgyver.ru/
★ Me on GutHub
github.com/Ale...
★ Me on Instructables
www.instructabl... Наука
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!!
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
Hello, could you please give us a model number for the servo since your link to aliexpress no longer works?
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
Fantastic work, man! Really, really good! :D
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.....
what module that responsible for the communication of the transmitter and receiver? pls respect :)
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
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
Any other mosfet that can be used?
How much time will 2700 mAh lithium ion battery will lasts ?
Can you update the link for the servo? Thank you
One year but nothing change
may I ask which code do I use for this project?
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!!!
Hi, how to add an delay Before the start of the servo motor?
I have a metal trash can. 1,6 kg servo is enough?
How much torque is on that servo?
OMG you guys gotta specify what typa wire yall use to connect those components i'm tired of searching ONE video that does that
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
can i see the block diagram?
Use the force!
how can i delay the opening of the lid?
please tell the apparatus used in it
Very very good .
Thanks
Parts list? Link to buy?
Great job! just one question; the 100 ohms resistor which pin of the mostfet goes?
the gate pin.
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
Well done!
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
really good!!
bro can i ask question?
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
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
may i buy it?
Amazing
Nice project
Please give code
Nice
there are video materials from alexgyver
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
Ведро из фикспрайса
Скоммуниздил у ALEXGYVER show
Teagamer 228 неа. Этот канал тоже его
All it needs now is 2 UV light bulbs! 🤨
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
Good tutorial, but ditch the music. It just gets annoying
Isme paise kitne lage
Please help....
wednesday ok
Nice diy 😃
(see our first video 😉)
Plagiat!!!
*_Amazing_*