CAN ADC data from an Arduino help

A forum for discussing the MegaSquirt related (but non-B&G) board development, assembly, installation, and testing.

Moderators: jsmcortina, muythaibxr

Post Reply
youngfg
Helpful MS/Extra'er
Posts: 48
Joined: Mon Oct 25, 2004 8:13 am
Location: Owensboro, kY

CAN ADC data from an Arduino help

Post by youngfg »

I would like to use an Arduino to send some data to a MS3 via the CAN ADC channels.

I have the CAN hardware working and have been listening on the CAN bus, I see the MS3 sending the request for the CAN ADC data, but I am unsure of what to send back.

Can someone post a worked example of the conversation, like in the back of the MS CAN document? That would be a big help.

Posting example Arduino code to send data the the MS would be great!
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: CAN ADC data from an Arduino help

Post by grom_e30 »

http://www.msextra.com/doc/pdf/Megasqui ... -01-20.pdf covers the megasquirt 29bit can headers the ecu will send a request for the data and your arduino needs to answer the request.
1990 bmw 320i daily driver with m20b25 ms3 sequential fuel, 380cc injectors, d585 coil near plug, home made cam sync, launch control, fan control, vss, homebrew egt logging what's next????
jsmcortina
Site Admin
Posts: 39585
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: CAN ADC data from an Arduino help

Post by jsmcortina »

Or broadcast your data and use the MS3's "CAN Receiving" to map it to CANADC channels.

You'll likely find examples of CAN broadcasting code.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
Post Reply