uctronics raspbian drivers lcd touch screen made in china
In order to meet the increasing need of compact HDMI displays, especially for some popular single-board computers like the Raspberry Pi, the UCTRONICS team now releases a 7-inch HDMI LCD display with capacitive multi-touch touchscreen.
UCTRONICS U6111 is a 3.5” TFT LCD display with SPI interface and touchscreen support. It works with all standard Raspberry Pi models and supports operating systems like Raspbian, Ubuntu, Kali and RetroPie. Windows 10 IoT is NOT supported.
The UCTRONICS 3.5 Inch touch screen is the same size as the standard Raspberry Pi model B/B+, and well-mates with the Raspberry Pi boards. With a tiny size, vivid image, and responsive touchscreen, it is definitely ideal for portable devices and multimedia projects. It is a great replacement for a heavy and bulky HDMI monitor, keyboard, and mouse
Step1: Align the pin 1 of the edge connector between the LCD display and Raspberry pi board, connect the pin 1,2,3,4 then pin 19,20,21,22,23,24,25,26.
Attention: If you want to use the touch function, you need to download and install the driver manually refers to the instructions we provided. The driver includes the settings of the Raspbian OS resolution and touch screen support.
Attention: If you use this display without a Pi, the touch function is not available because the touch function of this display just supports the Raspbian system. Meanwhile, an extra HDMI cable also is required for the video transmission.
Raspberry Pi OS provides touchscreen drivers with support for ten-finger touch and an on-screen keyboard, giving you full functionality without the need to connect a keyboard or mouse.
The UCTRONICS 3.5 Inch touch screen with close is fully compatible with the standard Raspberry Pi model B/B+. With a tiny size, vivid image, and responsive touchscreen, it is definitely ideal for portable devices and multimedia projects. It is a great replacement for a heavy and bulky HDMI monitor, keyboard, and mouse.
· If you want to use the touch function, you need to download and install the driver manually refers to the instructions we provided. The driver includes the settings of the Raspbian OS resolution and touch screen support.
In the previous article, I described the steps needed to install an LCD touchscreen on the Raspberry Pi. In this article, I will show you how to adjust the screen rotation of the LCD to landscape mode, and will show you how to calibrate the touchscreen pointer for optimal accuracy. Just follow the steps below to compete the process of setting up your Raspberry Pi LCD touchscreen:
1. First we need to change the setting for screen rotation in the /boot/cmdline.txt file. This setting is called fbtft_device.rotate=X. By default, this is set to X=0, which results in a portrait mode screen orientation. In order to switch the orientation to landscape mode, change fbtft_device.rotate=0 to fbtft_device.rotate=90. Enter sudo nano /boot/cmdline.txt at the command prompt. There should only be one line in this file. Go to the end of it and you will find the fbtft_device.rotate=X setting. Change the value from 0 to 90:
However, if you try to touch the screen now, you will find that the pointer movement does not correspond to your finger movement. This is because the LCD screen driver and the touchscreen controller driver have separate settings for screen rotation. We need to change the rotation of the touchscreen controller driver to match the rotation of the LCD screen driver.
2. You probably noticed that dragging your finger to the right moves the pointer up, not to the right. This indicates that the x and y axes of the touchscreen are swapped. To correct this, we need to swap the x axis for the y axis. This can be done by changing the swap_xy=X parameter in /etc/modules.
Now if you drag your finger around the screen, you will notice that the y axis (up and down) is correctly aligned with the motion of your finger. However, the x axis (left and right) is still inverted. To fix this, we need to install two more kernel modules, xinput and evtest. xinput is a Linux utility that will allow us to configure input device settings for the touchscreen controller, and evtest is an input device event monitor and query tool.
After the Pi finishes rebooting, you should notice that when you move your finger across the touch screen, the pointer should follow correctly in both axes. If you are using the Raspberry Pi 2 Model B, you will need to complete the calibration steps below before the pointer follows your finger correctly (and make sure that you have enabled startx to load automatically – see step 6 in this article).
You can rotate the screen 90 degrees (as we did in this tutorial) and the power connector will be at the bottom of the screen, but you can also rotate it 270 degrees so that the power connector is at the top of the screen. To do this, simply enter fbtft_device.rotate=270 in the /boot/cmdline.txt file. Then change the DISPLAY=:0 xinput --set-prop "ADS7846 Touchscreen" "Evdev Axis Inversion" 0 1 line in the /etc/X11/xinit/xinitrc file to DISPLAY=:0 xinput --set-prop "ADS7846 Touchscreen" "Evdev Axis Inversion" 1 0. All you need to do is switch the values of the 0 and 1 at the end of this line.
Now that we have our LCD touchscreen up and running, the final step in the installation is the calibration of touch control. This will make the pointer much more accurate and easier to use.
2. Now we need to install the calibration tool we will be using, xinput_calibrator; and other filters for controlling the touchscreen response. Install the tslib library by entering aptitude install libts-bin:
4. Now we can use ts_calibrate. Enter ts_calibrate at the command prompt (make sure you are still in root mode) to run the ts_calibrate program. The program will consecutively display five crosses on different parts of the screen, which you need to touch with as much precision as possible:
Drag the cross around the screen and observe how closely it follows your finger or stylus to test the accuracy of the calibration. Now press the “Draw” button to enter the drawing mode:
This is kind of a long process, but it is well worth it if you want to get the LCD touchscreen set up properly. So if you have any trouble setting this up or have anything to say, please leave a comment below. Also, if you found this article useful, please share it with your friends!
UCTRONICS 3.5 inch TFT LCD display module is designed for Raspberry Pi zero/Pi 2 /Pi 3 Model B / B+ /Pi 3 B+, and can also be used on other hardware platforms with an SPI interface. The 3.5" inch screen is in the same size as the standard Raspberry Pi model B/B+, and well mates with the Raspberry Pi boards. With its touchscreen, it is suitable for portable devices and projects. It is also a replacement for a heavy and bulky HDMI monitor, keyboard and mouse.
In order to meet the increasing need of compact HDMI displays, especially for some popular single-board computers like the Raspberry Pi, the UCTRONICS team now releases a 5-inch HDMI LCD display with capacitive multi-touch touchscreen
The RPi LCD can be driven in two ways: Method 1. install driver to your Raspbian OS. Method 2. use the Ready-to-use image file of which LCD driver was pre-installed.
3) Connect the TF card to the Raspberry Pi, start the Raspberry Pi. The LCD will display after booting up, and then log in to the Raspberry Pi terminal,(You may need to connect a keyboard and HDMI LCD to Pi for driver installing, or log in remotely with SSH)
1. Executing apt-get upgrade will cause the LCD to fail to work properly. In this case, you need to edit the config.txt file in the SD card and delete this sentence: dtoverlay=ads7846.
This LCD can be calibrated through the xinput-calibrator program. Note: The Raspberry Pi must be connected to the network, or else the program won"t be successfully installed.