# Public dataset

> The full history of one Asense sensor, ASENSE00000005, as Parquet files. Use it to try your own code on real records before your sensors are installed.

> **Coming soon:** The dataset is not available for download yet. This page describes what it will hold.

## What it is

The dataset holds every record the Asense cloud stored for one device, ASENSE00000005, from August 2025 to October 2026. This sensor stands still: it was never fixed to a moving structure. Its vibration records are therefore mostly the sensor's own noise, while its tilt, temperature, supply voltage and connection records are real.

That makes it useful in three ways. You can measure the noise floor of the accelerometer and the gyroscope. You can test processing code, such as paging, decoding, FFT or modal analysis, on real packets. And you can study how the tilt and temperature of a sensor at rest drift over a year. It is also the device used in the examples across these docs.

## Tables

There is one folder of Parquet files per table, sorted by time. The tables are the same as in [the data model](https://asense.semitronica.pt/docs/data-model/).

| Table | Records | From (UTC) | To (UTC) |
| --- | ---: | --- | --- |
| `acc` | 98,811 | 2025-11-23 | 2026-10-28 |
| `gyr` | 98,779 | 2025-11-23 | 2026-10-28 |
| `ain` | 14,063 | 2025-11-23 | 2025-12-16 |
| `fft` | 63 | 2025-11-23 | 2025-12-17 |
| `data` | 5,471 | 2025-08-29 | 2026-10-28 |
| `connected` | 2,818 | 2026-04-10 | 2026-09-25 |

There are 220,005 records in all. The `env` table has no records for this sensor. A few packets were sent before the device clock was set, so their `time` falls in January 1970. They are kept as stored: filter on `time > 1.6e12` to drop them.

## Columns

Every table shares one set of columns, and columns a table does not use are empty. Values are stored as the device sends them, so they are raw counts rather than physical units.

| Column | Tables | Meaning |
| --- | --- | --- |
| `id` | all | Device ID, always `ASENSE00000005` |
| `time` | all | Unix time in milliseconds. For `acc`, `gyr` and `ain` it is the time of the last sample in the packet |
| `seq` | acc, gyr, ain | Packet number within one recording |
| `odr`, `scale` | acc, gyr, ain, fft, data | Output data rate in Hz (50 here) and range code |
| `axyz` | acc | Raw accelerometer counts, x, y, z in turn, 64 samples per packet |
| `gxyz` | gyr | Raw gyroscope counts, x, y, z in turn |
| `ain` | ain | Raw analog input values, a and b in turn |
| `fft`, `axis` | fft | Raw spectrum, 201 bins, for one axis (0 = x, 1 = y, 2 = z) |
| `tamb` | acc, ain, data | Temperature in °C |
| `theta`, `phi` | data | Tilt angles, raw |
| `aavg*`, `amin*`, `amax*` | data | Hourly mean, minimum and maximum acceleration per axis, raw |
| `vdd` | data | Supply voltage in mV |

## From raw values to units

The same formulas the API uses apply here.

- Acceleration in g is `count × scale × 2^-15`, with `scale = 2` for the ±2 g range. The hourly `aavg`, `amin` and `amax` use `× scale × 2^-24`.
- Angular rate in °/s is `count × 2000 / 2^7 × 2^-15` for the `scale = 15` used here.
- Inside a packet, the last sample is at `time`, the one before it `1000 / odr` ms earlier, and so on.
- Tilt is `theta` and `phi` × 2^-24.

[Timing and accuracy](https://asense.semitronica.pt/docs/timing-and-accuracy/) explains sample times in more depth.

## Reading it

DuckDB and Polars both read a folder of Parquet files directly.

```python
import duckdb

duckdb.sql("""
    SELECT date_trunc('day', to_timestamp(time / 1000)) AS day,
           avg(tamb) AS temperature_c
    FROM 'data/data/*.parquet'
    WHERE time > 1.6e12
    GROUP BY day ORDER BY day
""").show()
```

```python
import polars as pl

acc = pl.scan_parquet("data/acc/*.parquet").filter(pl.col("time") > 1.6e12).collect()
```

Source page: https://asense.semitronica.pt/docs/dataset/
