Speed Sensor with the LM393 Sensors, Arduino Nano and Seeed CAN-BUS Shield V2.0.
Estimate the car's RPM at the axle.
Reads the LM393 speedsensor and calculates the RPM value.
The calculated the RPM value is sent in byte 0 & byte 1 of the CAN Bus frame.
The maximum rpm that can be measured is 1800 1/min.
Therfore we need 2 bytes in the CAN frames' payload.
The can frame is structured as follows:
Byte 0 - 1: RPM VALUE
The rpm value in 1/min are displayed and sent in hex format.
Example:
Set data from ID: 0x100
0 A3
-----------------------------
Set data from ID: 0x100
0 6
-----------------------------