Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

shanemmattner/ESP32-C3_Rust_Tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Variousembedded Rust tutorials using theESP32-C3. We'll work towards making aremote data logger by first implementing peripherals we will need to build the larger project.

Each tutorial below has aYouTube video link where I will start with a blank project and implement a peripherals using the latestesp-idf-hal version.

Repo organization

Part 0: Remote Data Logger MVP

Minimum viable product project where we'll implement all the peripherals and features we need for the data logger

  • 4 ADC's
  • 16 Digital I/O
  • DHT11
  • SD card logging
  • UART CLI Shell

Peripheral Tutorials

Application Tutorials

  • p8-cli-shell: Create a simpleCLI shell to interact with the ESP32-C3 over UART
  • p9-adc-stream: Configure ADC's to continuously read and make that data available to other parts of the application through a mutex
  • p10-log-values: Log all the values read from the ADC's
  • p11-digital-stream: Continuously read the SX1509 inputs and log to SD card

Part 1:

For the next part of the project we will add in features listed below:

  • Debugging
  • Logging
  • FSM/HSM
  • Wifi
  • MQTT
  • OTA
  • Pub/sub
  • Crash dumps & diagnostics

Other features I'd like to add but don't have a clear example for yet:

  • DMA
  • Timer usage
Development environment setup
  1. Install Rust and associated build tools
  2. Start a project using theesp-idf-template from the private repo homedir. I chose all the default options
# STD Projectcargo generate https://github.com/esp-rs/esp-idf-template cargo# NO-STD (Bare-metal) Projectcargo generate https://github.com/esp-rs/esp-template
  1. Build theHello World program by runningcargo build in the new project dir. This will take a while to build the first time:
cd esp32-rustcargo build...Finished dev [optimized + debuginfo] target(s) in 6m 40s
  1. Flash the ESP32 with the build artifact:
espflash /dev/ttyACM0 target/riscv32imc-esp-espidf/debug/project
  1. Connect to ESP32 and monitor
espmonitor /dev/ttyACM0
Misc

Singletons in Embedded Rust

Pull in code for submodules with:

git submodule update --init --recursive
Links

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp