How to configure an ADC using an STM32 in Rust

This page summarizes the projects mentioned and recommended in the original post on /r/embedded

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • stm32l0xx-hal

    A hardware abstraction layer (HAL) for the STM32L0 series microcontrollers written in Rust

  • Once you can program the microcontroller with your toolchain (cargo, rustc, and cargo-embed or cargo-flash for programming), I would look at the stm32l0x3-hal repository example SPI code. There's also a more advanced example using DMA for data transfer instead of the blocking read and write calls.

  • awesome-embedded-rust

    Curated list of resources for Embedded and Low-level development in the Rust programming language

  • However, before you do that, I recommend you look at other embedded Rust device drivers. That list has one existing SPI ADC driver for the MCP3008, depending on how different your ADC chip is you may be able to use that driver as a starting point. In fact, there's even a blog post on writing platform agnostic Rust drivers using the MCP3008 as an example!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts