Note: To access all shared projects, get information about environment setup, and view other guides, please visit Explore-In-HMOS-Wearable Index.
A HarmonyOS ArkTS wearable app that monitors and evaluates driving behavior in real time. It uses accelerometer and gyroscope sensors to detect harsh braking, sharp turns, and stop-and-go events, providing instant feedback with animations and storing driving summaries locally.
- Start/stop driving session with one click
- Analyze real-time accelerometer and gyroscope data
- Detect harsh braking, sharp turns, and stop-go behavior
- Provide instant animations for risky events
- Store summaries locally in RDB
- Swipe-to-delete history items
- Languages: ArkTS (TypeScript)
- UI: ArkUI (
@kit.ArkUI) with declarative Stage model - Tools/IDE: DevEco Studio 5.1.0.260
- SDK: HarmonyOS SDK 5.1.0.54
- Libraries: SensorServiceKit, BackgroundTasksKit, AbilityKit, RDB
- Navigation:
NavPathStackwith slide transitions
ohos.permission.ACCELEROMETERohos.permission.GYROSCOPEohos.permission.RUN_BACKGROUND
src/main/ets/
├── animation/
│ └── LottieAnimation.ets
├── entryability/
│ └── EntryAbility.ets
├── entrybackupability/
│ └── EntryBackupAbility.ets
├── model/
│ ├── DriveSummary.ets
│ └── TableDefinition.ets
├── pages/
│ ├── Index.ets
│ ├── DetailPage.ets
│ ├── HistoryPage.ets
│ └── SplashPage.ets
├── service/
│ ├── HistoryTable.ets
│ └── Rdb.ets
├── util/
│ ├── ConstantUI.ets
│ ├── CommonConstantsDb.ets
│ └── Logger.ets
└── viewmodel/
└── DriveSummaryViewModel.ets
- Huawei Watch 5 (HarmonyOS 5.1.0+)
- Works only on real devices with motion sensors
- No backend, summaries stored locally
- Optimized for wearable performance and battery
Drive Sense is distributed under the terms of the MIT License.
See the LICENSE file for details.
