Hey everyone,
I received my Macchina just a few days ago and have been excited to put some of my ideas into practice.
I’ve actually not really done much microprocessor stuff before (I’m a web dev - feel free to judge) so bare with me if I ask any dumb questions
I’ve successfully managed to turn on and off LEDs on the board thanks to modifying example code, which was a fun 15 minutes or so, but I am struggling to make the leap from that to actually using input from my car to do things.
What I would really like to do as a first project is read the RPM from my car, and light up LEDs on the Macchina based on that.
I have a Hyundai Excel '97 model, and based on the pinout of the OBD connector (pins 1,2,4,5,8,9,10,11 are populated) + lots of googling I’ve figured out that the protocol is likely J1850 PWM. Picture here; http://ibb.co/gSCMmR
With some googling I’ve managed to find some code;
https://www.macchina.cc/guide/m2/automotive-interfaces/j1850-pwm
and this too
So with that I (think) I can turn on the J1850 chip and set it to PWM mode. But that’s where I get stuck - how do I read a specific code/message on the bus?
I’ve found this library, but it’s a bit advanced for me - does anyone have any examples of how I might use it? (or if it’s even a good idea to use it?)
Thanks for any help or insight you can give! When I get good at this I’m hoping to do a Back To The Future style time travel dashboard with lots of seven segment displays