Automatic Toilet Flusher project in action

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 มี.ค. 2014
  • Here is a simple, practical micro-controller project using an arduino. It uses a distance sensor to check if someone is using the toilet, after it is sure the person has left it flushes the toilet for you. Simple as that.
    Finally found the source code and uploaded it to Github:
    github.com/adameska/ToiletFlu...
    Parts Used:
    Arduino Uno - amzn.to/36C5mxh
    (I'm using a start kit that came with the bread board and wires)
    Distance sensor - amzn.to/3qn7Dno
    Motor - amzn.to/3uhb6oA
    DC Connectors - amzn.to/37CLVoC
    9v Connectors - amzn.to/3qoYN8n

ความคิดเห็น • 60

  • @adamloepker8057
    @adamloepker8057 2 ปีที่แล้ว

    Kept feeling like you were about to pee..

  • @davidhettinger3164
    @davidhettinger3164  8 ปีที่แล้ว +2

    Hey guys, sorry I haven't responded to any of you, i will work on creating a post this weekend with links to where you can purchase all the sensors for this, the wiring diagram and upload the source code!

  • @GarreTTTurncoaT
    @GarreTTTurncoaT 7 หลายเดือนก่อน

    I know this was 9 years ago, but the sensor and delay settings are perfect.. anyone know how to swap in a servo for the flush ?

  • @monstar2bar
    @monstar2bar 8 ปีที่แล้ว

    Hey David, may I have a copy of your source code, also do you have a diagram for the sensor and pinout?

  • @UNR4TEDGUNZ
    @UNR4TEDGUNZ 5 ปีที่แล้ว

    Pretty cool

  • @davutgolpinar2770
    @davutgolpinar2770 3 ปีที่แล้ว

    Hello, thanks for the video, I adapted this project for the automatic cat toilet. How should I write a code under the code? I want the engine to reverse after it works normally. Can you help me?

  • @gorangsharma5133
    @gorangsharma5133 4 ปีที่แล้ว +1

    how can we make it more reliable?

  • @BBsheepy
    @BBsheepy 3 ปีที่แล้ว

    Hello this is brilliant can you share an image of the base so I can set it up exactly the way you did here? Thanks so much

  • @ambrosekinoti2
    @ambrosekinoti2 5 ปีที่แล้ว

    Can please have this projects documentation..am trying to figure the same but its not running

  • @soninugroho1269
    @soninugroho1269 3 ปีที่แล้ว

    Great work, may I have a copy of the wiring diagram, thank you

  • @sahanperera8593
    @sahanperera8593 4 ปีที่แล้ว +1

    Brother can i have circuit diagram
    Its super
    But how to make this

  • @jasonpark99
    @jasonpark99 3 ปีที่แล้ว +1

    Can you show the wiring scheme on this ?

  • @jidepeteromoya7479
    @jidepeteromoya7479 2 หลายเดือนก่อน

    Hello pls I have got few questions, can you help out

  • @normroy326
    @normroy326 4 ปีที่แล้ว +1

    I,m trying to modify your code to flush 5 times if cacao and once if pipi. I'm having problems navigating through the loops to get the 5 flushes. I get into a continuous loop on most of my tires. Any clues?

    • @namedpipes
      @namedpipes 4 ปีที่แล้ว +1

      Five times? A change in diet might be in order.
      int flush = 0;
      void loop(void)
      {
      if(flush > 0) {
      callForFlush(); // where you actuate the servo, then wait a moment
      flush--;
      }
      if(time2flush && cacao)
      flush = 5;
      else
      flush = 1;
      Or something along those lines.

  • @jimgitonga2180
    @jimgitonga2180 6 ปีที่แล้ว +2

    here is the code guys
    #include //This line is needed to use the servo library
    Servo myservo; //This line create a servo named "myservo"
    int buffer; //two more integer variables we will use as buffers
    const int pingPin = 3, led = 4; //This is an variable we are setting to 3 and 4 to make it easier to read/write from those pins
    void setup() {
    myservo.attach(2); //set the servo to pin 2
    pinMode(led, OUTPUT); //set the led pin as an output
    Serial.begin(9600); // initialize serial communication, this will let us read/write data back and forth (this is useful for debugging)
    }
    void loop()
    {
    long duration, inches; // establish variables for duration of the ping, and the distance result in inches
    // The PING))) is triggered by a HIGH pulse of 2 or more microseconds.
    pinMode(pingPin, OUTPUT);
    digitalWrite(pingPin, LOW);
    delayMicroseconds(2);
    digitalWrite(pingPin, HIGH);
    delayMicroseconds(5);
    digitalWrite(pingPin, LOW);
    pinMode(pingPin, INPUT); //Set the pingPin to an input to read from
    inches = pulseIn(pingPin, HIGH)/ 74 / 2; //read from the pin, divide by 74 to account for the speed of sound, then by 2 to account for the return trip)
    if (inches

    • @aks2530
      @aks2530 3 ปีที่แล้ว

      Thanks a lot mate...

    • @ramankedar5985
      @ramankedar5985 2 ปีที่แล้ว

      do you have circuit diagram of this?

  • @daveho7086
    @daveho7086 2 ปีที่แล้ว

    How long the battery can last for this setup?

  • @fiksvuagrian9154
    @fiksvuagrian9154 3 ปีที่แล้ว

    Can I get your full report and source code for it please

  • @malborohero914
    @malborohero914 6 ปีที่แล้ว

    Where can i get your code? Please tell me i need it for my project

  • @johntd4554
    @johntd4554 9 ปีที่แล้ว

    really nice build. Can I get the source code? Thanks

  • @stuf2390
    @stuf2390 9 ปีที่แล้ว

    Brilliant! My 7yr old always forgeting to flush, could i get the source code please?

  • @gebumosha1929
    @gebumosha1929 5 ปีที่แล้ว

    it so nice please Can please have this projects documentation

  • @jasonpark99
    @jasonpark99 3 ปีที่แล้ว

    Is there a wiring diagram? Can you share? Thanks!

  • @CrystalPeacockArmy
    @CrystalPeacockArmy 9 ปีที่แล้ว

    awesome! Could i get the source code?

  • @davidhettinger3164
    @davidhettinger3164  5 ปีที่แล้ว +1

    Finally found the code and uploaded it to github!

  • @gihandilhara2749
    @gihandilhara2749 3 ปีที่แล้ว

    Mr.can you send me the arduino circuit diagram and code for this?

  • @merifreekiid
    @merifreekiid 2 ปีที่แล้ว

    author simply ignored the request for wiring diagram mentioned in many comments

  • @Its_me.santosh
    @Its_me.santosh 5 ปีที่แล้ว +1

    send me the block diagram of this project plz.....

  • @aldindia
    @aldindia 8 ปีที่แล้ว

    can I have all the details including the codes

  • @fionagao5894
    @fionagao5894 8 ปีที่แล้ว

    can i have the source code ? thanks

  • @danielpakmat9040
    @danielpakmat9040 9 ปีที่แล้ว

    can I have the source code?

  • @sanelevanto5984
    @sanelevanto5984 6 ปีที่แล้ว

    can you please send me the source code

  • @ldh058
    @ldh058 10 ปีที่แล้ว

    I want one, sign me up!

  • @ramankedar5985
    @ramankedar5985 2 ปีที่แล้ว +1

    does anyone have its circuit diagram? plz share :)

    • @davidhettinger3164
      @davidhettinger3164  2 ปีที่แล้ว +2

      It's been over 8 years since i made this. I'll try and dig it up. I've updated my links to the products since some have gone out of stock. If someone has made this and made a wiring diagram let me know and i can upload it.

  • @cobraAH1
    @cobraAH1 5 ปีที่แล้ว

    sir please make a hardware structured unit i will order

  • @MikeMarchlik
    @MikeMarchlik 8 ปีที่แล้ว +2

    It will work for like 15 flushes.

  • @irabot
    @irabot 9 ปีที่แล้ว

    hey buddy
    can i have the code?

  • @driverdriver1564
    @driverdriver1564 8 ปีที่แล้ว

    source code please

  • @manojnalanda7528
    @manojnalanda7528 5 ปีที่แล้ว

    bro will you share the code with me

  • @neetapatel9032
    @neetapatel9032 6 ปีที่แล้ว

    bro code please

  • @harryvaughansr.2556
    @harryvaughansr.2556 8 ปีที่แล้ว

    Hi David Liked you video. Can you send me your code?
    Thank You

  • @mulunehdesalewalemayehu1663
    @mulunehdesalewalemayehu1663 7 ปีที่แล้ว

    sir send full diagram ans code

  • @Azzidum
    @Azzidum 8 ปีที่แล้ว

    plz mail me you source code - very nice video

  • @zaimzulkefli8063
    @zaimzulkefli8063 9 ปีที่แล้ว

    can i have the source code?

  • @kalmanz1999
    @kalmanz1999 5 ปีที่แล้ว

    can I have the source code?