Giter Site home page Giter Site logo

esp32-s3_rust_tutorials's Introduction

ESP32-C3 Rust Tutorials

Various embedded Rust tutorials using the ESP32-C3. We'll work towards making a remote data logger by first implementing peripherals we will need to build the larger project.

Each tutorial below has a YouTube video link where I will start with a blank project and implement a peripherals using the latest esp-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 simple CLI 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 the esp-idf-template from the private repo home dir. I chose all the default options
# STD Project
cargo generate https://github.com/esp-rs/esp-idf-template cargo
# NO-STD (Bare-metal) Project
cargo generate https://github.com/esp-rs/esp-template
  1. Build the Hello World program by running cargo build in the new project dir. This will take a while to build the first time:
cd esp32-rust
cargo 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

esp32-s3_rust_tutorials's People

Contributors

shanemmattner avatar shanechewielabs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.