Setting up Touch UI to use a 5″ HDMI display with octoprint. The screen I am using connects to the pi via the gpio and HDMI connector. Like this one: http://www.raspberrypiwiki.com/index.php/5_inch_HDMI_GPIO_Touch_Screen
First you need to set up the pi to display on the smaller screen by editing the /boot/config.txt file on the pi. To do this I followed the adafruit guide found here.
1. Sudo nano /boot/config.txt
2. Add these line to the bottom or uncomment and edit them in the default text
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt=800 480 60 6 0 0 0
dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,keep_vref_on=0,swapxy=0,pmax=255,xohms=150,xmin=200,xmax=3900,ymin=200,ymax=3900
dtoverlay=w1-gpio-pullup,gpiopin=4,extpullup=1
3. Save by CTRL+X, Y, ENTER
Now we need to set up the touch screen input
- Sudo apt-get update
- Sudo apt-get install xinput-calibrator
Now when you boot the pi, it will ask you to sign into octopi. But we don’t want to have to log in each time we turn on octoprint.
To get around this we need to have the pi boot to a browser and open the octoprint interface.
To do this I followed the guide by BillyBlaze starting with number 3.
The CTRL+X, Y, ENTER
By now the pi should be setup to display on a smaller screen, touch screen setup to work, and the pi to autoboot the chromium browser to the octoprint interface.
To make operating the octoprint interface we need to install the “Touch UI” plugin.
And that’s it. Now we need to print a nice case for the entire unit to mount to the printer. That is for the next post.