awesome-embedded-rust
Curated list of resources for Embedded and Low-level development in the Rust programming language
https://github.com/rust-embedded/awesome-embedded-rust
Last synced: about 7 hours ago
JSON representation
Architecture support crates
ARM
- cortex-a - Low-level access to Cortex-A processors (early state) -
- cortex-m - Low-level access to Cortex-M processors -
MIPS
RISC-V
- riscv - Low-level access to RISC-V processors -
Board support crates
1BitSquared
Adafruit
- metro_m0 - Board support for the Metro M0 board in the atsamd-rs repo. It is an atsamd-rs tier 1 support board.
- metro_m4 - Board support for the Metro M4 board in the atsamd-rs repo. It is an atsamd-rs tier 1 support board.
- pyportal - Board support for the PyPortal board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- pygamer - Board support for the PyGamer board in the atsamd-rs repo. It is an atsamd-rs tier 1 support board.
- trellis_m4 - Board support for the NeoTrellis M4 board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- feather-f405 - Board support for the Feather STM32F405 Express.
- feather_m0 - Board support for the Feather M0 board, and some variants in the atsamd-rs repo. It is an atsamd-rs tier 1 support board.
- feather_m4 - Board support for the Feather M4 board in the atsamd-rs repo. It is an atsamd-rs tier 1 support board.
- circuit_playground_express - Board support for the Circuit Playground Express board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- edgebadge - Board support for the EdgeBadge board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- gemma_m0 - Board support for the Gemma M0 board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- itsybitsy_m0 - Board support for the ItsyBitsy M0 board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- itsybitsy_m4 - Board support for the ItsyBitsy M4 Express board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- trinket_m0 - Board support for the Trinket M0 board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- neo_trinkey - Board support for the neo trinkey board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- neokey_trinkey - Board support for the neokey trinkey board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- grand_central_m4 - Board support for the grand central m4 board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- qt_py_m0 - Board support for the QT Py board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- adafruit-feather-rp2040 - Board Support Crate for the Adafruit Feather RP2040
Arduino
- arduino_mkr1000 - Board support for the MKR 1000 WiFi board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- arduino_mkrvidor4000 - Board support for the MKR Vidor board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- arduino_mkrzero - Board support for the mkrzero board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- arduino_nano33iot - Board support for the Arduino Nano 33 IoT in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
-
avr_328p_hal
- A zero-dependency, board support crate for the Arduino UNO R3 on the AVR_ATmega328p microcontroller featuring direct register-level control for performance. It leverages Rust's
Optionenum type to ensure only one part of the code has access to a specific driver. Documentation
Nordic
- dwm1001 - Decawave DWM1001-DEV -
- microbit - micro:bit -
- nrf52840-dk-bsp - nrf52840-dk -
- Thingy:91-nrf9160 - thingy:91 -
NXP
- frdm-kw41z - FRDM-KW41Z -
Other
- serpente - Board support for the serpente board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- p1am_100 - Board support for the p1am_100 board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
SeeedStudio
- xiao_m0 - Board support for the Seeed Studio Seeeduino XIAO in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- wio_lite_mg126 - Board support for the Seeed Studio wio_lite_mg126 in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- wio_lite_w600 - Board support for the Seeed Studio wio_lite_w600 in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- wio_terminal - Board support for the Seeed Studio wio_terminal in the atsamd-rs repo. It is an atsamd-rs tier 1 support board
- seedstudio-gd32v - Board support crate for the GD32 RISC-V Dev Board
SiFive
Sipeed
- longan-nano - Board support package for the Longan Nano board
Sodaq
- sodaq_one - Board support for the Sodaq one board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
- sodaq_sara_aff - Board support for the Sodaq sara aff board in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
Sony
- prussia - SDK for the PlayStation 2.
Sparkfun
- samd21_mini - Board support for the SAMD21 Mini Breakout in the atsamd-rs repo. It is an atsamd-rs tier 2 support board.
Special Purpose
- betafpv-f3 - For the BetaFPV F3 drone flight controller
- tildagon - Board support for the EMF Camp Tildagon badge
STMicroelectronics
- f3 - Board Support Crate for the STM32F3DISCOVERY -
- solo-bsp - Board Support Crate for Solo, an open source security token (WIP) -
- stm32f407g-disc - Board Support Crate for the STM32F4DISCOVERY (WIP) -
- stm32f429i-disc - Board Support Crate for the STM32F429DISCOVERY (WIP) -
- stm32f3-discovery - Board Support Crate for the STM32F3DISCOVERY used in Rust Embedded Discovery book -
- nucleo-h743zi - Beginner-oriented support crate for the Nucleo H743ZI and Nucleo H743ZI2
- nucleo-h723zg - Board support crate for the Nucleo H723ZG
- nucleo-f401re - Nucleo-F401RE
- nucleo-f042k6 - Nucleo-F042K6
- nucleo-f103rb - Nucleo-F103RB
Teensy
- teensy4-rs - Board Support crate for the [Teensy 4.0]
Texas Instruments
- stellaris-launchpad - For the Texas Instruments Stellaris Launchpad and Tiva-C Launchpad
- monotron - A 1980s home-computer style application for the Texas Instruments Stellaris Launchpad. PS/2 keyboard input, text output on a bit-bashed 800x600 VGA signal. Uses menu, vga-framebuffer and pc-keyboard.
- tm4c129-launchpad - For the Texas Instruments TM4C129-XL Launchpad board
Vorago
Books, blogs, and training materials
Free and public materials
- Cortex-M Quickstart - by @japaric – a template and introduction to embedded Rust, suitable for developers familiar with embedded development but new to embedded Rust.
- Writing an OS in Rust - A blog series creating a small operating system in Rust
- Building a sailing starter board with Rust (RTIC) - A step-by-step story/guide to build STM32-based PCB and program it with Rust for fun and games.
- MicroRust - Introductory book for embedded development in Rust on the micro:bit.
- Physical Computing With Rust - A (WIP) guide to physical computing with Rust on the Raspberry Pi.
- Ferrous Systems' Embedded Training Courses: 2020-current edition - A hands-on training course for beginner and advanced learners of Embedded Rust, based on Nordic Semiconductor's nRF52840 hardware. This training was given at Oxidize Conferences and by Ferrous Systems to corporate customers.
- Writing embedded drivers in Rust isn't that hard - A guide to building an embedded-hal driver. Part 2
- impl Rust on ESP32 Book - A hands-on guide that uses the ESP32 DevKit V1 to demonstrate how to work with various modules and sensors. (github source)
- Pico Pico Book - A hands-on guide that uses the Pico 2 (RP2350) to demonstrate how to work with various modules and sensors. (github source)
- STM32F4xx with Embedded Rust at the HAL - A blog containing a series of tutorials demonstrating the use of several peripherals through simple examples leveraging the stm32f4xx-hal crate.
- ESP32-C3 Rust Tutorials - Short videos and Github project implementing various peripherals of the ESP32-C3 with the end goal of creating a complete data logger application.
- DSP on STM32F407G-DISC1 - Unofficial oxidization of the Digital Signal Processing using Arm Cortex-M based Microcontrollers: Theory and Practice book. The book isn't necessary to enjoy the examples and learn a functional DSP Rust coding style.
- The Rust on ESP Book - This book aims to provide a comprehensive guide on using the Rust programming language with Espressif SoCs and modules.
- Embedded Rust (no_std) on Espressif - Training for Rust using no_std (bare metal) approach on ESP32-C3, officially supported by Espressif.
-
Embedded Rust (std) on Espressif
- Training for Rust using std approach development on ESP32-C3 by Ferrous Systems. Uses the community-maintained
esp-idf-halecosystem. - Embedded Rust Workshop on the micro:bit v2 - This book has a strong focus on teaching the practical application of embassy-rs on the micro:bit v2.
- Discovery - by @rust-embedded — this book is an introductory course on microcontroller-based embedded systems that uses Rust as the teaching language. Original author: @japaric
- Writing an embedded OS in Rust on the Raspberry Pi - A set of tutorials that give a guided, step-by-step tour of how to write a monolithic Operating System kernel for an embedded system from scratch. Runs on the Raspberry Pi 3 and the Raspberry Pi 4.
- Ferrous Systems' Knurling Sessions - are hands-on embedded projects that explore specific concepts using generally available hardware, building full systems and components using microcontrollers, sensors, and actuators.
- Embedded Rust programming playlist - Various livestreams with Embedded Rust live coding
- Tweede golf's workshop - A full workshop about Rust and embedded Rust. The embedded parts use the nRF52840-DK and a LIS3DH breakout board. (github source)
Paid and commercially available materials
- Embedded Software with Rust - A practical introduction to building firmware that is fast, efficient, and far safer than traditional embedded software written in C or C++.
- Simplified Embedded Rust: Standard Library Edition - This book provides a quick path to start learning embedded Rust with minimal setup. Book is based on ESP devices and the Wokwi Simulator. This edition uses the standard library development approach which is based on the ESP-IDF framework.
- Simplified Embedded Rust: Core Library Edition - This book provides a quick path to start learning embedded Rust with minimal setup. Book is based on ESP devices and the Wokwi Simulator. This edition uses the core library development approach for bare metal development.
Community
Community Chat Rooms
- #rust-embedded:matrix.org Matrix room
- embedded.rs-wasm-iot - English Telegram chat about Rust and WASM for microcontrollers and IoT
- embedded.rs - Telegram chat about Rust for microcontrollers in the Russian language
- rust-embedded:QQ group - Chinese community for Rust embedded
- Embedded WG - , including newsletters with progress updates.
Component abstraction crates
- smart-leds - Support for addressable LEDs including WS2812 and APA102
- accelerometer - Generic accelerometer support, including traits and types for taking readings from 2 or 3-axis accelerometers and tracking device orientations -
- embedded-nal - An Embedded Network Abstraction Layer -
- embedded-storage - An Embedded Storage Abstraction Layer
- switch-hal - An "on"/"off" abstraction for input and output switches -
- usb-device - Abstraction layer between USB peripheral crates & USB class crates -
- atat - Abstraction crate to ease writing AT based driver crates -
- embedded-graphics - 2D drawing library for any size display -
- radio - Generic radio transceiver traits, mocks, and helpers -
Driver crates
WIP
- AD9850 - Embedded driver for the AD9850 DDS synthesizer chip -
- AFE4400 - SPI - Pulse oximeter
- APDS9960 - I2C - Proximity, ambient light, RGB, and gesture sensor -
- AS5048A - SPI - AMS AS5048A Magnetic Rotary Encoder
- AXP209 - I2C - Power management unit
- ad57xx - SPI - Quad and dual channel DAC -
- BH1750 - I2C - ambient light sensor (lux meter)
- BME280 - A rust device driver for the Bosch BME280 temperature, humidity, and atmospheric pressure sensor and the Bosch BMP280 temperature and atmospheric pressure sensor.
- bme680 - I2C - Temperature / humidity / gas / pressure sensor -
- BMI160 - I2C / SPI - Inertial Measurement Unit -
- BMP280 - A platform agnostic driver to interface with the BMP280 pressure sensor
- CC1101 - SPI - Sub-1GHz RF Transceiver -
- DS3231 - I2C - real-time clock
- DS3234 - SPI - Real-time clock
- DS323x - I2C/SPI - Real-time clocks (RTC): DS3231, DS3232 and DS3234 -
- epd-waveshare - SPI - driver for E-Paper Modules from Waveshare
- embedded-morse - Output morse messages -
- embedded-nrf24l01 - SPI+GPIO - 2.4 GHz radio
- Ft6x36 - I2C - Rust driver for focal tech touch screen FT6236, FT6336 -
- grove-matrix-led-my9221-rs - I2C - Rust driver for Grove RGB Matrix Led with my-9221 Driver -
- GridEYE - I2C - Rust driver for Grid-EYE / Panasonic AMG88(33) -
- HC-SR04 - DIO - Ultrasound sensor
- HD44780-driver - GPIO - LCD controller -
- HD44780 - Parallel port - LCD controller
- HM11 - USART - HM-11 bluetooth module AT configuration crate -
- HRS3300 - I2C - Heart rate sensor / monitor used in the PineTime smartwatch, for example. -
- HDC20xx - I2C - Temperature and humidity sensor compatible with HDC2080, HDC2021 and HDC2010. -
- hub75 - A driver for rgb led matrices with the hub75 interface -
- hzgrow-r502 - UART capacitive fingerprint reader -
- iAQ-Core - I2C - iAQ-Core-C/iAQ-Core-P Gas and VOC sensor driver for monitoring indoor air quality.
- ILI9341 - SPI - TFT LCD display
- INA260 - I2C - power monitor -
- ISL29125 - I2C - RGB Color Light Sensor with IR Blocking Filter -
- IST7920 - SPI monochrome LCD display -
- LM75 - I2C - Temperature sensor and thermal watchdog (also compatible with LM75A, LM75B, LM75C, AT30TS75A, DS1775, DS75, DS7505, G751, MAX7500/1/2/3/4, MAX6625, MCP9800/1/2/3, STDS75, TCN75, PCT2075) -
- lp586x - I2C/SPI - LED matrix driver
- LS010B7DH01 - SPI - Memory LCD
- LSM303AGR - I2C/SPI - 3D accelerometer + 3D magnetometer. (Used in e.g. micro:bit boards)
- LSM303C - A platform agnostic driver to interface with the LSM303C (accelerometer + compass)
- LSM9DS1 - I2C/SPI - 9-axis motion sensor module
- ltr-559 - I2C - Ambient Light Sensor and Proximity sensor
- lvgl - no_std LittleVGL port -
- M95320 - SPI - STMicroelectronics Serial flash EEPROM -
- MAG3110 - I2C - Magnetometer
- MAX17048/9 - I2C - LiPo Fuel gauge, battery monitoring IC -
- MAX170xx - I2C - LiPo Fuel gauge, battery monitoring ICs compatible with MAX17043/4, MAX17048/9, MAX17058/9. -
- MAX3010x - I2C - Pulse oximeter and heart-rate sensor. ATM Compatible with MAX30102. -
- MAX31855 - SPI - Thermocouple digital converter -
- MAX31865 - SPI - RTD to Digital converter -
- MAX44009 - I2C - Ambient light sensor -
- MAX7219 - SPI - LED display driver -
- MCP4725 - I2C - 12-bit DAC -
- MCP49xx - SPI - 8/10/12-bit DACs like MCP4921, MCP4922, MCP4801, etc. -
- MCP9808 - I2C - Temperature sensor -
- MCP4x - SPI - Digital potentiometers (digipot) like MCP41010, MCP41050, MCP41100, MCP42010, MCP42050 and MCP42100, etc. -
- MFRC522 - SPI - RFID tag reader/writer
- midi-port - UART - MIDI input -
- MLX9061x - I2C - MLX90614/MLX90615 Contact-less infrared (IR) temperature sensor driver. -
- MMA8x5x - I2C - Tri-axis accelerometers like MMA8451Q, MMA8452Q, MMA8453Q, MMA8652FC and MMA8653FC. -
- motor-driver - Motor drivers: L298N, TB6612FNG, etc.
- MPU6050 - I2C - no_std driver for the MPU6050
- MPU9250 - no_std driver for the MPU9250 (and other MPU* devices) & onboard AK8963 (accelerometer + gyroscope + magnetometer IMU)
- MS5637 - no_std I2C driver for the MS5637 temperature and pressure sensor
- NRF24L01 - SPI - 2.4 GHz wireless communication
- OneWire - 1wire - OneWire protocol implementation with drivers for devices such as DS18B20 -
- PCD8544 - SPI - 48x84 pixels matrix LCD controller
- PCD8544_rich - SPI - Rich driver for 48x84 pixels matrix LCD controller -
- PCF857x - I2C - I/O expanders: PCF8574, PCF8574A, PCF8575
- RFM69 - SPI - ISM radio transceiver
- RN2xx3 - Serial - A driver for the RN2483 / RN2903 LoRaWAN modems by Microchip
- SCD30 - I2C - COâ‚‚ sensor -
- SHT2x - I2C - temperature / humidity sensors
- SHT3x - I2C - Temperature / humidity sensors
- SI5351 - I2C - clock generator
- SI7021 - I2C - Humidity and temperature sensor
- SPL06-007 - I2C - Pressure and temperature sensor -
- spi-memory - SPI - A generic driver for various SPI Flash and EEPROM chips -
- SSD1320 - SPI - Graphical OLED display controller -
- SSD1322 - SPI - Graphical OLED display controller -
- SSD1322_rs - SPI - Async graphics driver for SSD1322 screen -
- SSD1351 - SPI - 16bit colour OLED display driver -
- SSD1675 - SPI - Tri-color ePaper display controller -
- st7032i - I2C - Dot Matrix LCD Controller driver (Sitronix ST7032i or similar). -
- ST7735-lcd - SPI - An embedded-graphics compatible driver for the popular lcd family from Sitronix
- ST7920 - SPI - LCD displays using the ST7920 controller
- stm32-eth - MCU - Ethernet
- SX1278 - SPI - Long range (LoRa) transceiver
- SX1509 - I2C - IO Expander / Keypad driver
- TCS3472 - I2C - RGB color light sensor -
- TPA2016D2 - I2C - A driver for interfacing with the Texas Instruments TPA2016D2 Class-D amplifier -
- VEML6040 - I2C - RGBW color light sensor -
- VEML6070 - I2C - UVA light sensor -
- VEML7700 - I2C - Ambient light sensors -
- vesc-comm - A driver for communicating with VESC-compatible electronic speed controllers
- VL53L0X - A platform agnostic driver to interface with the vl53l0x (time-of-flight sensor)
- w5500 - SPI - Ethernet Module with hardwired protocols : TCP, UDP, ICMP, IPv4, ARP, IGMP, PPPoE -
- xCA9548A - I2C - I2C switches/multiplexers: TCA9548A, PCA9548A -