Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration
 
Notifications
Clear all

Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration  

  RSS
John M
(@john-m)
New Member
Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration

I thought I would make a quick write up on my experience with integrating a raspberry pi with touch screen into a new panel for my Prusa MK3S.  I had no experience with 3D printing before Xmas just passed.  I have read a lot of stuff and watched load of videos about anything I get stuck on.  So far, I have managed to do most things on my own without asking any questions but I did struggle for a few hours to get TouchUI to load on the pi but I got there in the end.

 

Parts Required

 

I read loads of guides on how to set up the touchscreen, install drivers etc and none worked until I found a few websites and used parts of each tutorial to get mine working.  NOTE: this may or may not work on ALL touch screens but it should work if you use the same touch screen as I posted about.

 

Assemble the parts

Follow the guide on thingyverse on how to assemble the pi and the printed parts.  You can either assemble everything including the pi, touch screen etc now or you can put the touch screen onto the pi and make sure it all works before installing everything.  I chose to program the pi before putting everything together.

 

Make sure the touch screen in placed onto the GPIO pins and you have connected the power supply and switched it on.  I also connected my pi to my tv using an HDMI cable to watch what was happening while I got the touch screen working.

 

Setting up OctoPi

Please follow these steps after downloading:

  1. Unzip the image and install the contained .img file to an SD card using EtcherDo not at any point format the SD from your Operating System, even if prompted to do so - that will break it and you’ll have to start over. Just use Etcher to flash the .img file, that is enough!
  2. Configure your WiFi connection by editing octopi-wpa-supplicant.txt on the root of the flashed card when using it like a thumb drive. Important: Do not use WordPad (Windows) or TextEdit (MacOS X) for this, those editors are known to mangle the file, making configuration fail. Use something like Notepad++, Atom or VSCode instead or at the very least heed the warnings in the file.
    1. Note: This changed with OctoPi 0.15.0, earlier versions had you edit octopi-network.txt which has a different format. This old method is no longer supported and the contents of this file will be ignored. Just use octopi-wpa-supplicant.txt.
    2. Please also refer take a look at the full WiFi setup guide in the FAQ that also includes Troubleshooting tips.
  3. Boot the Pi from the card.
  4. Log into your Pi via SSH (it is located at octopi.local if your computer supports bonjour or the IP address assigned by your router), default username is “pi”, default password is “raspberry”. Run sudo raspi-config. Once that is open:
    1. Change the password via “Change User Password”
    2. Optionally: Change the configured timezone via “Localization Options” > “Timezone”.
    3. Optionally: Change the hostname via “Network Options” > “Hostname”. Your OctoPi instance will then no longer be reachable under octopi.local but rather the hostname you chose postfixed with .local, so keep that in mind.
  5. You can navigate in the menus using the arrow keys and Enter. To switch to selecting the buttons at the bottom use Tab.
  6. You do not need to expand the filesystem, current versions of OctoPi do this automatically.
  7. You also do not need to manually enable the RaspiCam if you have one, that is already taken care of on the image as well.
  8. Access OctoPrint through http://octopi.local/ or http://<your pi's ip address> . https is available too, with a self-signed certificate (which means your browser will warn you about it being invalid).
  9. You can setup OctoPrint at this point using your computers browser as per the instructions in step 5 above.  Install the TouchUI plugin and restart the pi.

Please also refer to OctoPi’s README, especially the “How to use it” section.

 

Installing "Boot to Browser"

Get the TouchUI boot files + install scripts by running the following command:

git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/

Run the install helper:

sudo ~/TouchUI-autostart/helpers/install
Be sure you enter the username for the profile you created during the OctoPrint install/setup.  This will allow the "boot to browser" script to login to TouchUI.

 

Installing the drivers

As you are already connected to the pi with your terminal/putty program, run the following command to download the driver:

git clone  https://github.com/Elecrow-keen/Elecrow-LCD35.git 

Now install the driver with the following commands:

cd Elecrow-LCD35
sudo ./Elecrow-LCD35

Wait A Few Minutes.  It can take a while to load & install.  After the install is done, it will reboot.   If it doesn’t enter sudo reboot.

Log back into your Pi via Putty. Run sudo apt-get update for good measure.  After the restart, if required, your touch screen should now load up with the "TouchUI" loading screen and should now be working.

 

