diy 8-bit absolute encoder

Поділитися
Вставка
  • Опубліковано 5 жов 2024
  • If you enjoyed the video, please like and subscribe! Thank you for watching.
    This video features the first working prototype of the 8-bit optical absolute position encoder. I am using an RC servo to visualize the output.

КОМЕНТАРІ • 19

  • @ChannelName991
    @ChannelName991 Рік тому +2

    Your soldering skills are impressive! You did a good job with those tiny SMD components 👍

  • @vaclavnemec5996
    @vaclavnemec5996 Рік тому +2

    This is nice project!. I see you are using STM32, i would highly recommend you to learn and use reading GPIO port over DMA. You can attach the DMA reading of GPIO port to the update event or even interrupt. This way all the reading is done by hardware with almost zero software overhead and you can access the graycode value whenever you want as it is automatically updated by the timer and DMA. Also the speed of update is really high.
    To see the values i am getting two ideas. One is to use Analog output and measure that pin with osciloscope. Also there are methods how to plot live data using STM32 in debugging mode, unfornutelly i dont have much experience with this, but there is a ton of tutorials how to set this up. Also you can jsut watch the value in Live Expression in a debbuging mode.
    Anyway, great work! :)

    • @365robots
      @365robots  Рік тому +1

      Thank's! I am already working on an update video covering interrupts and live data plotting.

  • @idahobob
    @idahobob Рік тому +3

    Wow... good progress!
    You might push the position out the serial port, at the highest stable baud rate, and capture the values into a file. Then you can see out stable the system is working, and if you have any glitches in your decoding.
    Putting the values in a spreadsheet would let you graph it quickly, to visulize what's going on... Plus do a simple check on the spacing to make sure it's always 1 or -1.

    • @365robots
      @365robots  Рік тому +1

      Thanks for following the series! I'm also quite happy about the progress. I will include such plots in one of the next episodes!

    • @idahobob
      @idahobob Рік тому +2

      @@365robots It's always good to double check yourself, and make sure you are on solid standing, before going to the next big step.
      Saves you from having to second guess all of your work when something is wrong, as "it could be anywhere." Plus,, it still can be everywhere, but you would have tools and code to check the subsystems already, making everything easier, even though it takes a little more time at first

  • @sudhanshuvaishampayan8971
    @sudhanshuvaishampayan8971 8 місяців тому +1

    Can you please let me know what kind of SMD LED light source and receivers are you using? Brand and dimensions as I am not able to procure them. Also which all components would be necessary in the signal conditioning apart from filtering and Schmitt trigger?
    .
    .
    Also loved to watch the development of your project from scratch, Not many UA-camrs show such a detailed explanation. Keep the good work up!!

    • @365robots
      @365robots  8 місяців тому

      I really appreciate that you liked the video series.
      It's a 0805 IR photodiode form Würth Electronics (1540801EEA300). I also used their 15408094BA400 IR LED.
      The most important part of the signal processing is the TIA (trans-impedance amplifier). You can go with a comparator or Schmitt trigger after that. Go and rewatch this video to catch the details: ua-cam.com/video/RPo8U-ANzYs/v-deo.htmlsi=Q-IzgmdpiUuXu1Dd

  • @duncanmarks1590
    @duncanmarks1590 11 місяців тому

    Hi, very good progress, this is now a functional encoder. bye

  • @Sekir80
    @Sekir80 Рік тому

    Hey, are you still using the binary encoder instead of a Gray code?
    Edit: just watched your new, trace-based encoder video which renders my question answered. Good work!

  • @zoeyzhang9866
    @zoeyzhang9866 Рік тому

    Nice DIY!💯

  • @daisywong-ke1kz
    @daisywong-ke1kz Рік тому

    So Cool!

  • @karmanyaahm
    @karmanyaahm Рік тому +1

    I wonder how much voltage you could get if you backdrive the motor, like a wind turbine. Could you please test that? I'd love to know

    • @365robots
      @365robots  Рік тому

      That's a very good question. Therefore it's for sure on the list of todos!

  • @KineticLinking
    @KineticLinking Місяць тому

    😀 How do you construct a PCB Stator? If possible, I would like your help if you have a moment. I have the design and would like to convert it to PCB Stator for a project.

  • @lukasz_kostka
    @lukasz_kostka Рік тому

    where did you get those SMD parts oragniser ?

  • @Scrogan
    @Scrogan Рік тому

    16 single op-amp chips, instead of quad or even dual?

    • @365robots
      @365robots  Рік тому +1

      Good catch! For sure something I will change for the next design. Wanted to have to opportunity to try different opamps for TIA and Conparators, with the possibility of getting the cost down.