3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
I just spent hours figuring out how to configure a 3.5" touchscreen to work with Octoscreen. I could not find one source that had all of the instructions to get it up and running so a made a step by step and thought I would share it here for others. The touchscreen I used was this one https://www.amazon.com/gp/product/B07N38B86S/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
**Install Octopi
Flash image to your storage media using "balenaEtcher".
Using notepad++ edit the "octopi-wpa-supplicant" file for your wifi settings.
Install storage media and boot up Raspberry Pi
Get IP address of Raspberry Pi and connect to it using "Putty"
**Install Octoscreen
Dependencies install:
Run:
sudo apt update
sudo apt full-upgrade
sudo apt-get install git build-essential xorg-dev xutils-dev x11proto-dri2-dev
sudo apt-get install libltdl-dev libtool automake libdrm-dev
sudo apt-get install libgtk-3-0 xserver-xorg xinit x11-xserver-utils
git clone https://github.com/ssvb/xf86-video-fbturbo.git
cd xf86-video-fbturbo
autoreconf -vi
./configure --prefix=/usr
make
sudo make install
sudo cp xorg.conf /etc/X11/xorg.conf
Octoscreen install:
Follow install instructions on Octoscreen Releases Page
***Edit Octoscreen Resolution
Run:
sudo nano /etc/octoscreen/config
Edit OCTOSCREEN RESOLUTION as below:
OCTOSCREEN_RESOLUTION=800x533
ctrl-o
enter
ctrl-x
**Install Touchscreen driver:
Run:
git clone https://github.com/Elecrow-keen/Elecrow-LCD35.git
cd Elecrow-LCD35
sudo ./Elecrow-LCD35
sudo nano /etc/X11/xorg.conf.d/99-calibration.conf
Go to the bottom of the text and hit "enter" to create a blank line.
After that line type in the following lines:
Section “Device”
Identifier “touchscreen”
Driver “fbdev”
Option “fbdev” “/dev/fb0”
EndSection
ctrl-o
enter
ctrl-x
**Install fbcp to "clone" the HDMI output:
Run:
sudo apt-get -y install cmake
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp
mkdir build
cd build
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp
**Make fbcp start on every boot:
Run:
sudo nano /etc/rc.local
-> Then, go at the end of file (but before the exit 0 ) and add a line where to find fbcp :
/usr/local/bin/fbcp &
ctrl-o
enter
ctrl-x
**Activate and setup HDMI:
Run:
sudo nano /boot/config.txt
Uncomment the following and change resolution
framebuffer_width=800
framebuffer_height=533
add line
hdmi_cvt 800 533 60 6 0 0 0
ctrl-o
enter
ctrl-x
sudo reboot
Upon reboot touchscreen should be up and running.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Thanks for sharing. Should save someone a ton of work.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Just a quick update. I had a black border on the screen where it was not using all of the available display. You can see it in the pic above. I went in and changed the resolution settings from 800x533 to 800x600 and it looks much better.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Would be great if we had a place for tips like this.
Maybe a Prusa Wiki?
Hate to see it just age off to oblivion.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
You rock, thank you for sharing this with us less talented but very 3D interested .......
Since I did not get the English language with the mother's milk, it can be difficult to Google all the right information so you help me make this configuration work perfectly
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Hey allen-m2:
I appreciate you having this guide made up! I actually have the same touchscreen as you -- by chance -- and when I follow exactly, OctoScreen does not start up because it reports back that no screen is installed. Any thoughts on how to fix it?
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
@nicholas-t2
Sorry, I have no idea. I’m just learning about the raspberry pi.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Well done! Thanks for putting the time in!
If at first you don't succeed, redefine success!
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Any idea how to add a script that will turn off the backlight after a set amount of time, then turn it back on when you touch the screen?
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
@tjsc5f
You might go on the Github page and create a new request, I have no idea myself.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
I just spent hours figuring out how to configure a 3.5"...
Hello! Yours is a MK3S?
What parameters use for the OctoPrint printer profile? (General, Print bed & build volume, Axes. Hotend & extruder, etc)
Thanks!
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
@flyer
I don't have mine set up for the bed size correctly, but here are my settings:
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Thank you @allen-m2!
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
How do you connect the prusa when the gpio headers needed are blocked by the screen?
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
How do you connect the prusa when the gpio headers needed are blocked by the screen?
I not used the RPi Zero W because here says that is not recommended: https://octoprint.org/download/
I used a RPi connected via de USB port.
For me, the advantage of use this was sent directly the .gcode to the printer, but this was terrible slow and almost all times fail on my case and I decided not use anymore.
Using RPi Zero W get better experiences in file transfer speed?
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
@pingu
USB cable
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
ran through everything and screen displays the text as the pi boots but once it finishes it goes to a black screen (with backlight on) and flashes text on the screen every few seconds. I was able to grab a video of it to see what its displaying and its showing a pi login line at the bottom. Do I need to connect a keyboard/mouse and maybe an external display to this to log in the first time? Problem is text doesn't stay on the screen. Any ideas?
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
@eric-b52
Sounds like Octoscreen is not starting up properly. I did everything through Putty and my home network, no hardware connected to the pi. Did you get Octopi up and running on the network? Octoprint should be up and running on your network before you do the Octoscreen install. You might try re-installing the touchscreen driver.
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
ok i runed rpi3 b+ with the gpio headers connected via jumpwires to the gpio of the prusa mk3s. now im trying to ad this incredible nice touchscreen mod.
well, i dont get it how to connect the rpi3 with usb connection. i can choose in the octoprint web page either
- /dev/ttyACM0
- /dev/ttyAMA0
but none of them will connect sucesfully. what am i doing wrong?