Skip to main content
PR.19
Associate II
July 18, 2019
Question

CAN interface with OBD

  • July 18, 2019
  • 4 replies
  • 2836 views

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.?

This topic has been closed for replies.

4 replies

turboscrew
Senior III
July 18, 2019
FNava.1
Visitor II
April 6, 2020

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

PR.19
PR.19Author
Associate II
April 6, 2020

@ 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

FNava.1
Visitor II
April 9, 2020

Thank you, I will study this library.