Coder Social home page Coder Social logo

uctronics_lcd35_rpi's Introduction

UCTRONICS_LCD35_RPI (SKU: U4703)

This driver is used for UCTRONICS LCD35 with SPI interface

Revision History:

  • 2018/05/30 : Add support rotate 0/ 90/ 180/ 270 degree for Pi3B and Pi3B+
  • 2018/05/30 :Optimize the bug of making kernel panic
  • 2018/06/01 : Add support rotate 0/ 90/ 180/ 270 degree for Pi zero and Pi B+

Any problems, please refer to our troubleshootings

Easy Install

wget https://raw.githubusercontent.com/UCTRONICS/UCTRONICS_LCD35_RPI/master/install
sudo chmod +x install
sudo ./install 

Detail operations

Step1: Expand the sd card first

sudo raspi-config choose Advanced Operations -> Expand Filesystem 
sudo reboot

Step2: Update your raspberry pi system

 sudo apt-get update

Step3: Download the driver package

 sudo git clone https://github.com/UCTRONICS/UCTRONICS_LCD35_RPI.git

EasyBehavior

Step4: Come in the UCTRONICS_LCD35_RPI

 cd UCTRONICS_LCD35_RPI

EasyBehavior

Step5: Get run permissions

 sudo chmod 777 UCTRONICS_LCD_backup
 sudo chmod 777 UCTRONICS_LCD35_install
 sudo chmod 777 UCTRONICS_LCD_restore
 sudo chmod 777 UCTRONICS_LCD_hdmi

EasyBehavior

Step6: backup data

 sudo ./UCTRONICS_LCD_backup

EasyBehavior

Step7: install the LCD35 driver

 sudo ./UCTRONICS_LCD35_install

EasyBehavior

wait a while the system will be installed and restarted automatically.

Reuse the pre-installation system

 sudo ./UCTRONICS_LCD_restore

display on hdmi

   sudo ./UCTRONICS_LCD_hdmi

Add more functions for the LCD :

NO1. Install calibration software for calibration

  cd UCTRONICS_LCD35_RPI
  sudo unzip Xinput-calibrator_0.7.5-1_armhf.zip 
  cd xinput-calibrator_0.7.5-1_armhf/
  sudo dpkg -i -B xinput-calibrator_0.7.5-1_armhf.deb

NO2. Install virtual keyboard

    1. Execute the following commands to install the corresponding software
 sudo apt-get update
 sudo apt-get install matchbox-keyboard
 sudo nano /usr/bin/toggle-matchbox-keyboard.sh
    1. Copy the following contents to toggle box - keyboard. Sh, save the exit
  #!/bin/bash
   #This script toggle the virtual keyboard
   PID=`pidof matchbox-keyboard`
  if [ ! -e $PID ]; then
   killall matchbox-keyboard
   else
   matchbox-keyboard -s 50 extended&
   fi
    1. Execute the following command
sudo chmod +x /usr/bin/toggle-matchbox-keyboard.sh
sudo mkdir /usr/local/share/applications
sudo nano /usr/local/share/applications/toggle-matchbox-keyboard.desktop
    1. Copy the following contents to toggle - matchbox - keyboard. Desktop, save exit
