Skip to content
PetalEdgeDocs

Devices

Raspberry Pi

Connect a Raspberry Pi to Studio, and build a Raspberry Pi package for your model.

Try it in Studio
On this page

Goal

By the end of this page you will know how to connect a Raspberry Pi to PetalEdge Studio and how to build a Raspberry Pi package.

What you need

  • A Raspberry Pi with Raspberry Pi OS (Debian).
  • A network connection from the Raspberry Pi to your PetalEdge server. Before you begin on the connect page explains what your setup needs.

Connect the Raspberry Pi to Studio

A connected device can collect data for your project.

  1. Open Devices in the left menu and select Connect Device.
  2. Read Before you begin.
  3. Under Choose your device, choose Debian / Raspberry Pi OS.
  4. Copy the command under Run this on your device and run it in a terminal on the Raspberry Pi. It installs the PetalEdge device client.
  5. Answer the setup wizard's questions.
  6. Studio shows Waiting for your device... until the Raspberry Pi connects, then shows its Live status.

Build a Raspberry Pi package

  1. Open Deployment in the left menu.
  2. Choose Raspberry Pi as the device.
  3. Choose a precision. See Choosing Float32 or INT8.
  4. Select Build Deployment Package (or Build for Raspberry Pi).
  5. Select Download Latest Build to save the .pxe file.

What is inside a .pxe package

PartWhat it is
runner.pyThe program that runs your processing block and model on the device
model.tfliteYour trained model
manifest.jsonModel details, checked when the package is built
labels.txtYour label names
dsp_config.jsonYour processing block settings
postprocess_config.jsonSettings used after the model runs

Unlike a .pe package, a .pxe package runs the processing block on the device. It supports these processing blocks: Image, Raw Data, Spectral Analysis, Flatten, MFCC and Spectrogram.

Which models can use it

  • Image projects: NanoVision, Vision Pro and EdgeDetect Lite. FaceRec-Edge builds its own ONNX package, which Studio describes for Raspberry Pi 4 and 5.
  • Motion projects.
  • Audio projects with MFCC, Spectrogram or Raw Data.

Result

You have a .pxe package for your Raspberry Pi. Step-by-step instructions for running it on the board will be added once that workflow has been tested on hardware.