Sketch to use an Arduino Mega, Spark-Fun Can Bus shield to read the CAN BUS output from an Emerald K6 ECU.
I´m building an MGB GT V8 and I wanted to keep the look of my original Smiths Speedometer and Tachometer but integrate them with the new ECU.
So far it has the following features:
Odometer
Trip
Speed
Oil Temperature
Oil Pressure
Water Temperature
Outside Temperature
Inlet Temperature
ECU Voltage
AFR
RPM
MAP Pressure
Barometer
Throttle Position
Ignition Dwell
Ignition Advance
Injector Duration
Selected ECU MAP
0-60 Timer
CAN BUS failure alert
Service Reminder
I am working on a new version that has a second OLED where the old trip counter used to be. This will be used for alarm status and a shift light.
The old Speedometer was mechanically driven. The Smiths tachometers use the same case but a moving coil meter, I fitted the face from my speedometer to a spare Tachometer and drive the moving coil meter through the PWM outputs.
Its not 100% finished and its probably a bit clumsy in places.
A couple of links - the first video is the earlier version which I used a pot to simulate changing CAN bus values. The second You Tube link is using live data from an emerald ECU with simulated crank and speed inputs.
https://www.youtube.com/watch?v=-dAtya3z_hk