[Desktop Entry]
Name=Toggle Matchbox Keyboard 
Comment=Toggle Matchbox Keyboard` 
Exec=toggle-matchbox-keyboard.sh
Type=Application
Icon=matchbox-keyboard.png
Categories=Panel;Utility;MB
X-MB-INPUT-MECHANSIM=True
    1. To perform the following command, note that this step must use the "PI" user permission, and if the administrator privileges are used, the file will not be found
nano ~/.config/lxpanel/LXDE-pi/panels/panel
    1. Find similar commands (different versions of ICONS may differ)
Plugin {
type = launchbar
Config {
Button {
id=lxde-screenlock.desktop
}
Button {
id=lxde-logout.desktop 
 }
}
    1. Add the following code to add a Button item
 Button {
 id=/usr/local/share/applications/toggle-matchbox-keyboard.desktop
  }
    1. To restart the system with the following command, you can see a virtual keyboard icon in the top left corner
  sudo reboot

Add new ICON to desktop ?

If it's just a folder, add it directly to the desktop

If it is an executable, follow this steps:

  • step1: choose the Directory Tree -> / -> usr -> share ->applications folder

  • Step2: choose a icon you want to link

  • Step3: choose edit -> create link... ->Desktop ->OK

Rotate the screen to 0/90/180/270 degree

cd ~UCTRONICS_LCD35_RPI
  • For rotate 0 :
             sudo chmod +x UCTRONICS_LCD35_install
             sudo ./UCTRONICS_LCD35_install 
  • For rotate 90 :
            sudo chmod +x UCTRONICS_LCD35_rotation_90_install 
            sudo ./UCTRONICS_LCD35_rotation_90_install 

For rotate 180 :

            sudo chmod +x UCTRONICS_LCD35_rotation_180_install 
            sudo ./UCTRONICS_LCD35_rotation_180_install

For rotate 270 :

            sudo chmod +x UCTRONICS_LCD35_rotation_270_install 
            sudo ./UCTRONICS_LCD35_rotation_270_install

Rotation =0

Alt text

Rotation =180

Alt text

uctronics_lcd35_rpi's People

Contributors

uctronics avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

uctronics_lcd35_rpi's Issues

Display drivers for Octoprint not working correctly - Pi 3 B+

Installed Octoprint to SD via their image file.
Installed drivers for UCTRONICS_LCD35_RPI / Octoprint (followed step by step installation instructions).

Screen worked fine on console.
Installed Octoprint desktop via "sudo /home/pi/scripts/install-desktop"

Now the screen flickers inconsistently on screen saver, and flickers beneath the cursor when touching the screen.
SEEMS like a refresh rate problem.

Purple lines instead of displaying

I follow the instructions to a 'T' on my raspberry pi 4b, and it displays a purple line that slowly crawls across the screen covering the logo.
Running this on Octoprint, which runs on raspbian stretch.
Here is an image of what is happening:
IMG_0092

Latest kernel is 4.14.34+, installing driver rolls back kernel

I have been trying to incorporate a wifi driver and was running into issues with installed versus running kernel versions. Finally tracked it down to the UCTRONICS install process. The latest kernel image is 4.14.34+ (4/17/2018). Newer via rpi-update. When installing the UCTRONICS driver, uname -r immediately reports back with the kernel version UCTRONICS was build against (4.14.33), essentially rolling back the kernel. Once this mismatch occurs, it's not possible to build any other kernel drivers. Installation should require raspberrypi-kernel-headers and build against the currently installed kernel.

Changing screen orientation?

How can the screen orientation be changed (such as landscape/portrait)? I tried editing /boot/config.txt as well as config.txt inside the uctronics folder but none seem to impact the screen

Installing this breaks both Raspbian and Ubuntu MATE

If I follow the instructions as stated, it reboots the system as expected, then just boots to the 'rainbow' GPU test screen, indicating that no OS is detected. If I wait long enough, it goes to a blue screen with a message saying 'not support'. What does this poorly-translated message mean?

Installing UCTRONIOCS_LCD35_hdmi for a second time made my raspberry pi 0w stop recognizing it's wifi device

I'm not sure if it was when I plugged in the screen or just after restarting from installing these hdmi drivers and this is after having installed everything, but my raspberry pi 0w has stopped recognizing its own wifi module. It could be that the OS device drivers are messed up or it could be that the power for my wifi module somehow got overloaded from something to do with the display, but It's not recognizing the wifi module now and I'm going to need to reinstall some things.

Source for driver or kernel diff?

Hi,
Is the source for the driver available, either standalone or as a diff for the kernel source? It's not clear how the kernel images were built.

I see CONFIG_FB_ILI9488=y is set in the config, but that seems to differ from other publicly-available drivers for the ILI9488.

Thanks!

Doesn't work on 3B

I have Ubuntu Mate 16.04.02 on Raspberry Pi 3B. After I followed the "sudo ./install", it went thru. However, on the LCD35 when I use the touch pen to click on a file folder, it automatically open the trash bin and the worse is, it "silently" opens seemingly infinity number of trash bin. In the meantime, if I use mouse, everything is A-ok. Could anybody help please?

Install fail?

Funky ... As best I could, followed install, and after completing [& rebooting] slowly paints over the UCTRONICS logo and does nothing else. I attached a photo of the UCTRONICS logo being painted over. Once the logo is all BLACK, it just sits. The Pi seems hung by the driver, and won't accept SSH connection. Does this product work, is there something wrong with installing it on raspiOS, or did I do something wrong????

Here's my sys:

pi@raspberrypi:~/UCTRONICS_HSLCD35/Raspbian $ cat /proc/cpuinfo | grep Model
Model : Raspberry Pi 3 Model B Plus Rev 1.3

pi@raspberrypi:~/UCTRONICS_HSLCD35/Raspbian $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Here's my install ... following the guide as best as I can:

pi@raspberrypi:~ $ sudo git clone https://github.com/UCTRONICS/UCTRONICS_LCD35_RPI.git
Cloning into 'UCTRONICS_LCD35_RPI'...
remote: Enumerating objects: 19851, done.
remote: Total 19851 (delta 0), reused 0 (delta 0), pack-reused 19851
Receiving objects: 100% (19851/19851), 258.62 MiB | 2.73 MiB/s, done.
Resolving deltas: 100% (12911/12911), done.
Checking out files: 100% (9801/9801), done.
pi@raspberrypi:~ $ cd UCTRONICS_LCD35_RPI
pi@raspberrypi:/UCTRONICS_LCD35_RPI $ sudo chmod 777 UCTRONICS_LCD_backup
pi@raspberrypi:
/UCTRONICS_LCD35_RPI $ sudo chmod 777 UCTRONICS_LCD35_install
pi@raspberrypi:/UCTRONICS_LCD35_RPI $ sudo chmod 777 UCTRONICS_LCD_restore
pi@raspberrypi:
/UCTRONICS_LCD35_RPI $ sudo chmod 777 UCTRONICS_LCD_hdmi
pi@raspberrypi:/UCTRONICS_LCD35_RPI $ ls
backup toggle-matchbox-keyboard.desktop UCTRONICS_LCD35_rotation_90_install
hdmi toggle-matchbox-keyboard.sh uctronics_lcd35_rpi
image Troubleshooting.md UCTRONICS_LCD_backup
install UCTRONICS_LCD35_install UCTRONICS_LCD_hdmi
panel UCTRONICS_LCD35_rotation_180_install UCTRONICS_LCD_restore
README.md UCTRONICS_LCD35_rotation_270_install Xinput-calibrator_0.7.5-1_armhf.zip
pi@raspberrypi:
/UCTRONICS_LCD35_RPI $ sudo ./UCTRONICS_LCD_backup
pi@raspberrypi:/UCTRONICS_LCD35_RPI $ sudo ./UCTRONICS_LCD35_install
Now begin install UCTRONICS_LCD35 driver...
copying the kernel.img file...
copy kernel.img OK.
copying the .dtb files...
copy the .dtb files OK.
copying the lib files...
This step need a long time, please be patient...
copy the lib files OK.
raspberrypi-kernel set on hold.
Congratulatons! Now automatic reboot your raspberryPi and it will support UCTRONICS LCD35 screen.
Connection to 192.168.2.100 closed by remote host.
Connection to 192.168.2.100 closed.
x@x-E3-1270v2:
$
UCTRONIC LCD35

Does not work with RPI 3 b+

I have several rasp pi 3 that this display works with, however it I install this on a rasp pi 3 b+, it locks up after the rainbow screen on the HDMI.

Turn off display

Is there a command to turn the display off or have the backlight at least turn off?
Would be nice if it did it automatically after X minutes of inactivity

Screen refresh rate is extremely slow

Is it possible to increase the refresh rate of the screen? I just purchased this screen off amazon and its impossible to view a video on it. There is a big swipe across the screen as the video transitions through each frame.

Cannot select resolution from raspi-config

I just installed the driver for this display as instructed.Using the Raspberry Pi Configuration GUI, I can selection the resolution installed by the driver (DMT mode 87 480x320 59Hz 15:9) along with all the typical ones set up by the Pi. However, when using the raspi-config tool at the command line, after navigating from Advanced Options to Resolution and hitting Enter on Resolution, the raspi-config tool exits, flashes the command line screen quick, then re-appears on the main screen. This makes it impossible to change resolution using raspi-config. I don't see any error messages or text to point me as to what may be going wrong. I'm thinking the addition of the new driver / resolution setting might be causing it problems somehow, but I really don't know. Any thoughts?

Connection guide to ESP32

Any guidance on connecting to a ESP32? I used ESPHOME and the touchscreen works great with the XPT2046 platform. I'm a bit confused on how to connect and configure the screen since the DC pin is required, but there is no DC pin on this board.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.