Embedded Rust: Rotary Encoder on an Arduino Uno

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ธ.ค. 2024

ความคิดเห็น • 13

  • @dmrsim94
    @dmrsim94 2 ปีที่แล้ว +2

    One simple word: AMAZING! You are embedded master! Please continue with rust embedded video, are really enteresting.

    • @embedded-rust
      @embedded-rust  2 ปีที่แล้ว +2

      Thank you for the encouragement! Will try to keep at it!

  • @adolphtrudeau
    @adolphtrudeau ปีที่แล้ว

    I like how you walk the learner through discovering missing dependencies. This is a great learning session.

  • @daque1960
    @daque1960 2 ปีที่แล้ว

    How is Rust on AVR chips? The last time I looked it was lacking a lot and required a rust fork.
    Thanks for the video.

    • @embedded-rust
      @embedded-rust  2 ปีที่แล้ว +1

      The HAL template still forces a specific Rust compiler version in github.com/Rahix/avr-hal-template/blob/main/rust-toolchain.toml (version nightly-2021-01-07). My understanding is that newer LLVM generates an invalid instruction and there was a lot of back and forth about this in github.com/rust-lang/compiler-builtins/issues/400.
      My view of this is that AVR works, however as time passes the Rust build starts being older and older and unless the LLVM bug gets fixed, not being able to use (even if just play around) with newer compiler versions is really not ideal.
      I used arduino in this example because this seems to be a more commonly available hardware, however for newer projects I believe stm32 are generally net better for rust (faster, cheaper, more ram/gpios/functions). Also looking forward to more espressif risc-v as those just work out of the box and I like being able to control my projects over wifi. The only difficulty may be the 3.3 vs 5V (if trying to replicate 5V projects, they may not work out of the box)
      The great part is that rust_embedded abstracts things enough that knowing/seeing how to make one microcontroller makes it very easy to to do the same thing on another. Switching from AVR to something else should not be too hard.

    • @daque1960
      @daque1960 2 ปีที่แล้ว

      @@embedded-rust Thanks for the reply! I have some STM32's I should dig them out and get busy.

  • @danhhuynh2037
    @danhhuynh2037 2 ปีที่แล้ว

    What is Linux you use?

    • @embedded-rust
      @embedded-rust  2 ปีที่แล้ว

      I use manjaro.org/ currently.

  • @metamud8686
    @metamud8686 2 ปีที่แล้ว

    12:19 this is the opposite of what you explained in the preamble. There you said that turning right is when they are different, and left is when they are same.

    • @embedded-rust
      @embedded-rust  2 ปีที่แล้ว

      Off by one errors it seems :)
      I would say for this kind of hardware, try it out and adapt things until it looks right. I imagine this is how I got to the mismatch between explanation and actual code.
      Thanks for noticing! This shows that at least some people are paying close attention to what I am saying ... more pressure on me for any future videos (too late for this one - youtube does not allow you to edit things) :)

  • @dibyojyotibhattacherjee4279
    @dibyojyotibhattacherjee4279 2 ปีที่แล้ว

    Why don't u use vscode?

    • @embedded-rust
      @embedded-rust  2 ปีที่แล้ว

      I use sublime for other projects and it starts up faster for me.
      Other than that, I find all of vscode, sublime and atom to be quite usable. I did not see a strong reason to prefer one vs the other so I picked one and stayed with it.

    • @unknownk1992
      @unknownk1992 ปีที่แล้ว

      @@embedded-rust have you try neovide