I have the following problem. Before I explain the problem this is the project summary.
I have a Motorbike Computer (Temperature, Revs, and speed Vapor Speedometer Tachometer Kits | Vapor Tachometer | TrailTech). This project relates to Speed Component only.
The motorbike computer uses a reed attached to the wheel that pulses the computer and gives you a speed. The computer has a setting and formula depending on the size of your wheel. Easy.
Here is the thing. I want to use this on my Jet Ski. Last time I looked no wheels on a jetski
My approach is using a Nano with GPS module, a MOSFET to "operate a switch", and a code - This is my question.
I kind of did a half ass'ed job using seriously basic code. Grabbed the speed from GPS and then toggled a digital pin driving a MOSFET using Delays. Very inaccurate as Serial comms makes things very inconsistent with interupts and the system slows down.
This is my question
What other approaches would one take? Variable Frequency square waves? Is there a library?
Once I get a clear idea I want to then learn how to do this so this question is for "Project Guidance Only". I can then go hunting - the fun part!
Thanks!
PS If your keen to help me then read the last page of this document. You will see you need to think about some forumulas. https://cdn1.polaris.com/globalassets/trail-tech/2020/home/pdf/010-elv-195.pdf?v=834b67d1