Arduino Bowel Gauge


Arduino Uno
Aluminum or Copper Strips
1K Ohm 1/4W Resistor
100K Ohm 1/4W Resistor
0.1uf Capacitor
LCD Display [Optional]
10K Potentiometer
10 Ohm 1/4W Resistor


  1. // Bowel Gauge
  2. // pkvi
  3. #include "LiquidCrystal.h"
  4. LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
  5. int sensorstart = 0; // Intial reading
  6. void setup()
  7. {
  8. sensorstart = analogRead(A0); // Store initial reading
  9. lcd.begin(16, 2);
  10. }
  11. void loop()
  12. {
  13. int sensorlive = analogRead(A0); // Live reading
  14. int dif = (sensorlive - sensorstart); // Subtract start reading
  15. float difsol = dif * 0.191; // Variance to fluid ounces per 40 oz measure
  16. float difoz = difsol * 1.0425; // Convert fluid to solid ounces
  17. if (difoz < 0){
  18. lcd.setCursor(0, 0);
  19. lcd.print("0.00"); // Zero fluctuation
  20. } else {
  21. lcd.setCursor(0, 0);
  22. lcd.print(difoz); // Print ounces
  23. }
  24. lcd.setCursor(6, 0);
  25. lcd.print("oz");
  26. lcd.setCursor(11, 0);
  27. lcd.print("Bowel");
  28. lcd.setCursor(0, 1);
  29. lcd.print(millis()/1000); // Seconds
  30. lcd.setCursor(6, 1); lcd.print("sec");
  31. lcd.setCursor(11, 1); lcd.print("Gauge");
  32. delay(1000); // per second
  33. }

Menu
Index
Engineering
Entertainment
Literature
Miscellaneous
Contact
Search
tiktok.com/@pkvi.xyz
Why Ayh?
Miter
Miter
@pkvi
"...may not meet professional standards."
2,364 miters
123 tenons
Subscribe
0.00374