How can I interface an MCP2515 CAN controller module with an ILI9341 TFT LCD to display received data, while using an Arduino Uno to receive data from an Arduino Mega with a CAN transceiver, and having both the CAN receiver and the LCD use a single SPI connection?
Hello shubhampatil19
Welcome to the worldbest Arduino forum ever.
This is a nice project to get started.
Keep it simple and stupid firstly.
Run some tutorials for the hardware selected.
If you are happy with the results of the tutorials you can merge these to your project.
Have a nice day and enjoy coding in C++.
They share everything but the Chip Select pin. Each one has a separate CS pin so each device knows when it is allowed to use the bus.
Cory Fowler has published a great CAN library, it comes with simple send and receive programs. You must have at least two working nodes because any message sent must be acknowledged by another node. Termination is also very important.
I am not clear with the SPI commands, Can you please share a code if you have to interface two SPI devices on a single Arduino board.
Did you websearch ("arduino with two SPI devices") for that?
I did.
Note the use of "CS1" and "CS2" in the sketch (at the end of the article).
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.