cancel
Showing results for 
Search instead for 
Did you mean: 

CAN interface with OBD

PR.19
Associate II

I'm using STM32F051 controller and MCP2515 CAN SPI module using to try to interface with my car using OBD2 connector. I have tested the CAN bus to transmit and receive messages successfully. Can someone help me with a sample CAN message PID query for getting data such as RPM.?

4 REPLIES 4
turboscrew
Senior III
FNava.1
Associate II

Hi, Can you make to funcionation this project? Because I want to make a similar project where I want to read and write through Can Bus

@ FNava.1 Yes the project is functional. If you are using MCP2515 CAN module use the driver provided in this example to send and receive data:

https://github.com/eziya/STM32_SPI_MCP2515/blob/master/Src/MCP2515.c

Thank you, I will study this library.