Data Acquisition
Recording from a device
Record motion data straight into Studio from a connected Linux device or a USB board.
Try it in StudioOn 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:
| Way | Device | Where in Studio |
|---|---|---|
| Connected device | A Linux device (for example a Raspberry Pi) running the PetalEdge device software | Data acquisition → Collect from device |
| USB | An Arduino UNO Q or a Raspberry Pi USB sensor board, plugged into your computer | Data labeling → Connect Device |
Option 1: a connected device
Connect the device once
- Open Devices and select Connect Device.
- Under Choose your device, pick your device and follow Run this on your device. Studio shows the command to install the PetalEdge device software.
- Check Before you begin: the device must be on the same network as PetalEdge and run Debian or Raspberry Pi OS.
- Wait until Live status shows your device. It then appears on the Devices page.
Record
- Open Data acquisition and find Collect from device.
- Fill in the form:
| Field | Default | Meaning |
|---|---|---|
| Device | — | The online device to record from |
| Sensor | — | The sensor on that device, for example an accelerometer |
| Category | training | Save the recording as training or testing data |
| Label | — | The movement you are about to do, e.g. walking |
| Length (ms) | 5000 | How long to record |
| Frequency (Hz) | 100 | How many readings per second |
- 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.
- Plug the board into your computer with a USB cable.
- Open Data labeling and select Connect Device.
- 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.
- Under Live sensor preview, select Start to check that the sensor values move when you move the board. Select Stop when done.
- Under Record a sample, set:
| Field | Default | Meaning |
|---|---|---|
| Gesture | — | The label for this recording (create labels in Gesture labels first) |
| Sensor | — | The sensor reported by the board |
| Length (ms) | 5000 | Recording length, up to 120000 ms (2 minutes) |
| Frequency (Hz) | 100 | Readings per second |
- 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.