Arduino UNO interfaced with TCAN4550

Hello,

I want to connect the arduino UNO to the TCAN4550 so that I can convert sensor values I am getting in the arduino to the CAN Bus. Essentially I want to get sensor values from a sensor connected to the arduino, send these values to the TCAN4550 so that they can be converted to the CAN BUS get these converted values back from the TCAN4550 to the Arduino UNO to validate and verify if it get converted correctly. I know that the connection from the Arduino UNO to the TCAN 4550 would be through SPI but I need help in Implementing the code in arduino IDE. TI provides a demo code but it is a demo code that uses the TCAN4550 with another MCU board. So I want to implement the TCAN4550 with the Arduino UNO. According to TI, just changing the SPI file and making it compatible with the MCU used should do the trick based on TI's TCAN 4550 Software Guide. Any help would be appreciated. I have attached the TI software guide as well as the Demo Code.

Software Guide: https://www.ti.com/lit/ug/sllu270/sllu270.pdf

Demo Code can be found in this link as a zip file labelled TCAN4550 Demo Software (This is the demo software referenced in the software guide) : https://www.ti.com/tool/TCAN4550EVM

it would be quite a task to 'translate' that library to make it 'arduino compatible'. unless you're lucky to find some good samaritian to put in the time and effort then it would be tough...

If I may ask, why are did you choose this chip? for CAN, MCP2515 is supported on arduino, or EPS 32 for buitin CAN, if you need CAN FD, there is the MCP2518FD or you could try the Teensy boards that have buildin CAN FD drivers

hope that helps....

It was more so what was on hand. Since the TCAN4550 was expensive I thought I might as well try to use it. So is translating that library to make it arduino compatible not as simple as what page 24 of the TCAN45xx Software User's guide makes it seem in 6.2? Because based on the Software guide, changing up the TCAN4x5x_SPI .c and .h file would be all it would take to make it compatible with any other microcontroller. Is it not as 'simple' as what they said? If the MCP2518FD were to be used, would the code be very simple to achieve what I want?

Thank you

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.