'Blog entry: www.cantanko.co...
This is a quick video of a Mazda RX-8 instrument cluster being driven via CAN from an Arduino Uno fitted with a SparkFun (purchased from SKPang) CAN shield. As much as people hate the Arduino, it's incredibly useful with which to do stuff like this - everything you see was worked out in a couple of evenings, probably 8 man-hours including rigging the hardware, writing the code and fuzzing the bus.
As I plan to be messing with the engine of one of these cars and removing the factory PCM, I needed to figure out what messages needed to be sent to keep both the dash and the other ECUs on the vehicle happy. Seeing if I could drive the dash was a very cheap way (£5 from eBay) to see if I could talk to the instruments happily enough.
The appropriate PIDs were discovered by fuzzing "usual suspect" PIDs and most things were located easily enough. The traction control / stability control, power steering and cruise are proving to be a little more elusive, but once they're found I'll post full details of the packets used to address them.
I'll update this description when I've finished noodling around with it and have the data in some kind of intelligible format. Code (such as it is) will be released also.
Principle components used:
Arduino uno: arduino.cc/en/M...
SparkFun / SKPang CANbus shield: www.sparkfun.c...
Cory Fowler's version of the Arduino CAN library: github.com/cor...
Music by Kevin MacLeod: incompetech.com...
5 сен 2024