Code: Select all
obd.read(PID_RPM, rpmValue)
Yesterday when I was testing I wouldn't get anything to return. This morning I tried again and obd.read() would return RPM and throttle position when I didn't change any code. Then I tried seeing what was being returned with some print statements and obd.read() was still returning what was expected. Eventually obd.read() started returning 0's. I tried running the arduino a few times and tried different ways of connecting the obd2 adapter (plug in the adapter first, then turn on and start the bike; turn the bike on, plug in the adapter, then start the bike; etc.). I couldn't get obd.read() to return 1's again.
Does this sound like something that happens a lot? Is there anything I can try or look at to get my motorcycle to consistently return RPM and throttle position? Could it be an issue with my obd2 connection on the motorcycle? I'm a little lost with this problem.
Thanks