Notifications
Clear all

3.5" GPIO Touchscreen+RPI 3B+and Octoscreen  

Strona 1 / 3
  RSS
x50arm
(@x50arm)
Estimable Member
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.

 

This topic was modified 5 years temu by x50arm
Opublikowany : 25/10/2019 12:36 am
Criss, gnat, jurassic73 i 3 ludzie polubili
Bunny Science
(@bunny-science)
Noble Member
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen

Thanks for sharing. Should save someone a ton of work.

Opublikowany : 25/10/2019 6:53 am
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen

Here it is up and running.

 

Opublikowany : 27/10/2019 4:38 pm
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
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.

Opublikowany : 07/11/2019 12:56 am
rmm200
(@rmm200)
Noble Member
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.

Opublikowany : 07/11/2019 1:00 am
PGe-10
(@pge-10)
Active Member
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

Opublikowany : 10/11/2019 2:58 pm
Alchemist, PhD
(@alchemist-phd)
New Member
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?

Opublikowany : 18/11/2019 9:15 pm
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen

@nicholas-t2

Sorry, I have no idea.  I’m just learning about the raspberry pi.

Opublikowany : 18/11/2019 11:51 pm
ben_r_
(@ben_r_)
Trusted Member
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!

Opublikowany : 28/11/2019 6:16 am
tjsc5f
(@tjsc5f)
New Member
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?

Opublikowany : 09/12/2019 1:22 am
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
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.

 

https://github.com/Z-Bolt/OctoScreen/issues

Opublikowany : 09/12/2019 1:40 am
Flyer
(@flyer)
Active Member
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Posted by: @allen-m2

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!

Opublikowany : 15/12/2019 11:06 pm
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
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:

General- Name: MK3s MMU2s, Identifier: _default, Model: Prusa
 
Print Bed & Build Volume- Form Factor: Rectangular, Origin: Lower Left, Heated Bed: Checked, XYZ: All at 200mm
 
Axis- All default
 
Hotend and Extruder- Nozzle Diameter: .4mm, Number of Extruders: 5 (I have MMU), Shared Nozzle: Checked (MMU Again).
 
 
 
Opublikowany : 22/12/2019 3:56 pm
Flyer polubić
Flyer
(@flyer)
Active Member
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen

Thank you @allen-m2!

Opublikowany : 22/12/2019 4:48 pm
pingu
(@pingu)
Estimable Member
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?

 

Opublikowany : 24/12/2019 10:29 am
Flyer
(@flyer)
Active Member
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen
Posted by: @pingu

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?

Opublikowany : 24/12/2019 11:23 am
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
RE: 3.5" GPIO Touchscreen+RPI 3B+and Octoscreen

@pingu

USB cable 

Opublikowany : 24/12/2019 2:31 pm
TechTiger
(@techtiger)
Eminent Member
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?

Opublikowany : 25/12/2019 5:56 pm
x50arm
(@x50arm)
Estimable Member
Topic starter answered:
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.

Opublikowany : 26/12/2019 2:59 am
pingu
(@pingu)
Estimable Member
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?

 

Opublikowany : 27/12/2019 10:03 pm
Strona 1 / 3
Share: