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...
  • НаукаНаука

Комментарии • 73

  • @Martin-yl5zb
    @Martin-yl5zb 6 лет назад +10

    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.

  • @wasanthawimaladharm
    @wasanthawimaladharm 6 лет назад +1

    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

  • @yonutz333
    @yonutz333 11 месяцев назад

    Hello, could you please give us a model number for the servo since your link to aliexpress no longer works?

  • @JeremyCook
    @JeremyCook 6 лет назад +1

    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?

  • @yossishi221
    @yossishi221 4 года назад

    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

  • @MCsCreations
    @MCsCreations 6 лет назад +5

    Fantastic work, man! Really, really good! :D

  • @anantsoni6335
    @anantsoni6335 6 лет назад +1

    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.....

  • @haisex0961
    @haisex0961 2 года назад

    what module that responsible for the communication of the transmitter and receiver? pls respect :)

  • @alexandreleite4156
    @alexandreleite4156 4 года назад +4

    Hey! Can you update the link for the servo? thanks

    • @yonutz333
      @yonutz333 11 месяцев назад

      Or at least give an exact model so that we can find it ourselves

  • @user-hg6dm6mg2f
    @user-hg6dm6mg2f 6 лет назад +3

    AlexGyver

  • @anantsoni6335
    @anantsoni6335 6 лет назад +2

    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.

  • @rdxcreations7285
    @rdxcreations7285 10 месяцев назад

    Any other mosfet that can be used?

  • @pravindev4370
    @pravindev4370 3 года назад

    How much time will 2700 mAh lithium ion battery will lasts ?

  • @ritishamahapatra2863
    @ritishamahapatra2863 3 года назад +2

    Can you update the link for the servo? Thank you

  • @filclintruiz7807
    @filclintruiz7807 Год назад

    may I ask which code do I use for this project?

  • @mohammedfaiz_
    @mohammedfaiz_ 6 лет назад +1

    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

  • @DavidJushpeMOROSOF
    @DavidJushpeMOROSOF 6 лет назад

    Hi, how to add an delay Before the start of the servo motor?

  • @ricsiez
    @ricsiez 6 лет назад

    I have a metal trash can. 1,6 kg servo is enough?

  • @trashplayer6996
    @trashplayer6996 4 года назад

    How much torque is on that servo?

  • @kaedeharakazuha6604
    @kaedeharakazuha6604 Год назад

    OMG you guys gotta specify what typa wire yall use to connect those components i'm tired of searching ONE video that does that

  • @reybryce423
    @reybryce423 6 лет назад +2

    can we use arduino uno instead of nano?

    • @shubhamkumarjena6167
      @shubhamkumarjena6167 6 лет назад

      coshie pamittan yes,u can use any board

    • @cosmos269
      @cosmos269 5 лет назад

      Yep you can but it takes more space and power that's it

  • @philipandrewhipolito9582
    @philipandrewhipolito9582 2 года назад

    can i see the block diagram?

  • @NROCKX1
    @NROCKX1 6 лет назад

    Use the force!

  • @dory-yaaah5709
    @dory-yaaah5709 4 года назад

    how can i delay the opening of the lid?

  • @vaishalipatil1687
    @vaishalipatil1687 6 лет назад

    please tell the apparatus used in it

  • @marziyeshavani3943
    @marziyeshavani3943 4 года назад

    Very very good .
    Thanks

  • @Nivelcire
    @Nivelcire Год назад

    Parts list? Link to buy?

  • @mariocontreras82
    @mariocontreras82 5 лет назад

    Great job! just one question; the 100 ohms resistor which pin of the mostfet goes?

  • @yossishi221
    @yossishi221 5 лет назад

    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

  • @nailxx2
    @nailxx2 6 лет назад

    Well done!

  • @hizonopusdie
    @hizonopusdie 5 лет назад

    Which is better in creating this smart dust bin, Arduino UNO or Nano?

    • @usualsuspect9496
      @usualsuspect9496 5 лет назад

      it's going to give you the same results

    • @yonutz333
      @yonutz333 11 месяцев назад +1

      Both are ok, it's mostly a size difference between the 2

  • @muncom088
    @muncom088 3 года назад

    really good!!

  • @haisex0961
    @haisex0961 2 года назад

    bro can i ask question?

  • @ramajiothichitta1374
    @ramajiothichitta1374 6 лет назад

    Bro when I run the coding its showing that 'low power' is not declared please help me.

    • @IvanWang-ei8zy
      @IvanWang-ei8zy 5 лет назад

      Maybe you don't have the LowPower library, u can download that in github

  • @GiuseppeDeLilla
    @GiuseppeDeLilla 6 лет назад

    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

    • @EFO-FA
      @EFO-FA 6 лет назад +1

      digital output 4 is high "true" to feed the ultrasonic VCC 5v

  • @nandodo4328
    @nandodo4328 6 лет назад

    may i buy it?

  • @annacherish5734
    @annacherish5734 3 года назад

    Amazing

  • @electronic7979
    @electronic7979 6 лет назад

    Nice project

  • @ubaidqadri2734
    @ubaidqadri2734 3 года назад

    Please give code

  • @SurajSingh-ev4zk
    @SurajSingh-ev4zk 2 года назад

    Nice

  • @thegames9568
    @thegames9568 5 лет назад

    there are video materials from alexgyver

  • @sabiannenggalasunito6944
    @sabiannenggalasunito6944 4 года назад

    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

  • @Username_K
    @Username_K 6 лет назад +1

    Ведро из фикспрайса

  • @vladmirzhuikov935
    @vladmirzhuikov935 6 лет назад +4

    Скоммуниздил у ALEXGYVER show

    • @wileyfoxyx
      @wileyfoxyx 6 лет назад

      Teagamer 228 неа. Этот канал тоже его

  • @VRtechman
    @VRtechman 4 года назад

    All it needs now is 2 UV light bulbs! 🤨

  • @LETHALCAMARO44
    @LETHALCAMARO44 3 года назад

    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;
    }

    • @temmyco4587
      @temmyco4587 Год назад

      A garbage can will probably need more than servo motors to move

  • @pintokitkat
    @pintokitkat 6 лет назад

    Good tutorial, but ditch the music. It just gets annoying

  • @3participate573
    @3participate573 2 года назад

    Isme paise kitne lage

  • @anantsoni6335
    @anantsoni6335 6 лет назад

    Please help....

  • @sabiannenggalasunito6944
    @sabiannenggalasunito6944 4 года назад

    wednesday ok

  • @papaperart3206
    @papaperart3206 6 лет назад

    Nice diy 😃
    (see our first video 😉)

  • @vladimirlee5928
    @vladimirlee5928 4 года назад

    Plagiat!!!

  • @didedoshka
    @didedoshka 5 лет назад

    *_Amazing_*