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

DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 7:01 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Apr 24, 2016 8:37 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 8:52 am

Image

what about pins 10 & 12.

pin 18 is Flex.
wewerica
Helpful MS/Extra'er
 
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Apr 24, 2016 9:12 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 9:22 am

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 :(
wewerica
Helpful MS/Extra'er
 
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Apr 24, 2016 9:25 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 9:38 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Apr 24, 2016 9:58 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 10:34 am

thanks a lot :)
wewerica
Helpful MS/Extra'er
 
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Apr 24, 2016 10:36 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 11:03 am

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.
wewerica
Helpful MS/Extra'er
 
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Apr 24, 2016 11:17 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Apr 24, 2016 11:26 am

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

Postby wewerica » Sat Jan 07, 2017 12:23 pm

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Jan 08, 2017 3:20 am

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Jan 08, 2017 1:06 pm

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby grom_e30 » Sun Jan 08, 2017 1:31 pm

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

Re: DIYPNP, Arduino with CAN-BUS shield

Postby wewerica » Sun Jan 08, 2017 1:53 pm

Yes I did, I have uploaded receive_check sketch but nothing happens :(
Can you share some code/sketch with me? :)
pm/email
wewerica
Helpful MS/Extra'er
 
Posts: 45
Joined: Sun Jan 25, 2015 1:31 am


Return to Other Development

Who is online

Users browsing this forum: No registered users and 1 guest