DIYPNP, Arduino with CAN-BUS shield

This forum is for the discussion of other projects on Megasquirt/Microsquirt hardware that don't fit into any of the other forums

Moderators: jsmcortina, muythaibxr

Post Reply
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

Hello everyone,
I was trying to find info about connecting DIYPNP to Arduino with CAN-BUS shield. I was trying to find pins for CANH & CANL on DIYPNP.
Image

1. How to connect those together?
2. Can they connecto over DB9 connectors(DIYPNP and CAN-BUS shield)?
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

the CANH & CANL on DIYPNP are found on the 18 pin center header you should be able to jumper those to un used pins on the loom side and then connect these to your shield. the db9 on the ecu is rs232 serial so dont connect that to you can shield bad things may happen.
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

Image

what about pins 10 & 12.

pin 18 is Flex.
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

thats the pinout for the microsquirt module. you want the 18pin connector on the main board.
Last edited by grom_e30 on Sun Apr 24, 2016 9:22 am, edited 1 time in total.
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

I know Im stupid can you pls post a pic of the board and the pin.
I am looking at the board and don't see pin 18 :(
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

arrow shows where you pick the canh and canl signals up, then its up to you where you jumper them to.
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

found them thanks a lot.
can I jumper them to DB15 connector?
I have read in manual that need 120ohm resistors, do I need them here?
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

you can run wires and jumper them to any spare pins you like. the 120 ohm terminator resistor will more than likely be on you can shield
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

thanks a lot :)
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

what you making any how?
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

I want to connect my MS to arduino with LCD and display some data on it.
I have rs232 bluetooth but for some reason it stoped working.
Image
I get error that some file cannot be found on the server, something like that.
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

if you connect the arduino by can-bus you can have a display and still have the computer connected by rs232 at the same time.
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

thats true :)
I have already bought all electronics need for LCD dash :)
20x4 character LCD display :D
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

If its possible I wont open new thread for similar question.
I have wired CANH & CANL from board to DB15 connector and DB15 connector to CAN BUS Shield.
But dont know how to get it to work?
What do I have to setup to get it to work?
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

wewerica wrote:If its possible I wont open new thread for similar question.
I have wired CANH & CANL from board to DB15 connector and DB15 connector to CAN BUS Shield.
But dont know how to get it to work?
What do I have to setup to get it to work?
what ecu? what arduino and can-bus setup are you using?
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

grom_e30 wrote:
wewerica wrote:If its possible I wont open new thread for similar question.
I have wired CANH & CANL from board to DB15 connector and DB15 connector to CAN BUS Shield.
But dont know how to get it to work?
What do I have to setup to get it to work?
what ecu? what arduino and can-bus setup are you using?
Im using DIYPNP 1.5b with 3.4.2 firmware
Arduino UNO with elecfreaks canbus shield - http://www.elecfreaks.com/estore/can-bus-shield.html
grom_e30
Super MS/Extra'er
Posts: 4451
Joined: Thu Mar 08, 2012 12:44 pm
Location: UK

Re: DIYPNP, Arduino with CAN-BUS shield

Post by grom_e30 »

ah ok that shield does work i'm using the same one, did you turn on 'real time data broadcasting' in the can bus settings so the ecu is sending out the data via can-bus?

have you got the arduino lib set up and a sketch to read the data?
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????
wewerica
Helpful MS/Extra'er
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Post by wewerica »

Yes I did, I have uploaded receive_check sketch but nothing happens :(
Can you share some code/sketch with me? :)
pm/email
Post Reply