You are on page 1of 1

{

Serial.print("#S|SENDK|[");

Serial.print(itoa((pId), buffer, 10));

Serial.print("&");

sec=millis()/1000;

Serial.print(itoa(sec, buffer, 10));

Serial.print(" {TAB} ");

delay(100);

sensorValue = analogRead(A0);

s1=((sensorValue*5)/1023)*3;

SOC=100*(s1-5.36)/7.84;

sensorValue = analogRead(A1);

//Reads Current

temp=sensorValue*26/10230;

//AB=SOC- ((voltage1/10)/40)*100;

s=SOC-((temp*10)/3.9);

Serial.print(s);

Serial.print(" {TAB} ");

delay(100);

Serial.print(s1);

Serial.print(" {TAB} ");

delay(100);

Serial.print(" {DOWN} ");

Serial.print(" {LEFT} ");

Serial.print(" {LEFT} ");

Serial.print(" {LEFT} ");

Serial.println("]#");

49

You might also like