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 14 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.
- The Embedded Rust Book - An introductory book about using the Rust Programming Language on "Bare Metal" embedded systems, such as Microcontrollers.
- 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
- 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
- AFE4400 - SPI - Pulse oximeter
- 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)
- bme680 - I2C - Temperature / humidity / gas / pressure sensor -
- DS3231 - I2C - real-time clock
- DS3234 - SPI - Real-time clock
- HC-SR04 - DIO - Ultrasound sensor
- hub75 - A driver for rgb led matrices with the hub75 interface -
- iAQ-Core - I2C - iAQ-Core-C/iAQ-Core-P Gas and VOC sensor driver for monitoring indoor air quality.
- ILI9341 - SPI - TFT LCD display
- lp586x - I2C/SPI - LED matrix driver
- LS010B7DH01 - SPI - Memory LCD
- MAG3110 - I2C - Magnetometer
- MAX170xx - I2C - LiPo Fuel gauge, battery monitoring ICs compatible with MAX17043/4, MAX17048/9, MAX17058/9. -
- MAX31855 - SPI - Thermocouple digital converter -
- MAX7219 - SPI - LED display driver -
- MFRC522 - SPI - RFID tag reader/writer
- motor-driver - Motor drivers: L298N, TB6612FNG, etc.
- NRF24L01 - SPI - 2.4 GHz wireless communication
- PCD8544 - SPI - 48x84 pixels matrix LCD controller
- RFM69 - SPI - ISM radio transceiver
- 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 -
- st7032i - I2C - Dot Matrix LCD Controller driver (Sitronix ST7032i or similar). -
- stm32-eth - MCU - Ethernet
- SX1278 - SPI - Long range (LoRa) transceiver
- SX1509 - I2C - IO Expander / Keypad driver
- 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 -
- ublox-cellular-rs - Serial - Cellular driver for the full Ublox cellular serial based family
- atwinc1500-rs - SPI - A host driver for the Atwinc1500 network controller
- HX711 - GPIO - An interrupt-based driver for the HX711 Load Cell Amplifier IC. no-std.
- tmag5273 - I2C - TI TMAG5273 3-axis Hall-effect sensor with hardware CORDIC angle engine and typestate API -
- paa5100je-pwm3901 - Cross platform no-std compatible spi async library for an Optical Flow Sensor.
- FUSB302B - I2C - Programmable USB Type‐C Controller with USB Power Delivery - github
- AFE4404 - I2C - Pulse oximeter -
- OPT300x - I2C - Ambient light sensor family driver - Intro blog post -
- PAC194X - I2C - Single/multi channel power monitor - Intro blog post -
- shared-bus - I2C - utility driver for sharing a bus between multiple devices - Intro post
-
usbd-human-interface-device
- Batteries included embedded USB HID library for
usb-device. Includes concrete Keyboard (boot and NKRO), Mouse and Consumer Control implementations as well as support for building your own HID classes - github - - AD983x - SPI - AD9833/AD9837 waveform generators / DDS - Intro blog post -
- adafruit-alphanum4 - I2C - Driver for Adafruit 14-segment LED Alphanumeric Backpack based on the ht16k33 chip -
- adafruit-seesaw - I2C - Driver for devices running the Adafruit Seesaw firmware -
- ADE791x - SPI - ADE7912/ADE7913 3-Channel, Isolated, Sigma-Delta ADC - github -
- ADS1x1x - I2C - 12/16-bit ADCs like ADS1013, ADS1015, ADS1115, etc. - Intro blog post -
- ADXL313 - SPI - 3-axis accelerometer -
- ADXL343 - I2C - 3-axis accelerometer -
- ADXL355 - SPI - 3-axis accelerometer - Intro blog post -
- AEM10900 - I2C - Energy Harvester - github -
- AHT20 - I2C - Humidity and temperature sensor - github -
- AHT20-driver - I2C - Humidity and temperature sensor - Intro blog post - github -
- AnyLeaf - I2C - pH sensor module - github -
- AT86RF212 - SPI - Low power IEEE 802.15.4-2011 ISM RF Transceiver - Intro blog post -
- BlueNRG - SPI - driver for BlueNRG-MS Bluetooth module - Intro post
- BMA400 - I2C/SPI - Bosch 12-bit 3-axis accelerometer - github
- BNO055 - I2C - Bosch Sensortec BNO055 9-axis IMU driver - Intro post
- CD74HC4067 - GPIO - 16-channel digital and analog multiplexer - Intro blog post - github -
- dht-sensor - 1-Wire - DHT11/DHT22 temperature/humidity sensor driver - github -
- embedded-dht-rs - 1-Wire, I2C - DHT11/DHT20/DHT22 temperature/humidity sensor driver - github -
- DRV8825 - DRV8825 Stepper Motor Driver (based on Stepper) - Intro blog post -
- DS1307 - I2C - Real-time clock driver - Intro blog post -
- ebyte-e32 - SERIAL - Ebyte E32 LoRa module driver - Intro blog post -
- EEPROM24x - I2C - 24x series serial EEPROM driver - Intro blog post -
- embedded-ccs811 - I2C - Gas and VOC sensor driver for monitoring indoor air quality - Intro blog post -
- embedded-sdmmc - SPI - SD/MMC Card Driver with MS-DOS Partition and FAT16/FAT32 support - Intro post
- ENC28J60 - SPI - Ethernet controller - Intro blog post -
- epdsi - SPI - E-Paper Display driver framework (SSD1680/1681/1677, UC8253, JD79661, ED2208, Pervasive Displays) - examples -
- FH101RF - SPI - Wake-Up Radio - github -
- HC-12 - SERIAL - Wireless serial transceiver module - Intro blog post - github -
- HTS221 - I2C - Humidity and temperature sensor - Intro blog post -
- IS31FL3728 - I2C - LED dot matrix display mode (8×8, 5x11, 6x10,7x9) - github -
- IIS2MDC - I2C - ST's High accuracy, ultra-low-power, 3-axis digital output magnetometer -
- ISM330DHCX - I2C - ST's IMU with 3D accelerometer, 3D gyroscope, ML core and more -
- keypad - GPIO - Keypad matrix circuits - Intro post -
- KXCJ9 - I2C - KXCJ9/KXCJB 3-axis accelerometers - Intro blog post -
- L3GD20 - SPI - Gyroscope - Intro blog post -
- lcd_parallel_bus - GPIO - Async and blocking driver for LCDs based on HD44780 parallel bus -
- LSM303DLHC - I2C - Accelerometer + compass (magnetometer) - Intro blog post -
- MAX6675 - SPI - A driver for the MAX6675 digital thermocouple converter - Intro blog post -
- MAX6955 - I2C - Driver for Alphanumeric LED display driver - Intro blog post -
- MAX116xx-10bit - SPI - Driver for the MAX11619-MAX11621, MAX11624 and MAX11625 10-bit ADCs - Intro blog post -
- MCP25LCXX - SPI - Driver for Microchip's 25LC series of EEPROMs -
- MCP3008 - SPI - 8 channel 10-bit ADC - Intro blog post -
- MCP3425 - I2C - 16-bit ADC - Intro blog post -
- MCP794xx - I2C - Real-time clock / calendar driver - Intro blog post -
- MMA7660FC - I2C - 3-axis accelerometer - Intro blog post