View Full Version : Simulating the Tach signal
DrJeff
10-10-2017, 11:27 PM
As part of the TesLorean project (http://dmctalk.org/showthread.php?13316-The-TesLorean) I'm keeping the stock gauge cluster, but attempting to "re-program" the gauges to present useful information from the Tesla drive unit, cooling system, traction battery, etc. The cluster will be driven by a microcontroller.
The Tach gauge is proving tricky. It takes GND, 12v, and a signal that comes from the coil and runs to the RPM relay and the Idle Speed relay. I've been experimenting with different signals but no sure success just yet. What I'm looking for is a waveform or the electrical characteristics of the tach signal.
Thanks
Jeff
PS. Just in case you're wondering, the plan is to use the Tach to display the "Miles of Range Remaining" The TesLorean has a 21kWh battery and should get about a 70 mile range. Miles Remaining is guestimated from the battery state of charge, the drive unit power consumption, and recent driving habits (miles/kWh).
FABombjoy
10-11-2017, 12:14 AM
I'm using a relay with the armature removed to drive my tach. 12v on once side of the relay coil and the tach (switched gnd) output of Megasquirt on the other.
Provided that you have any sort of 5v/12v/24v/GND pulsed output a similar circuit should be usable. You just need the inductive kickback from a coil field collapse to trigger a tach pulse. Depending on the driving circuit, a blocking diode might be needed as well to keep the 100v+ pulse from entering your controller, assuming it isn't designed to handle such a thing.
Bitsyncmaster
10-11-2017, 05:45 AM
The RPM relay requires greater than a 12 volt pulse. As stated by FABombjoy, that inductive spike is needed to get higher than the cars 12 volts. The stock idle ECU is the same (greater than 12 volt threshold). Now not sure if the tach works the same since I have not tested that threshold.
I was thinking of building a test (simulator) circuit. I think a square wave greater than 20 volts would work or create that inductive spike like FABombjoy suggested.
You would need a voltage of 24 volts (or more) and just use a NPN transistor with a pullup resistor on the collector going to that 24 volts. Then drive the base through a resistor with a TTL level (from your micro). The emitter is tied to ground.
DrJeff
10-11-2017, 10:49 AM
So the 12v relay with the armature removed is acting like a coil, which when denied access to GND will create an inductive spike. Here's a draft diagram of how I'm interpreting this...
53939
I'm not sure about the resistor Ohms, probably need to experiment to get it into the right range for the Tach.
Bitsyncmaster
10-11-2017, 10:58 AM
So the 12v relay with the armature removed is acting like a coil, which when denied access to GND will create an inductive spike. Here's a draft diagram of how I'm interpreting this...
53939
I'm not sure about the resistor Ohms, probably need to experiment to get it into the right range for the Tach.
That may work. I would have put 12 volts to the coil and the other side of the coil to the tach input and the driver (transistor or MOSFET).
DrJeff
10-11-2017, 12:22 PM
That may work. I would have put 12 volts to the coil and the other side of the coil to the tach input and the driver (transistor or MOSFET).
This might be a better representation (the Tach gets 12v power and has access to GND, as well as the Tach signal wire), plus your suggestion (if I understood correctly).
53941
If I understand the theory, its the MOSFET closing that causes the inductive current spike in the coil which then runs through the Tach (on the Tach signal line).
Jeff
Bitsyncmaster
10-11-2017, 02:23 PM
This might be a better representation (the Tach gets 12v power and has access to GND, as well as the Tach signal wire), plus your suggestion (if I understood correctly).
53941
If I understand the theory, its the MOSFET closing that causes the inductive current spike in the coil which then runs through the Tach (on the Tach signal line).
Jeff
That looks better. What happens is when current is abruptly stopped (driver turning off), the magnetic field collapses and that induces a voltage in the coil. That voltage can than ring (oscillate until the signal falls to zero volts). That's the main reason I prefer to just use a higher voltage rather than using inductive kick. You would know if it rings by your tach showing double or higher RPM.
You can use a voltage doubler to get 24 volts from 12 volts or a switching type power supply chip (boost converter). Then all you would need is a resistor (the pull up to 24 volts) and your driver.
If you need a suggestion for ICs to get higher voltage I can help.
Powered by vBulletin® Version 4.2.5 Copyright © 2026 vBulletin Solutions Inc. All rights reserved.