3/1/2023 0 Comments Simple comptable serialThe first library is a driver for the ILI9341 TFT display which can be installed from Arduino IDE library manager (Sketch -> Include Library -> Manage Libraries …, in the search box write “ili9341” and choose the one from Adafruit). The following Arduino code requires two libraries from Adafruit Industries: Interfacing Arduino with ILI9341 TFT display code: SCK pin is connected to Arduino digital pin 13.īL (LED) pin is connected to Arduino 5V pin, MOSI pin is connected to Arduino digital pin 11, RST pin is connected to Arduino digital pin 9,ĭ/C pin is connected to Arduino digital pin 10, So, the ILI9341 TFT display is connected to the Arduino board as follows (each one through voltage divider):ĬS pin is connected to Arduino digital pin 8, Each voltage divider consists of 2.2k and 3.3k resistors, this drops the 5V into 3V which is sufficient. To connect the Arduino to the display module, I used voltage divider for each line which means there are 5 voltage dividers. This module has a built-in 3.3V regulator which supplies the display controller with 3.3V from the 5V source.Īll Arduino UNO board output pins are 5V, connecting a 5V pin to the ILI9341 TFT display may damage its controller. The display module is supplied with 5V that comes from the Arduino board. So, the display side pins which numbered from 1 to 9 are (from left to right): VCC (5V), GND (ground), CS (chip select), RST (reset), DC (or D/C: data/command), MOSI (or SDI), SCK (clock), BL (back light LED) and MISO (or SDO).Īs mentioned above, the ILI9341 TFT display controller works with 3.3V only (power supply and control lines). The ILI9341 TFT display board which is shown in the circuit diagram above has 14 pins, the first 9 pins are for the display and the other 5 pins are for the touch module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |