Pith - arduino_bowel_gauge
arduino_bowel_gauge/arduino_bowel_gauge.ino [0.9 kb]
Modified: 23:32:27 55 026 (13 May 026)
17 Days Ago
// Bowel Gauge
// vgmlr
#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
}
Updates
Shim - Android 70.026.1
Wedge - Linux 68.026.1
Wedge - Android 68.026.1
Taper - Linux 64.026.1
Ayh Extension - Chrome 63.026.1
Dev
TVShow (227) 'CSA'
TVShow (228) 'APT'
TVProgram (83) 'BXT'
Miter Update(s)
Shim (Dictation)

Menu
Calendar
Project Tin (024/029)
Miter
RSS Feed
User Avatar
@vgmlr
=SUM(parts)