fastback86
Member
I've been trying to modify code for a circuit I found on a Russian website to fit my needs and I need some help. The circuit is a 3 digit speedometer with a 6 digit odometer/5 digit resettable trip counter. As designed the circuit uses a speed sensor that produces 6 pulses per meter and advances the counter accordingly. The main odometer has 6 digits "000000" with a 1 km resolution and the resettable trip counter has 5 digits "000.00" with .01 km resolution. I've already figured out to move the decimal point in the trip counter to "0000.0" but my speed sensor is different. My speed sensor produces 8000 pulses per mile. I'm not sure what part of the code counts the sensor pulses and increments the counters accordingly.
Here's the circuit:
View attachment 66308
The speed sensor is the rectangle on the left side with the numbers 345.3843 inside. Per the diagram it is connected to pin 11 of the microcontroller but the text indicates there's an error and pins 11 and 21 should be swapped.
Here's the circuit:
View attachment 66308
The speed sensor is the rectangle on the left side with the numbers 345.3843 inside. Per the diagram it is connected to pin 11 of the microcontroller but the text indicates there's an error and pins 11 and 21 should be swapped.