Forum >Retrieved engine RPM not correct
Retrieved engine RPM not correct

Hi Stanley, I bought the adapter some weeks ago but still have problems getting it work.
The connection seems to go up as the setup() code runs through and my serial display shows the information.
My sketch should display RPM but I get a number "-112628" and I don't know what it is... using throttle doesn't change that number. Also, if I power on arduino (UNO) externally without connecting the adapter to my car usually I'm stuck at "OBD connecting..." (as should be) but sometims it goes into the loop() and display the same number :o
Find my sketch attached
Please help! ;D
Thank you!
The connection seems to go up as the setup() code runs through and my serial display shows the information.
My sketch should display RPM but I get a number "-112628" and I don't know what it is... using throttle doesn't change that number. Also, if I power on arduino (UNO) externally without connecting the adapter to my car usually I'm stuck at "OBD connecting..." (as should be) but sometims it goes into the loop() and display the same number :o
Find my sketch attached
Please help! ;D
Thank you!
2013-08-09 08:51:59 Ok, tried my first sketch, deleted and redownloaded the latest library and all is fine now :D
Problem closed! ;)
mafbass
Problem closed! ;)

2013-08-09 06:40:45 Tried different baudrates but always stuck at connection... suggestions?
mafbass

2013-08-09 02:42:08 Checkin with Android on Torque and BT adapter I found (with auto detect) the interface uses ISO 9141-2. After the protocol the interface says 5 baud. I tried to force this rate
// #define OBD_SERIAL_BAUDRATE 38400 //original one
#define OBD_SERIAL_BAUDRATE 5000
Maybe I should set 4800 as it is a standard?
Seraching on wiki I found this protocol uses 10.4 kBaud... think I should also tr 10400.
mafbass
// #define OBD_SERIAL_BAUDRATE 38400 //original one
#define OBD_SERIAL_BAUDRATE 5000
Maybe I should set 4800 as it is a standard?
Seraching on wiki I found this protocol uses 10.4 kBaud... think I should also tr 10400.

2013-08-08 05:30:40 The car is a '07 Lotus Exige. Using a BT OBD adapter and Torque on android I can correctly get a lot of stuff so I think there's no problem with the ECU interface. Can u suggest me a simple sketch to test your adapter if mine isn't good? Thank you!
mafbass
