Devices
Arduino UNO Q
Use an Arduino UNO Q to stream motion data to Studio, and build a UNO Q package for Image and Audio models.
Try it in StudioOn this page
Goal
By the end of this page you will know the two ways to use an Arduino UNO Q with PetalEdge: collecting motion data over USB, and building a deployment package.
About the board
The Arduino UNO Q has two parts: a microcontroller and a small Linux computer. PetalEdge uses both:
| Part | Used for |
|---|---|
| Microcontroller | Reading the motion sensor and streaming its values to Studio over USB |
| Linux computer | Running PetalEdge packages (.pxe) |
Collect motion data over USB
In a Motion project, Studio can read the UNO Q's motion sensor straight from your browser over USB.
- The UNO Q's microcontroller needs the PetalEdge identity firmware, which lets Studio recognise the board and stream its sensor. Studio asks you to flash it when you connect the board. Ask your teacher or PetalEdge administrator for the firmware.
- Connect the UNO Q to your computer with a USB cable.
- In your Motion project, open Data labeling and start the USB connection. Choose Arduino UNO Q when Studio lists the boards.
- Record your movements. Studio receives 3 values (accelerometer) or 6 values (accelerometer and gyroscope) per sample.
The Motion pages explain recording in detail: Recording from a device.
Build a UNO Q package
- Open Deployment in the left menu.
- Choose Arduino UNO Q as the device.
- Choose a precision. See Choosing Float32 or INT8.
- Select Build Deployment Package (or Build for Arduino UNO Q).
- Select Download Latest Build to save the
.pxefile.
The package has the same parts as a Raspberry Pi package: see Raspberry Pi.
Which models can use it
- Image projects: NanoVision, Vision Pro and EdgeDetect Lite.
- Audio projects with MFCC, Spectrogram or Raw Data.
Result
You can stream motion data from the UNO Q, and you have a .pxe package for Image or Audio models. Step-by-step instructions for running the package on the board will be added once that workflow has been tested on hardware.