How to Disable the TouchUI Screensaver

The TouchUI program has a timeout/sleep mode.  To disable this, run the following commands:

cd ~/TouchUI-autostart/
git pull
sudo service touchui restart
This topic was modified 4 years ago by John M
Posted : 04/01/2020 9:53 pm
Yukay, benattar and liked
Anas
 Anas
(@anas)
New Member
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration

Hey John,

can you tell me what you did to raise the printer?

The thingeverse cover description say that you need a clearance of 25mm between frame and ground.

If you can post pictures or link the new feet you printed it would be great.

Thanks

Posted : 13/05/2020 12:08 pm
John M
(@john-m)
New Member
Topic starter answered:
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration
Posted by: @anastasios-m

Hey John,

can you tell me what you did to raise the printer?

The thingeverse cover description say that you need a clearance of 25mm between frame and ground.

If you can post pictures or link the new feet you printed it would be great.

Thanks

Hi,

I have a lack enclosure so I put a 400x400mm slab under the printer to stop the vibrations. This gave me plenty of clearance for the cover/panel. I just moved the printer closer to the front of the slab so the panel was clear. 

Posted : 13/05/2020 12:16 pm
MaddoxHU
(@maddoxhu)
New Member
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration
Posted by: @john_mackinnon

I thought I would make a quick write up on my experience with integrating a raspberry pi with touch screen into a new panel for my Prusa MK3S.  I had no experience with 3D printing before Xmas just passed.  I have read a lot of stuff and watched load of videos about anything I get stuck on.  So far, I have managed to do most things on my own without asking any questions but I did struggle for a few hours to get TouchUI to load on the pi but I got there in the end.

 

Parts Required

 

I read loads of guides on how to set up the touchscreen, install drivers etc and none worked until I found a few websites and used parts of each tutorial to get mine working.  NOTE: this may or may not work on ALL touch screens but it should work if you use the same touch screen as I posted about.

 

Assemble the parts

Follow the guide on thingyverse on how to assemble the pi and the printed parts.  You can either assemble everything including the pi, touch screen etc now or you can put the touch screen onto the pi and make sure it all works before installing everything.  I chose to program the pi before putting everything together.

 

Make sure the touch screen in placed onto the GPIO pins and you have connected the power supply and switched it on.  I also connected my pi to my tv using an HDMI cable to watch what was happening while I got the touch screen working.

 

Setting up OctoPi

Please follow these steps after downloading:

  1. Unzip the image and install the contained .img file to an SD card using EtcherDo not at any point format the SD from your Operating System, even if prompted to do so - that will break it and you’ll have to start over. Just use Etcher to flash the .img file, that is enough!
  2. Configure your WiFi connection by editing octopi-wpa-supplicant.txt on the root of the flashed card when using it like a thumb drive. Important: Do not use WordPad (Windows) or TextEdit (MacOS X) for this, those editors are known to mangle the file, making configuration fail. Use something like Notepad++, Atom or VSCode instead or at the very least heed the warnings in the file.
    1. Note: This changed with OctoPi 0.15.0, earlier versions had you edit octopi-network.txt which has a different format. This old method is no longer supported and the contents of this file will be ignored. Just use octopi-wpa-supplicant.txt.
    2. Please also refer take a look at the full WiFi setup guide in the FAQ that also includes Troubleshooting tips.
  3. Boot the Pi from the card.
  4. Log into your Pi via SSH (it is located at octopi.local if your computer supports bonjour or the IP address assigned by your router), default username is “pi”, default password is “raspberry”. Run sudo raspi-config. Once that is open:
    1. Change the password via “Change User Password”
    2. Optionally: Change the configured timezone via “Localization Options” > “Timezone”.
    3. Optionally: Change the hostname via “Network Options” > “Hostname”. Your OctoPi instance will then no longer be reachable under octopi.local but rather the hostname you chose postfixed with .local, so keep that in mind.
  5. You can navigate in the menus using the arrow keys and Enter. To switch to selecting the buttons at the bottom use Tab.
  6. You do not need to expand the filesystem, current versions of OctoPi do this automatically.
  7. You also do not need to manually enable the RaspiCam if you have one, that is already taken care of on the image as well.
  8. Access OctoPrint through http://octopi.local/ or http://<your pi's ip address> . https is available too, with a self-signed certificate (which means your browser will warn you about it being invalid).
  9. You can setup OctoPrint at this point using your computers browser as per the instructions in step 5 above.  Install the TouchUI plugin and restart the pi.

