I am making an electric speedometer driver similar to something you can find for GM vehicles. I'm swapping the engine and gearbox of my car and the new gearbox doesn't use a Speedo cable. I'd like to use a hall effect sensor near the wheels or half shaft, read the value and then output a pwm signal to a brushless motor controller to run a motor attached to the back of the speedometer.
By doing this I keep my odometer and speedometer after swapping the engine, mostly to avoid tampering with the factory odometer reading, but also to use a non gps speedometer as GPS signal in the area i live can easily be in blocked or interfered.
I've got a bit of coding experience with python but none in C++ so I can read the code but haven't gotten to the point of writing my own. Any pointers and advice would be highly appreciated.
For those who are curious, the car is an '87 seat Marbella and I'm swapping to a fiat 500 1.4 16v engine.
I suggest you check your local and federal regulations before proceeding. What you want to do makes perfect sense from a practical standpoint, but it could potentially be considered tampering with the odometer, which may be illegal in many jurisdictions. Ensure you fully understand the legal implications before making any modifications.