Nano - TFT ili9341 and Mcp2515 CanBus not working (display)

Hi to all
i have one 2.2" TFT display with ILi9341 driver

i used the Adafruit libraries and worked fine ( as i am using an arduino nano 5v logic i used some 1k resistors in series with the pinout , until get a mail order with level shifters boards)

#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

// For the Adafruit shield, these are the default.
#define TFT_DC 9
#define TFT_CS 10

// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

as a reset pin i am using the RST pin of the Arduino board

i add a Mcp2515 CanBus module that uses SPI connection also


#include <mcp_can.h>
#include <SPI.h>
MCP_CAN CAN0(8);                               // Set CS to pin 10

i changed the the default cs pin to pin 8 so not sharing the same pin as the TFT display
pins for CSk (13) Mosi(11) Miso(12) is the same as the TFT

The problem is that when i add the Mcp2515 module the tft stop working ( bright white screen)

i thought that the SPI could be used with more than one device just needed one gpio more for each device (cs)
does these TFTs screens need any special treatment when sharing the same SPI ?

is just problem with the resistors ? maybe when i use level shifters the problem fixed ? (ok this is more a guess question for someone maybe had the same problem and fixed it like this)

Ps : the can module work fine when i am connecting it

there are several version of this module out there... which one are you using please?

also a simple schematic of your wiring connections would be nice to see! :wink:

How can i identify which version i use? I thought all this time that all are the same .. (or maybe you are referring to the iccode only )

i have these type of mcp2515 modules

as i am on the go to work i will provide a schematic with my connection later when i can use a software in a pc to draw them

Here is the connections in pysical :

thanks in advance

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