PlastiWatch-Rust
embeddedCompleted

PlastiWatch-Rust

PlastiWatch-Rust, a fully open-source, affordable edge AI activity tracker that runs entirely on device! Powered by Rust on the Seeed XIAO ESP32-C3 and TinyML from Edge Impulse, this wearable detects walking, running, standing, and falls all privately, with no cloud required. Custom 3D printed case, real-time OLED feedback, and a fun maker journey. Perfect for students, innovators and makers around the world. Everything is opensource, build your own today!

{ "en": "rust embedded-systems" }

Abstract

PlastiWatch is a low-cost, open-source activity tracking hardware project designed to demonstrate the power of Rust in embedded systems. By using Rust architectures, PlastiWatch-Rust leverages the memory safety and concurrency models of Rust to create a more stable, AI-capable wearable. This project serves as an educational bridge, teaching 3D modeling, electronics, and Edge AI through the lens of modern software engineering.

Features

  • Safe Hardware Access: Utilizing the esp-idf-hal and shared-bus crates to manage sensor data without memory corruption

  • On-Device Intelligence: Integrating an Edge Impulse model to classify movement (Fall, walking, running, or standing) directly on the ESP32-C3

  • Custom Design: A custom 3D-printed enclosure designed in Fusion360 that balances ergonomics with the physical constraints of DIY electronics

  • Sensor Interface: Real-time IMU data acquisition and processing

  • User UI: OLED display with intuitive navigation and haptic feedback

  • Power Management: Deep sleep mode with button wake-up for extended battery life

System Hardware Requirements

Components

  • Seeed Studio Xiao ESP32-C3
  • MPU6050
  • SSD1306 OLED display
  • Momentary switch
  • 1K pull-up resistor
  • 3.7V 500mAh LiPo battery

Tools

  • FDM 3D printer
  • Glue gun
  • Soldering Station

SoftWare Requirements

  • OS: Windows or Ubuntu OS (Tested). You are free to use any OS of your choice.
  • IDE: VSCode (recommended) with PlatformIO extension installed.
  • 3D Modeling: Fusion360 
  • AI Platform: Edge Impulse - for mode; training and C++ SDK export

Project Structure 

plastiwatch-rs/
├── assets/
│   └── plastiwatch.jpeg          # Project image
├── src/
│   ├── main.rs                   # Entry point and boot sequence
│   ├── config.rs                 # Hardware and system configuration
│   ├── drivers/
│   │   ├── display.rs           # SSD1306 OLED driver
│   │   ├── imu.rs                # MPU6050 IMU driver
│   │   ├── haptic.rs             # Haptic feedback driver
│   │   └── mod.rs
│   ├── tasks/
│   │   ├── sensor.rs             # Sensor data acquisition task
│   │   ├── ai.rs                 # Edge Impulse inference task
│   │   ├── ui.rs                 # User interface task
│   │   ├── power.rs              # Power management task
│   │   └── mod.rs
│   ├── ei.rs                     # Edge Impulse Rust bindings
│   ├── events.rs                 # Event system
│   └── input.rs                  # Button input handling
├── motion-detection_inferencing/ # Edge Impulse C++ SDK
│   └── src/
│       ├── ei_wrapper.cpp        # C++ to Rust FFI wrapper
│       ├── ei_porting.cpp        # ESP-IDF porting layer
│       └── edge-impulse-sdk/     # Edge Impulse SDK
├── build.rs                      # Build script for C++ compilation
├── Cargo.toml                    # Rust dependencies
├── rust-toolchain.toml           # Rust toolchain configuration
└── sdkconfig.defaults            # ESP-IDF configuration

Educational Impact

PlastiWatch-Rust serves as an educational tool. By integrating 3D Design with Rust Firmware and Edge Computing, we teach students that:

  1. Firmware is part of the product: Memory safety in Rust translates to physical reliability in the device
  2. Open Source Hardware: The project provides a complete roadmap—from soldering the MPU6050 to writing the driver in Rust
  3. The Future is Written in Rust: Demonstrating to the tech community that we can build world-class, safety-critical systems using the most modern tools available
  4. Edge Computing: We deomstrate that AI can run on low resource embedded system devices.

The full descritpion of the project and build resources are provided below

Resources

This project is built with ❤️ using Rust for Embedded Systems

Demonstrating that Rust is not just for web servers; it is ready to power the next generation of embedded hardware.

Project Info

Category
embedded
Status
Completed
Started
January 2026
Completed
February 2026