Cheatsheet — Sensor Data & AI Prep (M05)
This content is not available in your language yet.
Course 1 · Module 5
Lesson · Lab · ← Table of Contents
Driver calls
หัวข้อที่มีชื่อว่า “Driver calls”sensor_sht40_startup(); sensor_sht40_read(&s);sensor_bmi270_read(&imu); /* or sensor_bmi270_try_read */sensor_dps368_read(&baro);sensor_bmm350_read(&mag);sensor_*_is_ready();| Sample | Fields |
|---|---|
sht40_sample_t |
temperature, humidity |
bmi270_sample_t |
acc_*, gyr_*, temperature, elapsed_ms |
dps368_sample_t |
pressure, temperature |
bmm350_sample_t |
mag_*, temperature |
I²C shared bus: cm55_i2c_manager_i2c_lock / unlock
BMM350: I3C (not I2C manager)
Sampling task
หัวข้อที่มีชื่อว่า “Sampling task”vTaskDelayUntil(&last, pdMS_TO_TICKS(period_ms));No sensor_*_set_rate_hz in current drivers — period = task period or Bitstream SENSOR_CFG intervals.
Lab-local conditioning
หัวข้อที่มีชื่อว่า “Lab-local conditioning”ema = alpha * x + (1 - alpha) * ema; /* filter */y = 2 * (x - min) / (max - min) - 1; /* normalize-ish */imu_window_push(&w, &sample); /* AI window */Fusion (orientation)
หัวข้อที่มีชื่อว่า “Fusion (orientation)”cm55_imu_fusion_bridge_push_raw_components(ax, ay, az, gx, gy, gz, elapsed_ms);cm55_imu_fusion_bridge_get_latest_result(&f); /* qw..qz, pitch, roll, orientation */Host / twin
หัวข้อที่มีชื่อว่า “Host / twin”| Tool | Link |
|---|---|
| Bitstream Studio | Marketplace |
| Hackathon demos | TESAIoT_Hackathon |
| Examples | dev.tesaiot.dev |
SENSOR_CFG ideas: enabled, sampling_interval_ms, publish_interval_ms, publish_mode, mask
Edge AI scope (this module)
หัวข้อที่มีชื่อว่า “Edge AI scope (this module)”| Do in M05 | Not a current SDK lab API |
|---|---|
| Stable samples + windows | Ethos / NNLite run_model |
| Fusion orientation | DEEPCRAFT training in-firmware |
| Events from thresholds | Full gesture classifier product |
Lab API log
หัวข้อที่มีชื่อว่า “Lab API log”| งาน | API / เทคนิคที่ใช้ |
|---|---|
| Sensor A read | |
| Sensor B read | |
| Task period | |
| Filter / normalize | |
| Window + feature | |
| Fusion / host / event |
TESA Open Knowledge · © 2026 สมาคมสมองกลฝังตัวไทย (TESA) · CC BY-NC 4.0
Content is licensed CC BY-NC 4.0. Reuse it non-commercially and credit the Thai Embedded Systems Association (TESA) every time. · How to cite TESA