Skip to main content

Make 1.8 SPI TFT 128x160 works as Arduino project display

Almost a week I tried to make this display worked. I tried few pinouts combination and few library and still it won't work. Finally I managed to get this display working with Ucglib library and help from internet and doing trial and error. 


There are several type of this display on the internet. You can search this kind of display and it's variation. But the one I have sadly has common problem. Here is mine.

  
And here is in the back of the lcd.


Wiring
The pinouts could be different on other type. But here are the pinouts that working for me. Note that first pin is GND. All pin used are digital pins.
  • GND <-----> GND
  • VCC <-----> 5v
  • RESET (RST) <-----> PIN 8 (in series with 1K resistor)
  • AO (DC) <------> PIN 9  (in series with 1K resistor)
  • SDA <-----> PIN 11  (in series with 1K resistor)
  • SCL <------> PIN 13  (in series with 1K resistor)
  • CS <-----> PIN 10  (in series with 1K resistor)
  • LED+ <-----> 3.3v
  • LED- <-----> GND
I need to add resistor in series with all used pins. I found this resistors make better color contrast. Maybe the lcd pinouts was intended to work on 3.3v. 

Libraries
Install Ucglib library from Arduino Libraries or you can download it from link on the top.



Testing
Download my test sketch on: https://github.com/satujamsaja/Arduino/tree/master/spitft1.8 it should show like below.  My other sketch will display sensors results. You can download it on this link https://github.com/satujamsaja/Arduino/tree/master/spitftdht22bmp280 and also check the sensors wiring on my previous posts.

Good Luck.


Comments

Popular posts from this blog

Read temperature and barometric pressure from GY BMP 280 using Arduino

This sensor based on BMP 280 digital pressure sensor made by Bosch. You can find the complete datasheet here . This small sensor is quite impressive with it's accuracy. It claimed to be ±1 hPa in measuring barometric pressure, ±1.0°C in temperature measurement and ±1 meter in altitude accuracy. Pretty impressive right ?

Using LCD 2004a I2C on project with Arduino

On previous post measurement sensor results displayed on serial monitor. This is good when we are on development stage. When we want something more independent we need external display. I have purchased a few type of display. For now we will use LCD 2004 for external display.

RDA5807M FM radio module for Arduino

I was surprised with it's ability to receive FM radio broadcast without any problem in such a small module. The size is not bigger than a coin, really small. It may a bit difficult for wiring but it can be done. You can also add small power audio amplifier and use small speaker directly. Here is the module chip, small power amplifier in prototyping pcb.