blue pill - st7735s tft display factory
Hi guys, welcome to today’s tutorial. Today, we will look on how to use the 1.8″ ST7735 colored TFT display with Arduino. The past few tutorials have been focused on how to use the Nokia 5110 LCD display extensively but there will be a time when we will need to use a colored display or something bigger with additional features, that’s where the 1.8″ ST7735 TFT display comes in.
The ST7735 TFT display is a 1.8″ display with a resolution of 128×160 pixels and can display a wide range of colors ( full 18-bit color, 262,144 shades!). The display uses the SPI protocol for communication and has its own pixel-addressable frame buffer which means it can be used with all kinds of microcontroller and you only need 4 i/o pins. To complement the display, it also comes with an SD card slot on which colored bitmaps can be loaded and easily displayed on the screen.
The schematics for this project is fairly easy as the only thing we will be connecting to the Arduino is the display. Connect the display to the Arduino as shown in the schematics below.
Due to variation in display pin out from different manufacturers and for clarity, the pin connection between the Arduino and the TFT display is mapped out below:
We will use two example sketches to demonstrate the use of the ST7735 TFT display. The first example is the lightweight TFT Display text example sketch from the Adafruit TFT examples. It can be accessed by going to examples -> TFT -> Arduino -> TFTDisplaytext. This example displays the analog value of pin A0 on the display. It is one of the easiest examples that can be used to demonstrate the ability of this display.
The second example is the graphics test example from the more capable and heavier Adafruit ST7735 Arduino library. I will explain this particular example as it features the use of the display for diverse purposes including the display of text and “animated” graphics. With the Adafruit ST7735 library installed, this example can be accessed by going to examples -> Adafruit ST7735 library -> graphics test.
Next, we move to the void setup function where we initialize the screen and call different test functions to display certain texts or images. These functions can be edited to display what you want based on your project needs.
Uploading the code to the Arduino board brings a flash of different shapes and text with different colors on the display. I captured one and its shown in the image below.
That’s it for this tutorial guys, what interesting thing are you going to build with this display? Let’s get the conversation started. Feel free to reach me via the comment section if you have any questions as regards this project.
IPS (In-Plane Switching) lcd is still a type of TFT LCD, IPS TFT is also called SFT LCD (supper fine tft ),different to regular tft in TN (Twisted Nematic) mode, theIPS LCD liquid crystal elements inside the tft lcd cell, they are arrayed in plane inside the lcd cell when power off, so the light can not transmit it via theIPS lcdwhen power off, When power on, the liquid crystal elements inside the IPS tft would switch in a small angle, then the light would go through the IPS lcd display, then the display on since light go through the IPS display, the switching angle is related to the input power, the switch angle is related to the input power value of IPS LCD, the more switch angle, the more light would transmit the IPS LCD, we call it negative display mode.
The regular tft lcd, it is a-si TN (Twisted Nematic) tft lcd, its liquid crystal elements are arrayed in vertical type, the light could transmit the regularTFT LCDwhen power off. When power on, the liquid crystal twist in some angle, then it block the light transmit the tft lcd, then make the display elements display on by this way, the liquid crystal twist angle is also related to the input power, the more twist angle, the more light would be blocked by the tft lcd, it is tft lcd working mode.
A TFT lcd display is vivid and colorful than a common monochrome lcd display. TFT refreshes more quickly response than a monochrome LCD display and shows motion more smoothly. TFT displays use more electricity in driving than monochrome LCD screens, so they not only cost more in the first place, but they are also more expensive to drive tft lcd screen.The two most common types of TFT LCDs are IPS and TN displays.