I've found out what the problem was. I used my laptop to power the Arduino (through USB) and I didn't have an extra groundwire from the arduino to the car. That caused false positive pulses. Once I'd changed to power from the car the problem disappeared.
|