Please also refer to OctoPi’s README, especially the “How to use it” section.

 

Installing "Boot to Browser"

Get the TouchUI boot files + install scripts by running the following command:

git clone https://github.com/BillyBlaze/OctoPrint-TouchUI-autostart.git ~/TouchUI-autostart/

Run the install helper:

sudo ~/TouchUI-autostart/helpers/install
Be sure you enter the username for the profile you created during the OctoPrint install/setup.  This will allow the "boot to browser" script to login to TouchUI.

 

Installing the drivers

As you are already connected to the pi with your terminal/putty program, run the following command to download the driver:

git clone  https://github.com/Elecrow-keen/Elecrow-LCD35.git 

Now install the driver with the following commands:

cd Elecrow-LCD35
sudo ./Elecrow-LCD35

Wait A Few Minutes.  It can take a while to load & install.  After the install is done, it will reboot.   If it doesn’t enter sudo reboot.

Log back into your Pi via Putty. Run sudo apt-get update for good measure.  After the restart, if required, your touch screen should now load up with the "TouchUI" loading screen and should now be working.

 

How to Disable the TouchUI Screensaver

The TouchUI program has a timeout/sleep mode.  To disable this, run the following commands:

cd ~/TouchUI-autostart/
git pull
sudo service touchui restart

Hi. Can you start print from the printer's sd card with the TouchU touchscreen? Or it can only start print from the raspberry's sd?

Posted : 04/12/2020 8:46 pm
Antique Novice
(@antique-novice)
New Member
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration

Hi,

have the the pi3b+ and the ELEGOO 3.5 Inch TFT LCD 480x320 Screen For Raspberry Pi.

i've run through the whole process twice now and each time, right at the end, after the

cd Elecrow-LCD35
sudo ./Elecrow-LCD35

it says everything was succesfully done and it asks
Reboot to apply changes? (y/n): and i say "y"
and then i get the error messge "remote side unexpectedly closed network connection"
and the screen is still solid white and i am no further along!

can you help at all?
Posted : 13/03/2021 12:45 pm
rianocerous
(@rianocerous)
New Member
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration

None of the original links seem to be working for me.  Can someone link me to an example of the buck connectors?  I'd like to power the pi off the powersupply if doable.  

Thanks

Posted : 18/03/2021 2:50 pm
John M
(@john-m)
New Member
Topic starter answered:
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration
Posted by: @rianocerous

None of the original links seem to be working for me.  Can someone link me to an example of the buck connectors?  I'd like to power the pi off the powersupply if doable.  

Thanks

https://amzn.to/3c4CzlD

Posted : 18/03/2021 10:56 pm
Goran M.
(@goran-m)
Active Member
jhv

well it looks like youre installing the drivers for ellecrow and you have elegoo. you need to install the drivers for your particular screen.

Posted by: @antique-novice

Hi,

have the the pi3b+ and the ELEGOO 3.5 Inch TFT LCD 480x320 Screen For Raspberry Pi.

i've run through the whole process twice now and each time, right at the end, after the

cd Elecrow-LCD35
sudo ./Elecrow-LCD35

it says everything was succesfully done and it asks
Reboot to apply changes? (y/n): and i say "y"
and then i get the error messge "remote side unexpectedly closed network connection"
and the screen is still solid white and i am no further along!

can you help at all?

 

Posted : 30/07/2021 7:25 pm
DarkGreenBlade
(@darkgreenblade)
New Member
RE: Octoprint, Raspberry Pi 3B+ & Touch Screen Main Panel Integration

I have an Elecrow screen that has been working fine until I fresh installed the latest version of Octopi.

Everything is working, but the screensaver now remains active, despite following the previous steps to setup.

I've also edited the /TouchUI-autostart/touchui.default file and changed DISABLE_SCREENSAVER=false to DISABLE_SCREENSAVER=true

Restarted the service, and the screensaver is still active.

Posted : 17/03/2022 6:00 pm
Share: