Arduino: различия между версиями

Материал из Home Wiki
Перейти к навигации Перейти к поиску
(Новая страница: «= ST7789 TFT Display = https://simple-circuit.com/arduino-st7789-ips-tft-display-example/ All Arduino UNO board output pins are 5V, connecting a 5V pin to the ST…»)
 
 
Строка 3: Строка 3:


All Arduino UNO board output pins are 5V, connecting a 5V pin to the ST7789 TFT display may damage its controller.
All Arduino UNO board output pins are 5V, connecting a 5V pin to the ST7789 TFT display may damage its controller.
To connect the Arduino to the display module, I used voltage divider for each line which means there are 4 voltage dividers. 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 4 voltage dividers.
Each voltage divider consists of 2.2k and 3.3k resistors, this drops the 5V into 3V which is sufficient.


If the display module has a CS pin (Chip Select) then it should be connected to Arduino digital pin 10 through another voltage divider.
If the display module has a CS pin (Chip Select) then it should be connected to Arduino digital pin 10 through another voltage divider.


So, the ST7789 TFT display is connected to the Arduino board as follows (each one through voltage divider):
So, the ST7789 TFT display is connected to the Arduino board as follows (each one through voltage divider):
RST pin is connected to Arduino digital pin 8,
RST pin is connected to Arduino digital pin 8,
DC pin is connected to Arduino digital pin 9,
DC pin is connected to Arduino digital pin 9,
SDA pin is connected to Arduino digital pin 11,
SDA pin is connected to Arduino digital pin 11,
SCL pin is connected to Arduino digital pin 13.
SCL pin is connected to Arduino digital pin 13.

Текущая версия на 16:48, 22 февраля 2021

ST7789 TFT Display

https://simple-circuit.com/arduino-st7789-ips-tft-display-example/

All Arduino UNO board output pins are 5V, connecting a 5V pin to the ST7789 TFT display may damage its controller.

To connect the Arduino to the display module, I used voltage divider for each line which means there are 4 voltage dividers. Each voltage divider consists of 2.2k and 3.3k resistors, this drops the 5V into 3V which is sufficient.

If the display module has a CS pin (Chip Select) then it should be connected to Arduino digital pin 10 through another voltage divider.

So, the ST7789 TFT display is connected to the Arduino board as follows (each one through voltage divider):

RST pin is connected to Arduino digital pin 8,

DC pin is connected to Arduino digital pin 9,

SDA pin is connected to Arduino digital pin 11,

SCL pin is connected to Arduino digital pin 13.