0xa10/volume.control

A minimal implementation of a USB volume knob, utilizing a rotary encoder (volume increment, decrement)...

The firmware itself is based solely on RTIC framework

volume.control

A minimal implementation of a USB volume knob, utilizing a rotary encoder (volume increment, decrement) with a switch (mute). This firmware targets the specially crafted volume.control board, which is based on the RP2040 MCU.

The firmware itself is based solely on embedded Rust, and makes use of the Real-Time Interrupt-Driven Concurrency, or RTIC framework.

The host volume is controlled in the same way as it is controlled by keyboard media keys - by presenting the host with a USB-HID device, and dispatching Consumer Control HID reports indicating the Volume Increment 0xE9 , Volume Decrement 0xEA and Mute 0xE2 Usage IDs.

USB-HID functionality is provided by @dlkj's usbd-human-interface-device library, and by implementing a minimal, single-byte report descriptor:

Flashing firmware (PICOBOOT)

The latest firmware release can be found in the releases page.

To flash a new firmware to the volume.control board - keep the mute button pressed while plugging the volume.control into your host USB. The device should boot into PICOBOOT mode, which allows for updates using picotool.

Building

Building the firmware yourself is kept simple thanks to Cargo and elf2uf-rs:

➜  ~ git clone https://github.com/0xa10/volume.control
➜  volume.control git:(main) ✗ cargo build --release                                        
    Finished release [optimized] target(s) in 0.03s
➜  volume.control git:(main) ✗ elf2uf2-rs target/thumbv6m-none-eabi/release/volume-control volume-control.uf2

Recovery (BOOTSEL)

In case flashing fails catastrophically, or for some other reason the device does not boot into the application or PICOBOOT mode - it is possible to force it into BOOTSEL mode, by shorting the small pad on the top left corner of the board (orange arrow) to any ground pad (gray arrows) with a paper clip or conductor of your choice - whilst plugging into the USB port.

This will cause the volume.control board to boot to BOOTSEL mode, in which both the PICOBOOT interface and a Mass Storage Device interface will be available, allowing you to update it like you would a Raspberry Pi Pico or any equivalent board with a BOOTSEL button.

pini//grigio

2022

Versions

Find the latest versions by id

Information - Updated Sep 08, 2022

Stars: 1
Forks: 0
Issues: 1

rust_embedded_starter

Boilerplate für Embedded Entwicklung mit Rust mit Flash und Debug automatik

rust_embedded_starter

Embedded rust HAL (hardware abstraction layer) for the STM32WL

This is a work in progress, it is unstable, incomplete, and (mostly) untested

Embedded rust HAL (hardware abstraction layer) for the STM32WL

Embedded Rust Template

This template is based on stm32f4xx-hal

Embedded Rust Template

A Rust embedded-hal HAL for all MCUs in the STM32 F7 family

This crate is largely inspired by the awesome work done here:

A Rust embedded-hal HAL for all MCUs in the STM32 F7 family

embedded-rust-H2AL

Hardware abstraction layer - abstraction layer

embedded-rust-H2AL

cargo-pio = Cargo + PlatformIO

Build Rust embedded projects with PlatformIO!

cargo-pio = Cargo + PlatformIO

Embedded rust HAL (hardware abstraction layer) for the STM32WL series

This is still in development, the code that exists today covers basic usage of:

Embedded rust HAL (hardware abstraction layer) for the STM32WL series

Microchip MCP4725 DAC Driver for Rust Embedded HAL

This is a driver crate for embedded Rust

Microchip MCP4725 DAC Driver for Rust Embedded HAL

Rust Embedded HAL for Apache NuttX RTOS

This crate provides Rust Embedded HAL interfaces (GPIO, I2C, SPI and Delay) for Apache NuttX RTOS

Rust Embedded HAL for Apache NuttX RTOS

Using Rust to turn on an LED on the NUCLEO-F446RE by pressing a button

This example is mainly copied from the great Rust Embedded Embedded Rust: From Zero to Blinky

Using Rust to turn on an LED on the NUCLEO-F446RE by pressing a button
Facebook Instagram Twitter GitHub Dribbble
Privacy