Hardware Setup

Before starting, set up your Pi and BrainCraft HAT. Follow this primary guide for the BrainCraft to configure these services:

  • Blinka
  • Fan Service
  • Display Module

Installing Lobe SDK

Connect to your Pi using SSH and run the following script to install the Lobe SDK:

cd ~
wget https://raw.githubusercontent.com/lobe/lobe-python/master/scripts/lobe-rpi-install.sh
sudo bash lobe-rpi-install.sh

Additional CircuitPython Libraries

You will need a few more CircuitPython libraries which can be installed with this command:

pip3 install adafruit-circuitpython-motor adafruit-circuitpython-dotstar

Copy the Model onto the Pi

You will want to establish an FTP or SCP connection to transfer the file onto your Pi. If you're not sure how to do that, you can check out this Microsoft Lobe guide. On the Pi, you'll want to make sure a folder called model exists in your home directory, otherwise, you'll want to create it:

cd ~
mkdir model

Copy saved_model.tflite and signature.json from your exported Lobe model to the model directory on the Pi.

We'll cover uploading the code to the Pi in the Code Walkthrough section.

This guide was first published on Jul 13, 2021. It was last updated on Apr 11, 2024.

This page (Raspberry Pi Setup) was last updated on Mar 08, 2024.

Text editor powered by tinymce.