Instead of using SerialWrite() you can use elm_write("01C1\r") or SerialPrint("01C1\r"), you have to end your string by \r for the ELM to "execute" the string. Also you have to read the serial port after each write to check the result
![Smile](/forum/images/smilies/smile.gif)
A lot of PIDs return "encoded" values like RPM which is multiplied by 4, I used public knowledge found in wikipedia to know what to do for each PIDs
OBD-II PIDs - Wikipedia, the free encyclopedia
EDIT: I am using a Freeduino, my code takes about 12K for the moment.