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
Kept feeling like you were about to pee..
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!
WAITING FOR IT! ;)
how can i get the circuit diagram can u help pls...
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 ?
Hey David, may I have a copy of your source code, also do you have a diagram for the sensor and pinout?
Pretty cool
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?
how can we make it more reliable?
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
Can please have this projects documentation..am trying to figure the same but its not running
Great work, may I have a copy of the wiring diagram, thank you
Brother can i have circuit diagram
Its super
But how to make this
Can you show the wiring scheme on this ?
Hello pls I have got few questions, can you help out
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?
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.
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
Thanks a lot mate...
do you have circuit diagram of this?
How long the battery can last for this setup?
Can I get your full report and source code for it please
Where can i get your code? Please tell me i need it for my project
really nice build. Can I get the source code? Thanks
Brilliant! My 7yr old always forgeting to flush, could i get the source code please?
it so nice please Can please have this projects documentation
Is there a wiring diagram? Can you share? Thanks!
awesome! Could i get the source code?
Finally found the code and uploaded it to github!
what is the link bro
Mr.can you send me the arduino circuit diagram and code for this?
author simply ignored the request for wiring diagram mentioned in many comments
send me the block diagram of this project plz.....
can I have all the details including the codes
can i have the source code ? thanks
can I have the source code?
can you please send me the source code
I want one, sign me up!
does anyone have its circuit diagram? plz share :)
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.
sir please make a hardware structured unit i will order
It will work for like 15 flushes.
hey buddy
can i have the code?
source code please
bro will you share the code with me
bro code please
Hi David Liked you video. Can you send me your code?
Thank You
sir send full diagram ans code
plz mail me you source code - very nice video
can i have the source code?
can I have the source code?