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

CAN ADC data from an Arduino help

Postby youngfg » Sat Jul 15, 2017 8:05 am

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!
youngfg
Helpful MS/Extra'er
 
Posts: 43
Joined: Mon Oct 25, 2004 8:13 am
Location: Owensboro, kY

Re: CAN ADC data from an Arduino help

Postby grom_e30 » Sun Jul 16, 2017 7:23 am

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????
grom_e30
Super MS/Extra'er
 
Posts: 4004
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: CAN ADC data from an Arduino help

Postby jsmcortina » Sun Jul 16, 2017 1:42 pm

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 supply, repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: viewtopic.php?f=104&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
jsmcortina
Site Admin
 
Posts: 33991
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK


Return to Expansion boards

Who is online

Users browsing this forum: No registered users and 1 guest