Your barista scales are controlled by the TI MSP430G2553 Microcontroller
which is programmed in C using Energia. Find below the code used in your new
scales in case you wish to modify the scales to your personal needs.
#include <LiquidCrystal.h>
//initalizing the variables
int s1 = A7;
int u;
int y;
int x=0;
int zval=732;
int z1,e1;
int eval=772;
int z=0;
int e=80;
float flow;
int rt=0;
const int start=7;
unsigned long stime;
unsigned long time;
unsigned long etime;
//initializing the liquid crystal
LiquidCrystal lcd(8,9,10,11,12,13);
void setup() {
pinMode(start, INPUT);
lcd.begin(16, 2);
lcd.clear();
}
void loop() {
lcd.clear();
lcd.setCursor(4,0);
lcd.print("Expresso");
lcd.setCursor(3,1);
lcd.print("Place cup");
//if start button is pressed
if(digitalRead(start)==HIGH)
{
while(rt==0)
{
etime=millis()/1000;
rt=1;
}
makezero();
Programming and Code