Arduino Splash Guard

files.catbox.moe/6hxfgg.mp4
tiktok.com/@vgmllr/video/7548044394939551006



  1. // sink splash riser
  2. // vgmlr
  3. #include "VarSpeedServo.h"
  4. VarSpeedServo lservo;
  5. VarSpeedServo rservo;
  6. const int left = 5;
  7. const int right = 6;
  8. const int sensor = A0;
  9. const int lup = 8;
  10. const int ldown = 82;
  11. const int rup = 7;
  12. const int rdown = 77;
  13. const int sup = 10;
  14. int water;
  15. int more;
  16. void setup() {
  17. lservo.attach(left);
  18. lservo.write(ldown,150,true);
  19. lservo.detach();
  20. rservo.attach(right);
  21. rservo.write(rdown,150,true);
  22. rservo.detach();
  23. }
  24. void loop() {
  25. more = 1;
  26. water = analogRead(sensor);
  27. if (water >= sup) {
  28. lservo.attach(left);
  29. rservo.attach(right);
  30. delay(1);
  31. lservo.write(lup,20,false);
  32. rservo.write(rup,200,true);
  33. while (more > 0) {
  34. more = 0;
  35. for (int x = 0; x < 100; x++) {
  36. water = analogRead(sensor);
  37. more = more + water;
  38. }
  39. more = more / 100;
  40. }
  41. lservo.write(ldown,100,false);
  42. rservo.write(rdown,100,true);
  43. delay(10);
  44. lservo.detach();
  45. rservo.detach();
  46. }
  47. }
Update(s)-
1. ptmr | 343025 [Changelog]
10:22 343 025
Dev-
1. TVShow (227) 'CSA'
2. Wedge (Miter) 1.0.0
3. TVShow (228) 'APT'
4. TVProgram (83) 'BXT'
11:51 339 025

Menu
Index
Engineering
Entertainment
Literature
Miscellaneous
Contact
Search
tiktok.com/@vgmlr
youtube.com/@vgmlr
Miter
@vgmlr
=SUM(parts)
86 miters
131 tenons
Subscribe
0.00074