CANbus / OBDII plank?

Beware those DE-9 to screw terminal adaptor boards. I have an assortment from Ali Express and one of the genders is labeled wrong on the silkscreen. It’s like they use the same tiny PCB for both the make and female connector. You can’t do that because the pin number will be backwards

Actually, you could use the same PCB itself, it’s just that the silkscreen legends would be different.

However, this is a forum for Dangerous Prototypers, so such caution is probably unnecessary if not unwanted. A few sparks when you short your CAN 5V power supply to ground, fry two logic analyzer inputs, blow out a CAN bus transceiver, and set fire to your engineering notebook — all before 9am — is probably just par for the course with this crowd.

3 Likes

“Dangerous” is my favorite part!

3 Likes

@ian reminder about canbus plank

2 Likes

The board routing is done. Haven’t had a chance to populate one.

CAN Adapter-2024-09-12_095100.zip (119.4 KB)

3 Likes
Qty Reference(s) Value Footprint
4 C1, C2, C8, C9 20pF Capacitor_SMD:C_0805_2012Metric
2 C3, C5 10uF Capacitor_SMD:C_0805_2012Metric
2 C4, C6 0.1uF Capacitor_SMD:C_0805_2012Metric
1 C7 4.7nF 100V Capacitor_SMD:C_0805_2012Metric
1 D1 NUP2105L Package_TO_SOT_SMD:SOT-23
1 D2 LED LED_SMD:LED_0805_2012Metric
1 J1 CAN BUS (KF141R-2) footprints:CONN-TH_2P-P2.54_KF141R-2.54-2P
1 J2 Conn_01x10 Connector_PinSocket_2.54mm:PinSocket_1x10_P2.54mm_Horizontal
1 J3 Conn_01x10 Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_Vertical
1 JP1, JP2 VREF/TERM Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical
2 R1, R3 10k Resistor_SMD:R_0805_2012Metric
1 R2 2K Resistor_SMD:R_0805_2012Metric
2 R4, R5 60.4R Resistor_SMD:R_0805_2012Metric
1 U1 MCP2515-xST Package_SO:TSSOP-20_4.4x6.5mm_P0.65mm
1 U2 SN65HVD230 Package_SO:SOIC-8_3.9x4.9mm_P1.27mm
1 Y1 8MHz Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm

Production files:

CAN-production.zip (203.0 KB)

We’re going to have a small batch of these hand assembled. I’m not sure what to do with it besides send them to you all as samples, but it’s time to have a prototype.

3 Likes

I’m interested in getting one of these.

2 Likes

I second that. Also interested. Can pay for it normally + shipping

3 Likes

Just to follow up before I send these off to have a few made. Anything known at this point that should be addressed in advance? I’m hoping to add these to the queue in the next few weeks.

1 Like

We have them, I don’t know why we haven’t sent them out. They were assembled months ago.

@jin we have these I believe?

2 Likes

CAN adapter board! Let me know if you want one! Keep in mind it will need a whole library to drive the transceiver.

3 Likes

I am definitely interested in getting one of these!

1 Like

Coming your way!

/** words **/

1 Like

I am going to pimp my ride with it! Still interested

2 Likes

I checked and it’s not listed on the DirtyPCB site, so I presume this is a small-sample to see if firmware will be written.

I’ve wanted to sniff my cars’ CAN bus for years, and there’ve always been roadblocks. That said, I have zero experience and less time to learn this area.

Accordingly, I would not  be contributing to the actual development. As a result, any and everyone else should have higher priority. If you then still have leftovers and want to reduce clutter, … send one my way! :slight_smile:

2 Likes

I’ll send you one. Do whatever with it.

1 Like

Count me in too! Could be useful for my new 3d printer. I’m in the same boat as Henry, I don’t know how much I could help. I’d be willing to pay for it though.

2 Likes

thats why i havent replied. I do plan on getting back into hardware hacking stuff, but ive been down an audio circuitry/synth rabbit hole. If i get one it will probably sit for some months.
Has anyone showed interest in actually working on the fw?

2 Likes

I just looked at the BOM, and reading raw bytes should be easy
It is using:
MCP2515-xST
SN65HVD230

This means it uses SPI interface for the MCP2515 which has its own command set of 1-byte instructions:

Im pretty sure we could send simple commands with the existing SPI mode and then READ RX BUFFER.

EDIT:
so the gameplan for a CanBUS specific mode would be:
1.) Auto reset/init
2.) configure baud rate
3.) filters?
4.) Parse incoming Can frames to more human readable like CAN ID, Data length, DATA

maybe someone could add a replay feature in the future. and of course we’d want to be able to load .dbc files in the future for translation.
we could get ideas from GitHub - cantools/cantools: CAN bus tools.

TX im not so sure

2 Likes

Nice! Thank you for checking it out.

Any thoughts on devices to test with? Just another bus pirate? Did you get the can thing working?

1 Like

i got it working with a basic OBD-II bluetooth module. so if that is able to receive and interpret data from it, so im sure we could see something on the buspirate (as far as raw data)
I think we could wire up on an actual car without too much worry as well.

2 Likes