Arduino Bowel Gauge
In our current climate of caloric disseminators, few observe before and after exhumation of waste. To clarify, using a resistance sensor and an Arduino, we have hacked your bowels.


Ingredients
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



Notations
1. The resistance sensor observed in the following multimedia is a first version testing sensor. Affixing it to a constantly drenched porcelain surface proved difficult and was temporarily remedied with Gorilla Tape.
2. A brass valve was added to the bowl fill line extending from the fill valve as to regulate the water level with in the bowl. Typical specs fill water to crest the rear siphon allowing waste to displace water in to the drainage line as to prevent over flow.

Sketch
The following is a non-smoothing sketch as our current coding for a smoothing sketch is currently being modified and tested in addition to a low pass filter PWM alternative.

Resistance was measured between 60 and 100 fluid ounces and this variance was divided by the 40 fluid ounces, then multiplied by 1.0425 to obtain weight ounces.

// Bowel Gauge
// Vije Miller
#include "LiquidCrystal.h"
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

int sensorstart = 0; // Intial reading

void setup()
{
sensorstart = analogRead(A0); // Store initial reading
lcd.begin(16, 2);
}

void loop()
{
int sensorlive = analogRead(A0); // Live reading
int dif = (sensorlive - sensorstart); // Subtract start reading
float difsol = dif * 0.191; // Variance to fluid ounces per 40 oz measure
float difoz = difsol * 1.0425; // Convert fluid to solid ounces

if (difoz < 0){
lcd.setCursor(0, 0);
lcd.print("0.00"); // Zero fluctuation
} else {
lcd.setCursor(0, 0);
lcd.print(difoz); // Print ounces
}

lcd.setCursor(6, 0);
lcd.print("oz");
lcd.setCursor(11, 0);
lcd.print("Bowel");

lcd.setCursor(0, 1);
lcd.print(millis()/1000); // Seconds
lcd.setCursor(6, 1); lcd.print("sec");
lcd.setCursor(11, 1); lcd.print("Gauge");

delay(1000); // per second
}

HackADay "Skull and Wrenches" logo used with(out) permission by HackADay.com

Archive
https://hackaday.io/project/396-arduino-bowel-gauge
https://hackaday.com/2014/03/18/we-asked-for-it-an-arduino-bowel-gauge/
https://www.element14.com/community/community/arduino/arduino-projects/blog/2014/06/06/10-awesome-arduino-projects

17:7:34 362-013