
New design Touchless Flush ultrasound IFÖ IFO toilett button motion detection
thingiverse
This uses the PIR arduino sensor , this sensor works better than all previous versions of touchless flush (because of humidity when showering the toilet starts flushin because of moisture in air with IR sensor or ultrasound sensors). Programing code for arduino can be found in github: https://github.com/spaceengineer/IF-touchless-flush-toilet/commit/e9aeaf56b92c0bc05f8aed30f15879b50bc07516 #include <Servo.h> Servo myservo; int trig = 7; int echo = 8; int servo = 9; bool presence = false; int maxdistance = 10; long duration, distance; long a[3]; void setup() { myservo.attach(servo); pinMode(trig, OUTPUT); pinMode(echo, INPUT); myservo.write(180); // servo position 180 degree delay(1000); myservo.detach(); } void measure() { digitalWrite(trig, LOW); delayMicroseconds(6); digitalWrite(trig, HIGH); delayMicroseconds(15); digitalWrite(trig, LOW); pinMode(echo, INPUT); duration = pulseIn(echo, HIGH); distance = (duration / 2) / 29.1; } void loop() { for (int i = 0; i <= 2; i++) { measure(); a[i] = distance; delay(50); } distance = (a[0] + a[1] + a[2]) / 3; if ( distance < maxdistance ) // change this value to increase or decrease detection range. { presence = true; } if ( distance > maxdistance && presence == true) { myservo.attach(servo); delay(1); myservo.write(90); //servo position 90 degree delay(2000); myservo.write(180); //servo position 180 degree delay(1000); presence = false; myservo.detach(); } } https://www.digikey.se/en/products/detail/adafruit-industries-llc/4871/13922055?utm_adgroup=Evaluation%20Boards%20-%20Sensors&utm_source=google&utm_medium=cpc&utm_campaign=Shopping_Product_Development%20Boards%2C%20Kits%2C%20Programmers&utm_term=&productid=13922055&gclid=Cj0KCQiAuP-OBhDqARIsAD4XHpdmkaIuhuLPwbngB746HBSWPE89KeEq4JmKJb3ntb79XS2qdwr-mx4aAiJYEALw_wcB
With this file you will be able to print New design Touchless Flush ultrasound IFÖ IFO toilett button motion detection with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on New design Touchless Flush ultrasound IFÖ IFO toilett button motion detection.