_Marco_
Posts: 19
Joined: Thu Apr 02, 2020 1:18 pm
Location: some island, south mediterranean

[CAN-BUS interfacing] real time logging

Tue Apr 14, 2020 9:44 am

Hi all.

I am new here, my name is Marco. I have little only a basic understanding and experience in electronics and circuits, and some more experience in coding. After some time spent playing around with Arduino, I decided to try the wonderful world of RP.

I am trying to real/time read and log data from the diagnostic port of my motorbike. As far as I have understood, the protocol used is CAN-BUS. The plug of the port is a 4 pinned one: 12V, GND, H, L. I have bought a tiny extension board for the RP, here is the link to the board-dedicated web page (https://www.waveshare.com/wiki/RS485_CAN_HAT). User manual and examples of code (Python) are to be found at the bottom of that page.

Maybe I was too naif when hoping that a simple wiring would automagically work for me, having the RP streaming data on my terminal. Therefore, I would kindly ask you some help or feedback regarding:
1. wiring: any wire of reasonable diameter would be OK?
2. circuit components: should I use resistors? Or diodes? Should I use capacitors to prevent current spikes?
3. coding: I don't want to send data but, instead, reading them. I am using Python 3.

I would be happy to provide you with more details, if needed, and thank you from now for any suggestions or input you are willing to give me.
Ciao,
Marco
https://www.youtube.com/watch?v=bukPjk5zdLc

Return to “General discussion”