Skip to content

Data Acquisition

Recording from a device

Record motion data straight into Studio from a connected Linux device or a USB board.

Try it in Studio
On this page

Goal

By the end of this page you will have recorded labelled movements directly into your project.

Studio offers two ways to record:

WayDeviceWhere in Studio
Connected deviceA Linux device (for example a Raspberry Pi) running the PetalEdge device softwareData acquisition → Collect from device
USBAn Arduino UNO Q or a Raspberry Pi USB sensor board, plugged into your computerData labeling → Connect Device

Option 1: a connected device

Connect the device once

  1. Open Devices and select Connect Device.
  2. Under Choose your device, pick your device and follow Run this on your device. Studio shows the command to install the PetalEdge device software.
  3. Check Before you begin: the device must be on the same network as PetalEdge and run Debian or Raspberry Pi OS.
  4. Wait until Live status shows your device. It then appears on the Devices page.

Record

  1. Open Data acquisition and find Collect from device.
  2. Fill in the form:
FieldDefaultMeaning
Device—The online device to record from
Sensor—The sensor on that device, for example an accelerometer
CategorytrainingSave the recording as training or testing data
Label—The movement you are about to do, e.g. walking
Length (ms)5000How long to record
Frequency (Hz)100How many readings per second
  1. Select Start sampling and do the movement until recording stops.

Option 2: a USB board (Web Serial)

This uses your browser's Web Serial support, so use Chrome or Edge.

  1. Plug the board into your computer with a USB cable.
  2. Open Data labeling and select Connect Device.
  3. In Connect a device, choose Select a device… and pick your board in the browser's list. Studio reads the board's details automatically and shows Device connected.
  4. Under Live sensor preview, select Start to check that the sensor values move when you move the board. Select Stop when done.
  5. Under Record a sample, set:
FieldDefaultMeaning
Gesture—The label for this recording (create labels in Gesture labels first)
Sensor—The sensor reported by the board
Length (ms)5000Recording length, up to 120000 ms (2 minutes)
Frequency (Hz)100Readings per second
  1. Choose the Training or Testing tab, then select Record into Training (or Record into Testing).

Result

Each recording appears in Recording sessions on the Data labeling page with its label and split.

What next?