Skip to main content
Version: FILS English

Rust Autonomous Hovercraft

A simple, autonomous hovercraft controlled by a Raspberry Pi Pico 2 and Rust.

info

Description

The project consists of an autonomous hovercraft powered by a Raspberry Pi Pico 2 microcontroller. It uses dual motors—one for lift and one for propulsion/steering. The hovercraft will be able to navigate its environment autonomously, avoiding obstacles using distance sensors. The entire control logic, including motor PWM control and sensor data processing, will be written in Rust using the embassy-rs framework.

Motivation

I chose this project because it perfectly combines hardware design, aerodynamics, and embedded programming. Building a hovercraft presents unique control challenges (such as lack of friction and drift), making the development of the control software in Rust an exciting and rewarding learning experience.

Architecture

The system architecture consists of a central Processing Unit (Raspberry Pi Pico 2) that interfaces with input and output components.

  • Processing Unit: The core controller that runs the Rust firmware.
  • Sensors (Input): Ultrasonic distance sensors (e.g., HC-SR04) for obstacle detection.
  • Motor Controllers (Output): A dual motor driver module (e.g., L298N or TB6612FNG) that takes PWM signals to control the lift and thrust motors.
  • Power Management: A battery pack supplying appropriate voltage to both the motors and the logic board.

Schematics

Schematics

Log

Week 5 - 11 May

  • Project topic selection and initial component research.
  • Placed order for electronic components on Optimus Digital.

Week 12 - 18 May

  • To be updated with hardware assembly progress

Hardware

The hardware is based on the Raspberry Pi Pico 2 microcontroller. The mechanical structure of the hovercraft will be built using lightweight materials (like foam board). A powerful 2212 brushless motor is used for the lift cushion, alongside a rear-facing motor for thrust and steering (via a servo-controlled rudder or differential thrust).

Bill of Materials

DeviceUsagePrice
Raspberry Pi Pico 2The main microcontroller running Rust~30 RON
2212 Brushless Motor & ESCFor lift~50 RON
DC Motor & PropellerFor thrust and steering~20 RON
Motor Driver (L298N / TB6612FNG)Controls DC motor speed and direction~15 RON
Ultrasonic Sensor HC-SR04Obstacle detection~10 RON
Battery Holder & BatteriesPower supply for motors and Pico~25 RON
Foam Board/Chassis MaterialsHovercraft body~20 RON

Software

The software will be written entirely in Rust, utilizing the embassy-rs framework for asynchronous execution.

LibraryDescriptionUsage
embassy-rsAsync framework for embedded RustMain scheduling and execution
embassy-rpHAL for RP2040/RP2350Peripherals access (PWM, GPIO)
  1. Rust on Raspberry Pi Pico
  2. Embassy Framework Documentation
  3. How to build a simple hovercraft