Hello folks,
I am looking for some guidance on building a speedometer cable driver. I would like to make it open source so that anyone who has an older car they are modifying can make it work for their application. I am going to be putting a different transmission in the car so I will lose the speedo cable driver, but this is also beneficial for folks who just want to change their tire size.
My initial thoughts are to use a small controller like a nano. I need to drive a single stepper motor, and pickup signal from a wheel speed sensor.
The car I am doing this to is a 1995 Mercedes E300D. It does have wheel speed sensors for the front wheels. They are magnetic pickups with a tone ring. The car is pre OBD2 so it has no communication. I was planning on tapping one of the wheel speed sensors to get my ground speed input.
I am going to build in gearing for the stepper. Usually a speedometer cable spins about one thousand times per mile, but being a german car it may be one thousand rotations per kilometer. I'll burn that bridge when I get there. Steppers lose a fair amount of torque as they spin faster, and usually only want to spin to about 1000 RPM. At 60 miles per hour, that would be 1000RPM on the stepper, so I was going to make a 2:1 or 3:1 gearing to allow for a complete range of the speedometer.
Since it's an automotive application I want to use a good stepper driver to keep the noise down. I already have some TMC2100s (IIRC) on hand. I have a 3D printer and the design skills to make the enclosure.
I have done minimal coding, but with a little guidance I can probably write the code needed to get the thing I want. I do have a couple of questions.
There is probably a header I can include for stepper control so that I don't have to write that code. Anyone know what it is? Sorry if my terminology is wrong, it's been quite some time since I did any coding.
The wheel speed sensor inevitably kicks out a series of high and low pulses. I'm not sure whether they are 5V or 12V, I'll hook up my osciliscope to it and spin the wheel to see what it reads. What kind of signal processing do I need to do so it doesn't kill the arduino when I wire it up? Would this be an analogue or digital input?
Any pointers or ideas would be greatly appreciated. I am essentially a novice when it comes to the electronics side of this stuff. Thanks for reading!