Andrei Litvin
Andrei Litvin
  • 21
  • 108 370
Embedded Rust: running an embassy example on a STM32F411 microcontroller
Getting embassy started on a STM32F411 (my device is one of www.aliexpress.com/w/wholesale-stm32f411.html?SearchText=stm32f411)
Timing-wise I managed to try to make this video exactly when there seems to be a defmt/probe-run and embassy incompatibility, so I show how I tried and eventually solved that one.
Переглядів: 2 232

Відео

Embedded Rust: using a PCF8575 I2C expander
Переглядів 739Рік тому
This video shows the basics of using a PCF8475 in rust using a STM32 microcontroller. Example code available at: github.com/andy31415/rust_stm32f411_demos/blob/master/examples/i2c_io_expander_pfc8575.rs You can find such an expander on AliExpress: www.aliexpress.com/w/wholesale-PCF8575.html?SearchText=PCF8575 And for the STM32: www.aliexpress.com/w/wholesale-STM32F411.html?SearchText=STM32F411
Embeded rust: Using STM32 to simulate a mouse that can recoil control FPS games
Переглядів 904Рік тому
In this video I show how to use a STM32 device to expose a mouse interface and control that mouse to follow any predefined pattern, using a FPS recoil control pattern as an example. Example code available at github.com/andy31415/rust_stm32f411_demos/blob/master/examples/usb_mouse.rs Using docs.rs/usbd-human-interface-device/0.3.1/usbd_human_interface_device/
Rust on virtual hardware: using Wokwi and a ESP32C3
Переглядів 1,5 тис.Рік тому
In this video I show how to use Wokwi (wokwi.com/) to run embedded projects without direct hardware access. I found Wokwi when I wanted to get started with a new ESP32C3 project using github.com/esp-rs/esp-idf-template . It seemed very neat to be able to do development with all hardware and connections virtual as sometimes it takes me quite a bit of time to plug in things and just clicking plus...
Rust: updating crate dependencies: egui and eframe
Переглядів 2,8 тис.Рік тому
Going through the process of updating to the latest crate versions for my simple value plotter UI: github.com/andy31415/rs-value-plotter Updating clap and tracing was very easy, however egui updates required a bit of code changes. This video shows what I did.
Embedded rust: creating USB devices - serial tty and virtual keyboards
Переглядів 4,4 тис.2 роки тому
Provides an example on how to use a STM32 to create a virtual USB device. Example goes through a serial USB device and a virtual keyboard. Example code available at github.com/andy31415/rust_stm32f411_demos I used a STM32F411 as example: www.aliexpress.com/wholesale?SearchText=stm32f411 Makes use of the rust usb-device crate and extensions: crates.io/crates/usb-device
Embedded rust: compiling for ESP32 devices and creating a simple blinky
Переглядів 12 тис.2 роки тому
Shows how to Rust on a ESP32. ESP32 requires a rust fork at the moment because the Xtensa architecture does not build out of the box with LLVM. This video shows how to use the tools provided by espressif to run rust on a ESP32 in a STD environment. The STD environment usage is unusual for embedded and is possible because ESP32 devices have high speed and ram compared to most other microcontroll...
Embedded rust: controlling a stepper motor using a A4988 driver
Переглядів 3,1 тис.2 роки тому
This shows a basic example on how to move a stepper motor using a A4988 driver. The driver makes it quite easy to do simple things as it requires a single digital pin for moving the motor. Video shows how to implement a driver-like structure and use hardware timers for better timing control without blocking the main loop of the program. Great introduction on how to configure a A4988 available a...
Embedded Rust: Rotary Encoder on an Arduino Uno
Переглядів 2,3 тис.2 роки тому
Shows how to use a Rotary Encoder using embedded rust. Using an Arduino Uno and github.com/Rahix/avr-hal
Embedded Rust: Arduino Uno bringup, serial console and 16x16 neopixel matrix
Переглядів 1,8 тис.2 роки тому
Shows how to bring up an Arduino Uno using rust and how to create a simple LED matrix demo. Starting point is the awesome-embedded-rust list at github.com/rust-embedded/awesome-embedded-rust#arduino Example code available at: github.com/andy31415/rust-arduino-uno-16x16-display Hardware used: - Arduino Uno (like www.aliexpress.com/item/1005002814902804.html) - WS2812B LED matrix (like www.aliexp...
Embedded rust: Read ADC sensors like joysticks, water level and moisture sensors
Переглядів 1,1 тис.2 роки тому
Shows how to setup and use analog to digital conversion on a cortex m0 and how some analog sensors work. Example code available at github.com/andy31415/rust-cortex-m0-demos/tree/adc_demo
Embedded rust: GPIO digital input and output, buttons, motion sensors and more
Переглядів 1,1 тис.2 роки тому
This video describes how digital GPIO works in microcontrollers and uses rust and a STM32 Cortex M0 to show examples of digital input and output. Example for using interrupts available at github.com/andy31415/rust-cortex-m0-demos/tree/gpio_interrupts
Setting up Sublime Text: general UI and settings for Rust development
Переглядів 4,7 тис.2 роки тому
Some basic sublime text 4 configuration: dark theme, high-dpi fonts and setup for rust auto-complete based on LSP-rust-analyzer A copy of the settings used available at: github.com/andy31415/sublime-text-config/tree/starter-rust-config
Rust and Neopixels: Implementing a driver for a WS2821 and running it on a STM32F0
Переглядів 1,1 тис.2 роки тому
In this video I show how I implemented a neopixel driver for my cortex m0 device after finding that the existing drivers do not work due to HAL updates. Code available in GitHub at: github.com/andy31415/rust-cortex-m0-demos/tree/neopixel_demo It took a lot of debugging and I had to fix an issue that is described at michaeltien8901.github.io/stm32/2019/01/06/STM32F072-MOSI-Idle-State.html - basi...
Embedded Rust: Wifi and I2C on a ESP32-C3
Переглядів 13 тис.2 роки тому
I build a demo of how to program a ESP32-C3 in rust, use its wifi capabilities to connect to an access point and display its IP address on a SSD1306 screen. Sample code available at github.com/andy31415/rust-esp32-c3-demos/tree/oled_wifi Other relevant repositories: - github.com/esp-rs/esp-idf-template for the starter ESP32 hello world template - github.com/ivmarkov/rust-esp32-std-demo contains...
Embedded rust: reading temperature and humidity using a AHT10 sensor and a CortexM0
Переглядів 2,6 тис.2 роки тому
Embedded rust: reading temperature and humidity using a AHT10 sensor and a CortexM0
Embedded Rust: using a I2C LCD display and using HEAP memory allocation
Переглядів 1,2 тис.2 роки тому
Embedded Rust: using a I2C LCD display and using HEAP memory allocation
Embedded Rust: PWM signal and servo control from a Cortex M0
Переглядів 1,5 тис.2 роки тому
Embedded Rust: PWM signal and servo control from a Cortex M0
Embedded Rust on a Cortext-M0 board: blinky program bringup
Переглядів 7162 роки тому
Embedded Rust on a Cortext-M0 board: blinky program bringup
Rust - building a UI to plot a sensor value in real time
Переглядів 43 тис.2 роки тому
Rust - building a UI to plot a sensor value in real time
Embedded Rust : pulse sensor reading from a STM32F303 Discovery Board
Переглядів 6 тис.2 роки тому
Embedded Rust : pulse sensor reading from a STM32F303 Discovery Board