I am just forming the ideas for a small project, so appreciate any input you can give me.
The background - My motorcycle has a bit of an issue. It was imported into this country and as a part of the compliance process, they had to change out the speedo for one that shows the speed in kilometers instead of miles. The original speedo has a small reed switch in it that would detect the revolutions of the speedo mechanism and feed that info back to the computer in the bike. The replacement speedo does not have that reed switch, and trying to retrofit one into the unit would be more trouble than it is worth.
My idea - to create a small circuit using a Nano and an accelerometer. It would measure the acceleration, over time and from that work out the speed, and then act the same way the reed switch would, turning on and off at the correct frequency (which I will still need to calculate) to feed the info back to the ECU on the bike.
Is there something that I am overlooking with all this? Am I going about it in a weird way, and is there a better/simpler solution to this?
Any help is appreciated.