Overengineered "potentiometer" using the AS5600 magnetic encoder

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 76

  • @CinemaEngineer
    @CinemaEngineer Рік тому +5

    thanks this exactly what i needed. didn't want to pay 25$ a piece for high res optical encoders.

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

      You're welcome. You can get approximately 5 of this for the same price. ;)

  • @nikthefix8918
    @nikthefix8918 2 роки тому +3

    You could try a cone roller bearing which might feel smoother as it bears any downward thrust too, as long as you can prevent it from 'falling out' - split ring or something.

    • @CuriousScientist
      @CuriousScientist  2 роки тому +1

      Thanks, I will look it up! I actually ordered some bearings and nice metal knobs for the continuation of this project, but I did not have the time to assemble a new "potentiometer". I will do it some time in the future.

    • @nikthefix8918
      @nikthefix8918 2 роки тому +1

      @@CuriousScientist I'm looking to start a similar project but using the AS5311 linear encoder with a 40mm ring magnet so that I can have a large hollow knob with a clear window and an oled display at the center. Maybe even an internal ring of apa102 leds to augment the oled and provide some colour. I already tried it with one of those ALPS hollow shaft encoders but they get very bulky for large apertures and feel terrible. I'm going for a mini Nest Thermostat style / interface and I'm sure the mag encoder is the way to go - with a suitable pcb and mechanical layout.

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      Your plan sounds interesting! I hope you'll end up with a nice result. I don't have this much ambitious plans with my build, I just wanted to learn this encoder thoroughly and I thought that the best way to do it is by building different projects based on it. I will probably go towards another area where I am planning to build some feedback circuitry for stepper motors.

    • @nikthefix8918
      @nikthefix8918 2 роки тому

      @@CuriousScientist That'd be great! So all us GRBL CNC enthusiasts can get absolute positioning and dispense with some of those pesky limit switches.

  • @Flashzinh0
    @Flashzinh0 2 місяці тому +1

    Thank you SO MUCH

  • @7alfatech860
    @7alfatech860 3 роки тому +1

    Nice option for an absolute encoder.

  • @Thomas-ij7ki
    @Thomas-ij7ki 11 місяців тому +1

    Have you already tried the burn_angle function to decrease the valid range (e.g. 0-30°)?

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

      No, I haven't. I kept the default condition of the sensor, and if I needed something specific, I just did some math in the code.

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

    bearings you're using are double metal shielded bearings which typically have grease in them instead of oil, they're meant for low speed. get fidget spinner bearings that have oil, slightly higher tolerances too and are usually cheaper than the ones you're using. you're using higher quality bearings, more than necessary.

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

      This is what I had at home, so I used this. It is sufficient for the demonstration, and then everyone can decide which bearing suits their application the best. But it I still agree that these are not the most suitable bearings for _this specific_ demo.

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

      @@CuriousScientist fantastic video. watched others too, and to be honest your channel is the only source for detailed info about this topic. good work

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

      Thank you very much! I try to make detailed videos on every topic I dissect and discuss.

  • @AlexisRodriguez-wi7hf
    @AlexisRodriguez-wi7hf Рік тому +1

    Amazing video! I'm wondering, how long did it take you two design this encoder?

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

      Thanks! It did not take so long, I already had the basic concepts available, so I just fitted everything around the encoder PCB.

  • @SaintAngerFTW
    @SaintAngerFTW 7 місяців тому

    can as5600 read position when its position is changed after power is off and then power on again?

    • @CuriousScientist
      @CuriousScientist  7 місяців тому +1

      If you don't want to detect more than 360° rotation while the power is off, _absolutely_ (pun intended!). It is an absolute encoder, so it detects the magnet's position in a 0-360° coordinate system.

    • @SaintAngerFTW
      @SaintAngerFTW 7 місяців тому

      @@CuriousScientist Thank you so much Sir.... You are the real G

  • @brandonadams6403
    @brandonadams6403 10 місяців тому

    Great video man I learned a lot, I have a kayak motor and the speed controller has the as5600 sensor and find it really hard to dial in the exact speed I want. Do you think it would be easy to wire in another switch or potentiometer with something that has a mechanical click on each speed setting? There’s 100 speed setting on forward and 100 speed setting in reverse on the motor

    • @CuriousScientist
      @CuriousScientist  10 місяців тому +1

      Thanks! You can use a rotary encoder for this purpose. If you need a more sturdy one with more clicks per rotation, look up CNC pendant wheels. I have projects with the mentioned wheel. 😉😎

    • @brandonadams6403
      @brandonadams6403 10 місяців тому +1

      @@CuriousScientist awesome I'm watching your video on the cnc encoder now. Could I send you a picture of the sensor, there are 4 wires coming off of the sensor that goes to a connector and that plugs into the speed controller.

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

    Hi sir, how many time we can program the as5600 using program B sir?? Because i try and working only for 90deg value of pwm. Out sirr, i need more like a 300-350deg sir, i try make more nothing happen sir

  • @andre9552
    @andre9552 3 роки тому +1

    Wou just the video i needed

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

    if the hall sensor is itself analog, can it be used as an active analog potentiometer with an op amp for example?

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

      I guess, we are talking about a single piece of standalone Hall sensor, and not the AS5600, right? Yes, it could be used, but it would be really cumbersome, I think. Since the output of the Hall sensor is proportional to the strength of the magnetic field around it, you can translate the output signal of the sensor and use that signal in the same way as you would use a potentiometer's output signal. But probably it would be difficult to (relatively) precisely change the distance between a piece of a magnet and the Hall sensor.

  • @benjaminvarughese2961
    @benjaminvarughese2961 2 роки тому

    Can i mount a hollow magnet (that is magnetized across its diameter perpendicular) to this chip and get the readings?

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      I would not mount the magnet on the chip, because there would not be any relative motion respectively to the chip... I would mount it on a shaft or any rotating object, and then fix the sensor somewhere according to the specifications described in the datasheet. Also, I guess a hollow magnet would work too as long as the strength and the orientation of its magnetic field fulfills the specifications.

  • @miesharleman4393
    @miesharleman4393 2 роки тому

    What iff of you would add a seconden stage, with gears. That if the first one goes round once the second one only travelles one “step”.
    Would be an easy solution for a long linear absolute encoder.

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      If you can get rid of/minimize the slack in the system, it could work. I guess you would convert it into a linear encoder with those "rack and pinion" mechanisms. You can put whatever you want on the shaft as long as you can keep track of the gear ratios.

  • @pure6450
    @pure6450 2 роки тому

    Very useful information.

  • @stefanguiton
    @stefanguiton 3 роки тому

    Great video!

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

    is it precise as an optical encoder?

    • @CuriousScientist
      @CuriousScientist  11 місяців тому +1

      Which one? :)
      There are millions of different optical encoders. This can resolve 360° into 4095 steps (12-bit resolution) which is approximately 0.0879° step size. It is your call to say if it is as precise as an optical encoder (of your choice).

  • @by_iz
    @by_iz 2 роки тому

    Is it possible to connect more than one as5600 to a single i2c line?

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      Yes, but you need an i2c multiplexer. I have several videos where I show how to do it.

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      This is the multiplexer you need: ua-cam.com/video/j5qqMkE6Aww/v-deo.html
      And this is where you see how I used two AS5600: ua-cam.com/video/IZ0FyiMYT48/v-deo.html

    • @by_iz
      @by_iz 2 роки тому

      @@CuriousScientist It is ridiculous that the i2c address does not change, I will use an i2c multiplexer. Should I use rs232 or rs485 to use encoders in long distance? Thanks.

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      What do you mean by big distance? You can always read the documentation of the i2c protocol and see what is the maximum distance. I know for a fact that 6 metres of shielded cable was capable of carrying the i2c signal.

    • @by_iz
      @by_iz 2 роки тому +1

      @@CuriousScientist I will use it for distances ranging from 10 meters to 20 meters using cat5-cat6 cable.
      I'm sorry for my bad english.

  • @isidoromaich7226
    @isidoromaich7226 3 роки тому

    Amazing! good job

    • @CuriousScientist
      @CuriousScientist  3 роки тому

      Thank you! I will make a better version of this once I get the knobs I ordered recently. I want this thing to spin for a while when I rotate it.

    • @isidoromaich7226
      @isidoromaich7226 3 роки тому +1

      @@CuriousScientist like a flywheel?.. awesome!

    • @CuriousScientist
      @CuriousScientist  3 роки тому

      Exactly! Unfortunately, with these ultra light printed knobs, I couldn't do it, so I had to order a few machined, metal knobs. Hopefully, I'll get them this year.

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

    Is your code available? I looked at your site and it shows the 3d prints but I can find any code. Do you have a github or somewhere we can look at the code. Thanks for the work you do. Id love to play around with this.

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

      Hi! If you read the article on my website carefully, you can actually find the code. It is mentioned right in the beginning.

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

      @@CuriousScientist I found the code. Thanks for this information. I cant wait to play around with this. :)

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

      Super, have fun!

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

      @@CuriousScientist I'm curious what size of screws you used for the 3d housing.

  • @THEbonny95
    @THEbonny95 2 роки тому

    Did you drop out the resistor? Connected to 3.3v?

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      What do you mean?

    • @THEbonny95
      @THEbonny95 2 роки тому

      @@CuriousScientist On the library page that I threw off, they talk about the need to solder the resistors.

    • @THEbonny95
      @THEbonny95 2 роки тому

      @@CuriousScientist Note: Check your custom board (Like this one: Hall AS5600 sensor for Game Wheel 23x23mm):
      If there is a pull-down resistor (1k) on pin 5 (PGO), internally there is already a pull-up resistor, there may be a conflict
      If there is a jumper resistor (0R) between pins 1 (VDD5V) and 2 (VDD3V3), to work under 5V, you need to remove this jumper
      AS5600 pin 8 (DIR) selects direction, needs to be set externally, otherwise the readings may fluctuate

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      My custom board works just fine. I never had issues with it. I just have to make sure that the unused pin (out) is tied to GND.

  • @THEbonny95
    @THEbonny95 2 роки тому

    What library are you using? Seeed_Arduino_AS5600?

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      Why don't you watch the video? The answer is there, as well as on my website... I am not using any libraries, I wrote my own code to get the data from the chip.

    • @THEbonny95
      @THEbonny95 2 роки тому +1

      @@CuriousScientist Sorry, I was watching
      I'm just not English-speaking and did not understand everything.

    • @CuriousScientist
      @CuriousScientist  2 роки тому

      No worries. Make sure you watch the whole video because the answers are probably in it. Also read the video description because there's a link to my website where you can get the code. ;)

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

    I'm currently 3d printing the parts you designed, thanks. You might want to think about putting a crypto-wallet address on your site for donations.

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

      Hi and thanks! I don't want to add any additional payment methods. One can donate via UA-cam (thanks button), PayPal (both via my website or via the direct link on my UA-cam page), and Patreon. I think it is more than enough to choose from.

  • @gerykis
    @gerykis 2 роки тому

    you have a hungarian accent :)