Showing posts with label RaspberryPi. Show all posts
Showing posts with label RaspberryPi. Show all posts

Sunday, December 27, 2020

Building an OctoPrint Server

 This is a followup to the 2018 post which documented the build of a RPi3 OctoPrint server for a Lulzbot Mini.  This post documents a new 2020 build to upgrade the device.

Hardware:

Software:

The OctoPrint server was downloaded from here.  Upon installing 0.17.0 and booting, I was greeted with a set of 4 long blinks followed by 4 short blinks on the system LED.  Its a bit like decoding Morris Code, with the blink patterns documented here. In my case, I was receiving an "unsupported board" message.  Luckily the following disclaimer appears on the download page, and I was glad it was documented (saving me the time of tracking down the problem):

There have been some reports regarding current revisions of the Raspberry Pi 4 1/2/4 GB refusing to boot with the stable OctoPi 0.17.0 image. If that affects you, please try the OctoPi 0.18.0 release candidate.

The problem was resolved by downloading and installing the 32 bit 0.18.0 release candidate. 

Setup:

Directions on the download page were followed to change the Pi's password, hostname, network configuration, and time-zone.  Rather than wasting time configuring the Pi with a static IP address, I instead chose the route of hacking an entry into the hosts file of my laptop (%WINDIR%\system32\drivers\etc).  I installed one additional plugin, a resource monitor for OctoPrint:


which provides a "Windows Process Manager-like" display for the RPi:

After initial configuration, everything was working as expected except for the connection from my slicing software (Cura for the Lulzbot Mini).  I needed to update the OctoPrint configuration to account for the new IP address as well as API Key.

In OctoPrint:




In Cura:


It appears there is a new option for creating a "non-global" access key, but that will be an enhancement for another day...

Sunday, April 15, 2018

Building a Lulzbot Mini OctoPrint Server

There are numerous sources online that document the process of building/setting-up an OctoPrint Server, so I will not duplicate that here.  This will instead just document a number of links and settings specific to my rig using a Lulzbot Mini.  Note that for my use, I am not slicing on the Octoprint Server;  I continue to use Cura locally for slicing, and simply print to Octoprint vice printing directly to the device.  This limits the amount of configuration required to use Octoprint.

Hardware Components:

Software Components:



OctoPrint OS Distro for Raspberry Pi

Lulzbot Mini Settings



The following images document the OctoPrint profile in use for the Lulzbot Mini:









Wednesday, January 18, 2017

Raspberry Pi 3 xdrp

The following commands will install some basic packages to allow remote logins and file sharing (thanks to source):

sudo apt install -y tightvncserver
sudo apt install -y xrdp
sudo apt install -y samba

Connect via RDP, login, and enjoy the headless pi...


Monday, January 16, 2017

Raspberry Pi 3 Setup 101

In order to support a number of upcoming projects, I've finally decided to take a step outside of the old/comfortable Arduino space, and do some work with the Pi.  The most immediate use will be to get OctoPi up and running on our new Lulzbot Mini (more on that on a future post).  But before I can do that, I need to get a Pi workspace up and running.

There are a bajillion setup guides for the Pi 3, so I will not attempt to recreate one here.  Below are my notes on the basics, so that when I forget all of this and need to do it again, I only have one place to look for my answers.

HARDWARE:


A quick trip to Amazon has everything you need: board, case/power, memory card:

Raspberry Pi 3 Model B
Smraza Starter Kit
SanDisk 32GB MicroSD card

The kit went together easy, but the screws for the case were awfully small - guess I'm showing my age, but I decided to pull out the Donegan Optivisor rather than accidentally scratch the board during assembly...



OS SETUP:


After the board was assembled, it was time for prepping the SD card.  Instructions were found at the Raspberry Pi site:

Downloading and installing the Raspberry Pi Software

I skipped the NOOBS option, and downloaded Raspbian directly, and burned it to the MicroSD card using etcher.io.  All worked as expected, and the Pi booted up without issue.

Basic Pi Configuration:


After booting for the first time, some basic house-cleaning was performed.

From a terminal window:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get clean

From the Raspberry Pi configuration:


Localization:
Changed everything to US/English options, and the appropriate timezone.

System:
Changed the hostname and password, as well as choosing to expand the filesystem.

Finally the Pi was rebooted and WiFi connected via the toolbar app.  After a quick browser check to ensure everything was properly connected to the internet, victory was declared.

In a future post I'll list my notes on installation of xrdp, and getting the Pi to run in a headless manner (already tired of switching my cables, would prefer to remote into the device)...