Hardware Interfacing Workshops
Part II: Sensor Hardware Integration
เอกสารเตรียมความพร้อมสำหรับนิสิต
สารบัญ
1. ภาพรวม Part II
Part I vs Part II
รายการ
Part I (Ex1-6)
Part II (Ex7-9)
โครงสร้างไฟล์
Sensor Hardware บนบอร์ด
Sensor
Chip
Interface
ข้อมูล
2. aic-eec Sensor API
2.1 ADC API
2.2 IMU API (BMI270)
API Summary
Function
หน้าที่
Return
2.3 Tilt Analysis API (NEW)
Function
หน้าที่
Return
WHY: ทำไมใช้ aic-eec API?
3. ตัวอย่างที่ 7: Real ADC Visualization
เป้าหมาย
Comparison: Part I vs Part II
โค้ดหลัก
Layout
4. ตัวอย่างที่ 8: Real IMU Visualization
เป้าหมาย
Comparison: Part I vs Part II
โค้ดหลัก
Data Mapping
WHY: ทำไมต้อง Map ค่า?
5. ตัวอย่างที่ 9: Real Sensor Dashboard
เป้าหมาย
Layout
โค้ดโครงสร้าง
5B. ตัวอย่างที่ 9: Real Arc Gauge (Roll Angle)
เป้าหมาย
Algorithm
Code Pattern
6. ตัวอย่างที่ 10: Real Scale Gauge (Pitch Angle)
เป้าหมาย
Pitch vs Roll
Angle
Axis
Motion
Example
Percentage Mapping
Code Pattern
Layout
6B. ตัวอย่างที่ 11: Real Chart Dashboard (4 Chart Types)
เป้าหมาย
4 Tabs Overview
Tab
Chart Type
Data Source
Technique
Tab 1: Bar Chart (Accel X/Y/Z)
Tab 2: Faded Area Chart (Tilt Magnitude)
Tab 3: Scatter Chart (Roll vs Pitch)
Tab 4: Line Chart (Gyroscope)
Optimization: Update Active Tab Only
7. Complementary Filter - การวิเคราะห์มุมเอียง
ทำไมต้องใช้ Complementary Filter?
Sensor
ข้อดี
ข้อเสีย
Algorithm
การคำนวณ Accel Angle
ข้อควรระวัง
8. แบบฝึกหัด
แบบฝึกหัดที่ 1: ADC Threshold Alert
แบบฝึกหัดที่ 2: IMU Tilt Indicator
แบบฝึกหัดที่ 3: Multi-Channel ADC
แบบฝึกหัดที่ 4: Data Logger
5A. CM33-CM55 IPC Architecture (Ex7-11)
สถาปัตยกรรม Dual-Core
Shared Memory Structure (imu_shared.h)
Synchronization Pattern
Last updated
Was this helpful?