Arduino+LCD ELM327 OBD2 Reader V2.00

Re: Arduino+LCD ELM327 OBD2 Reader V2.00

Postby stevedee78 » Sun Feb 04, 2018 1:03 pm

Hi, how do I calculate the WorkingString (7,9) or (10,12) for my Skoda Fabia 5J?


//Check which OBD Command was sent and calculate VALUE
//Calculate RPM I.E Returned bytes wil be 41 0C 1B E0
//RPM
if (SentMessage=="01 0C")
{
WorkingString = BuildINString.substring(7,9);
A = strtoul(WorkingString.c_str(),NULL,16);
WorkingString = BuildINString.substring(10,12);
B = strtoul(WorkingString.c_str(),NULL,16);

DisplayValue = ((A * 256)+B)/4;
DisplayString = String(DisplayValue) + " rpm ";
lcd.setCursor(0, 1);
stevedee78
 
Posts: 1
Joined: Fri Feb 02, 2018 11:49 am

Previous

Return to OBD2 & CAN-BUS Projects

Who is online

Users browsing this forum: No registered users and 0 guests

cron