Hello all -- Yet another I2C issue I'm hoping someone could provide some me some guidance on.
I'm using an esp32-wroom-32D devboard & I have a 2.8" TFT SPI Display (MFG Model is MSP2834) that uses I2C for the capacitive touch (driver IC: FT6336G) and SPI for the display (driver IC: ILI9341). I cannot get the esp to find the I2C seemingly no matter what I do.
It WILL find other devices such as the OLED SSD1306. I tried a few 2.8" displays thinking it could be a hardware issue, still no dice.
I have tried:
4.7k & 10k pull up resistors
defining different SDA & SCL pins
Looking through the Wire.h library to make sure there was not anything overriding my definitions in my sketch
I used the FPC connector on the display with an FPC breakout board just incase there was something wrong with the header pins
Here are photos of my set up, a diagram of the wiring (im sorry in advanced if the wiring diagram is crap but I tried). & also an except from the data sheet of the display regarding the I2C.
Any suggestions from the community would be greatly appreciated & look forward to a discussion.
Is this a case of mirror image? Do whatever you need to do to make sure the sensor pins are connected to the right MCU pins. It took me a few hours to get my head wrapped around that. I eventually desoldered the pins and reversed them so I could see the labels.
So the display driver is SPI but the touch screen driver is I2C. I dont have any issues with the display via SPI, just cannot get the touch working / communicating.
Here is where the display was purchased I've seen a bunch of inaccuracies on product descriptions and photos though so here are screenshots of the MFGs data sheet
It's been a couple of years since, but I was trying to accomplish this very thing and never got it going. The display would work till I incorporated the touchscreen and then - it cratered.
I'm unsure if this makes me feel better or worse now. haha I wonder if it is a hardware issue or something then. It should be simple to poll the i2c address and its been driving me nuts the last few days trying to get it to work. I just remembered I even used an i2c multiplexer just to see if somehow that would work -- I would get the address of the multiplexer board but still nothing for the display.
I did note that you solved it. thank you much for your help.
Question with the INT signal, I'm not using it right now but it seems to be communicating since I'm getting the address in the serial monitor? Could you explain a bit more if you wouldnt mind?
When the sensor sees a touch, it generates a signal, sets it to the INT pin, you should periodically read this pin and as soon as you receive this signal, you need to process it, it is easier to find a library. All this is already implemented there.