Magnetic rotary encoder vs stepper motor accuracy

Testing some AS5600 magnetic encoders to see how accurate they are by rotating a magnet in front of them using stepper motors. The sensors are quite precise, but getting that magnet centered enough to get accurate readings is difficult. Yet at the same time, the magnetic encoder was able to measure step and microstep angle erros of the stepper motor.
Also showing how to interface the AS5600 to a Raspberry Pi. More on that on my github:
github.com/Matthias-Wandel/AS...

Пікірлер: 340

  • @osmia
    @osmia2 ай бұрын

    Luvvin how you're introducing the Lego for more accuracy

  • @Koushakur

    @Koushakur

    2 ай бұрын

    There's some legit engineering that goes into Lego, that they're able to mass-produce them to the very precise measurements required to lock into each other reliably is seriously impressive

  • @LazloNQ

    @LazloNQ

    2 ай бұрын

    Back in the 1980s he built a working Lego engine.

  • @ZeedijkMike

    @ZeedijkMike

    2 ай бұрын

    I only have one word "Danish Quality" - Oh wait that was two words, but I stand by them 🙂

  • @leonordin3052

    @leonordin3052

    2 ай бұрын

    Can you measure some lego for me? With micrometer❤?​@@Koushakur

  • @wobblysauce

    @wobblysauce

    2 ай бұрын

    The great thing about it, the uniform parts.

  • @lukahrastovec5022
    @lukahrastovec50222 ай бұрын

    I work for RLS, where we design and manufacture high-resolution magnetic encoders. It seems you're heading in the right direction, but what you need to do is perform FFT analysis over the accuracy plot. This will reveal the harmonic components of your signal (accuracy). The DC component will represent the offset (+ latency) between your reference and the DUT (encoder). The first harmonic represents the eccentricity of the magnet, and so on...

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    yes, fft would have been nice, would have a few low frequency peaks for eccentricity and manetic encoder errors and some high frequency peaks for step and microstep errors. But just showing it in time domain, I think, is more helpful for unerstanding.

  • @Peter_Enis

    @Peter_Enis

    2 ай бұрын

    Does the sending of the data induce a magnetic field as wel (radiosignal)?? Would utp-cable be more stable?

  • @ericwazhung

    @ericwazhung

    2 ай бұрын

    ​@@matthiasrandomstuff2221"unerstanding" may be my new favorite word... essentially "removal of error in one's [prior] understanding." Great work, here, with this vid, and so many others. I hope they bring much unerstanding to this world.

  • @lvb3575

    @lvb3575

    2 ай бұрын

    Why are the RLS linear position sensors so expensive :( I am building a core-less linear actuator at home but I need position sensing to correctly commutate the currents. But the price of the linear incremental encoders are quite high haha

  • @lukahrastovec5022

    @lukahrastovec5022

    2 ай бұрын

    @@Peter_Enis Induced magnetic fields are way too small. The magnet was probably 4×4mm, and the magnetic field of the magnet is approximately 100mT.

  • @nokbeen3654
    @nokbeen36542 ай бұрын

    Matthias is a true scientist. Creates hypothesis, experiments, learns and writes it down. He’s even enjoying being wrong in his theories, because that enables him to learn more! Oh how I love that he’s gone from excellent wood worker, to science and research, just to become even better at woodworking!

  • @thomasrussell4674

    @thomasrussell4674

    2 ай бұрын

    That's science! Beautiful process!

  • @danamyrocket

    @danamyrocket

    2 ай бұрын

    He’s a true engineer. He is can use the principles of science to expand his knowledge and understanding. Engineers take those principles and apply them to to the identification, definition, and characterization of problems, synthesize potential alternative solutions, apply scientific analysis to select the optimal solution, apply best practices in the detailed design, planning, implementation, sustainment, and eventual decommissioning of solutions. To borrow and adapt an expression used by every non-commissioned military officer ever: “Do NOT call me a scientist goddamnit! I’m an engineer. I WORK for a living!”

  • @MucaroBoricua

    @MucaroBoricua

    2 ай бұрын

    He's an engineer.

  • @waxyjim
    @waxyjim2 ай бұрын

    If this guy was my teacher in high school I would’ve focused on Computer Science and done a Masters. Amazing content and execution. Thank you.

  • @sdspivey

    @sdspivey

    2 ай бұрын

    It isn't too late.

  • @fifty-plus

    @fifty-plus

    2 ай бұрын

    You don't need a degree to work in computer science.

  • @xuan5306

    @xuan5306

    2 ай бұрын

    no, you will be addicted in wood working instead:)

  • @youtubelisk

    @youtubelisk

    2 ай бұрын

    If it wouldn't rain as much, I would run more and be in better shape.

  • @TP-hc4qi

    @TP-hc4qi

    2 ай бұрын

    I think he's inspiring more engineers than computer scientists.

  • @KerryBenton
    @KerryBenton2 ай бұрын

    Love it. Anytime Lego can be used for (relatively) high precision tooling in a benchtop environment, it makes me happy.

  • @harrytsang1501

    @harrytsang1501

    2 ай бұрын

    I have even used it for silicone casting because you can take away the box piece by piece without destroying the workpiece

  • @kenmercer2721
    @kenmercer27212 ай бұрын

    I have checked a micro stepping stepper motor by attaching a laser pointer and drawing dots on a wall. The accuracy is affected by the linearity of the DAC's in the driver (probably very good) and the linearity of the magnetic fields which is probably related to the shape of the stepper motor's "teeth" (probably not so good). As a toolmaker in a past life and, more recently, an electronics engineer, I'd be using a dividing head to make gears, with a stepper motor to drive it. Love your stuff, particularly your systematic approach!

  • @MrBacanudo
    @MrBacanudo2 ай бұрын

    The error graphs from 2:55 and forward are just textbook encoder eccentricity examples, usually caused by misalignments between encoder and target. As many pointed out, the center of magnetic encoders are sometimes not in the chip's center. A decent PCB design might fix that by putting the magnetic center at the center of the PCB, instead of just aligning the chip's center. But, even then, due to manufacturing tolerances in the entire chain, you may end up with eccentricity. Thankfully, this can be removed by software through calibration. Many of these magnetic encoders come with a built-in function that you can trigger, but not necessarily all. One possibility is doing your own calibration on the controller side, as eccentricity errors have fairly low frequency, compared to microstepping and cogging errors. Ben Katz has a very good blog post on doing such a calibration, though for BLDCs that will run FOC. For steppers, you'd essentially just have to low-pass filter your eccentricity graph, and apply it to your measurement through a lookup table. (That would be where running the FFT on that plotted data would help, as the employee from RLS cited: it would help you determine a good cutoff frequency for the filter. Also, because the motor is periodic, you don't need a windowing function, and there should be zero spectral leakage. Perfect FFTs are my jam!)

  • @jaro6985

    @jaro6985

    2 ай бұрын

    In this case the sensor center is the IC center. edit: some are some aren't.

  • @OleBrouer

    @OleBrouer

    2 ай бұрын

    @@jaro6985I’m pretty sure it’s not in the center. I own multiple AS5600L (same chip and form factor but you can change the I2C address) and after designing my own PCB for it and thus really studying the technical documentation I can with certainty say that those don’t have the center of the sensor in the center of the IC (which is really annoying and unnecessary). It’s off by roughly 0.16mm

  • @jaro6985

    @jaro6985

    2 ай бұрын

    @@OleBrouer you are correct for AS5600 but not for AS5047. 5600 is offset by 0.172mm. thanks for that.

  • @Aeidotronics
    @Aeidotronics2 ай бұрын

    You had me at LEGO. Oh wait, that was the end.

  • @Spiderelectron
    @Spiderelectron2 ай бұрын

    Those magnetic sensors are really good. Depending on the exact part number, you can also use them to emulate a quadrature encoder, and at start-up it will output exactly the right number of pulses for the starting position.

  • @oBuLLzEyEo1013
    @oBuLLzEyEo10132 ай бұрын

    I just like to witness genius...

  • @r1m.s877

    @r1m.s877

    2 ай бұрын

    Anyone who thinks logically and has the desire to learn can do everything (and more) shown in this video.

  • @BruceChastain

    @BruceChastain

    2 ай бұрын

    I think the same thing

  • @oBuLLzEyEo1013

    @oBuLLzEyEo1013

    2 ай бұрын

    @@r1m.s877 I have very severe Dyslexia and Dyscalculia. It ain't happening...

  • @adacovsk

    @adacovsk

    2 ай бұрын

    just an engineer

  • @BruceChastain

    @BruceChastain

    2 ай бұрын

    @@adacovskthat is true, but I've worked with engineers my whole career and I think he's very very good engineer.

  • @Clark-Mills
    @Clark-Mills2 ай бұрын

    Fun presentation and coffee points for the lego finale! :)

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    Thank you! I don't drink cofee, but lets just say that pays for another one or two of those sensors.

  • @steveminard6441
    @steveminard64412 ай бұрын

    I ran across this same issue. We were driving a furnace loader with a stepper motor and battling with resonance. It turned out that the stepper motor position was not linear when micro-stepped. Our drive used two ROMs, one for cosine and one for sine to control the current going to each phase of the stepper motor. I created an adjusted version to correct the error. The motors ran smoother but the first step away from the pole was not very predictable. I only corrected for position under no load, we planned to also adjust detent torque, but ran out of time.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    maybe its a good thing I can't tweak the microstep ramps in the controllers I have. That would be endless futzing around!

  • @GeekDetour

    @GeekDetour

    2 ай бұрын

    That’s exactly right: microstepping is a “guess”. The only really trustable position is on full steps. I read a few articles about the drivers that allow for microstepping calibration table, they point that when the load changes, the response curve from the motor is affected.

  • @69dblcab
    @69dblcab2 ай бұрын

    Matthias as a compliment. "you are too smart" Thank you for sharing your world with us. I miss your previous location and adventures, but life moves ever forward.

  • @LikeFactoryMade
    @LikeFactoryMade2 ай бұрын

    Daaamn, you are good. I wish so much I'd have time to learn so much stuff as you know. I've been a subscriber for over 10 years now and I am still impressed by how wide your knowledge is.

  • @nathaniellangston5130
    @nathaniellangston5130Ай бұрын

    This is a really great video, I have magnetic encoders built into the Odrive but I've always stuck to the CUI AMT212B encoders because I've been skeptical of magnetic encoders in VERY high precision applications I typically mess with them at. But this video actually shows a really great example of I think quite reasonable achievable accuracy given very high concentricity between the encoder and magnet. I very much like the way you visualized the encoder values in the rotary configuration as well as the linear application. Fantastic!

  • @noonespecial9131
    @noonespecial91312 ай бұрын

    The lego build is hilarious 😂

  • @teenflon
    @teenflon2 ай бұрын

    I learn much more from you than my engineering professor! 🤣

  • @galacticdragon9841
    @galacticdragon98412 ай бұрын

    I have worked with these encoders in FRC, and when you use a precisely machined part, you can get about a half a tenth of a degree of error but when they are even just 2-3 mms off, their accuracy goes down so much they aren’t worth using at all. The distance of the magnet to the encoder also matters to the mm. I bet if you had a lathe and made a shaft for the magnet to go into and attach it to a motor, you would have way more accuracy to less than a tenth of a degree.

  • @RhysMogg

    @RhysMogg

    2 ай бұрын

    It's a 12 bit encoder. It's resolution is only 0.09 degrees, so you're not going to get better than that.

  • @eh42
    @eh422 ай бұрын

    Never too old to 'play' with Lego. Love it!

  • @willjackson6407
    @willjackson64072 ай бұрын

    This is really interesting and nicely visualised 😊

  • @raffy141
    @raffy141Ай бұрын

    This is actually also really neat to find good stepper motors for 3D printers with more accuracy.

  • @RickRolling-tc7vb
    @RickRolling-tc7vb2 ай бұрын

    The lego had me laughing, thank you! Good stuff once again; now I have to go and see what Scott was doing. Good luck with your gear cutting, I have faith in your ability to work it out.

  • @Don.Challenger
    @Don.Challenger2 ай бұрын

    Jeez, Matthias, that's getting to be real fun (shh, and educational).

  • @mvadu
    @mvadu2 ай бұрын

    I have one of those encoder boards in post. I now know how to get started. Thank you Mathias!

  • @ivprojects8143
    @ivprojects81432 ай бұрын

    I really like those AS5600 encoders and have used them in a lot of my projects. Like you noticed, the alignment of the magnet matters a lot. Also, the distance from the magnet to the chip matters. If I remember correctly the spec sheet calls out a distance of 0.5mm from the magnet to the top of the IC package. Great video!

  • @cooperised

    @cooperised

    2 ай бұрын

    Yes, I came here to point this out - the correct positioning is not in the centre of the IC.

  • @jaro6985

    @jaro6985

    2 ай бұрын

    @@cooperised the correct positioning is the center of the IC. Airgap depends on magnet strength and size.

  • @cooperised

    @cooperised

    2 ай бұрын

    @@jaro6985 Absolutely not universally true, though it may be for some devices of course. Check the datasheet for the specific device you're using. Some are marked with a dot to show the optimal centre of rotation.

  • @umutk5614
    @umutk56142 ай бұрын

    Thank you for this amazing video Matthias. I enjoyed every moment and gave me lots of ideas.

  • @noahwinslow3252
    @noahwinslow3252Ай бұрын

    I appreciate that all your graphics are ascii :D

  • @RoyvanLierop
    @RoyvanLierop2 ай бұрын

    Car manufacturers use magnetic angle sensors to determine wheel angle rotation. They have a main gear and some smaller satellite gears which are being measured. By choosing a smart divider between those gears one can use Verniers principle to calculate multiple rotations with the accuracy of the smallest gear.

  • @1kreature
    @1kreature2 ай бұрын

    A heavy flywheel and some bearings and drive the magnet around this way. Then you can let it coast slowly to a halt and look at the noise from the magnetic encoder itself seeing how you reduce the other noise to bearing rumble and inertia.

  • @AiOinc1
    @AiOinc12 ай бұрын

    I'm glad you made such a good demonstration of just how sluggish python is with this

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    Not really. Limited by I2C and console mostly. Python on its own would have iterated much faster.

  • @csomyy
    @csomyy2 ай бұрын

    No words! Matthias is just as good as ever! True scientist!

  • @AdamEarl2
    @AdamEarl22 ай бұрын

    At my work we make precision gears, and work in the sub-micron range for some tolerances. Every fraction of error matters!!

  • @user-zo1kn8ob7h
    @user-zo1kn8ob7h2 ай бұрын

    bro brilliant your knowledge an applications of graphs and console programs is beautiful

  • @jmhannnon
    @jmhannnon2 ай бұрын

    Very useful information. I have been thinking about using the magnetic encoders for a project.

  • @artursmihelsons415
    @artursmihelsons4152 ай бұрын

    Excellent video video and great sensor tests! Looks like these sensors can be used in lots of different projects..

  • @alucard87
    @alucard872 ай бұрын

    now i want to do a project with magnets and hall effect encoders

  • @ChristopherMcAvaney
    @ChristopherMcAvaney2 ай бұрын

    So cool. I love how you use ASCII graphics to represent the data.

  • @Potts1966
    @Potts19662 ай бұрын

    Great video, thanks. I'd not considered these sensors before, but they look amazing.

  • @sodium.carbide
    @sodium.carbide2 ай бұрын

    watching thru the years, and seeing some evolution.. awesome..

  • @kasuha
    @kasuha2 ай бұрын

    Funny how you switched from measuring accuracy of that detector using your stepper motor to measuring accuracy of your stepper motor using that detector.

  • @electronics.unmessed
    @electronics.unmessed2 ай бұрын

    Nice! Very comprehensive. Thanks for sharing!

  • @JPGuay
    @JPGuay2 ай бұрын

    You will always amaze me !

  • @xymaryai8283
    @xymaryai82832 ай бұрын

    more of this! its very responsive, would love to see it keep up in a high speed control loop scenario

  • @mingyangpan7822
    @mingyangpan782216 күн бұрын

    used as5600 for my final uni project. 3d printed a bracket to mount it nicely on the back of stepper, and used a kaman filter for any measurement noises. works pretty nice

  • @benliebhaber7099
    @benliebhaber70992 ай бұрын

    Blown away by Mattias yet again .. 🤯

  • @ShafaqIftikhar-pw9ld
    @ShafaqIftikhar-pw9ld2 ай бұрын

    ABSOLUTELY BEAUTIFUL!!!! THANKYOU FOR THE UPLOAD ❤❤❤

  • @DJacKnifeAlpha
    @DJacKnifeAlpha2 ай бұрын

    Love the lego bit at the end! Super cool!!

  • @GeekDetour
    @GeekDetour2 ай бұрын

    VERY cool video! Yeah - most people assume microstepping goes perfectly. It is not linear. You can only trust the correct position of full steps. What happens between full steps varies a lot between each motor. I read that Trinamic has more expensive drivers that allow you to calibrate a microstepping curve… but I never had one to play with.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    Half steps are also accurate, but anything in between might be off.

  • @kalinkaata

    @kalinkaata

    2 ай бұрын

    @@matthiasrandomstuff2221 I suggest you check this encoder > MPS MA630. It has an internal memory for calibration data, but you can achieve more accurate positioning with chepaer magnetic encoders too (MA302) , if you calibrate them and record calibration data into memory. Calibration involves very slow rotation of the shaft in microstep mode ( to allow settling down between steps ), and recording the difference between commanded position vs. encoder readout. Then compensate for that during your control loop. Also, when powering on a stepper, it will be in unknown position that may be anywhere between two poles, so you should energize the windings first to lock the rotor in a fixed position before starting any calibration. Othervise you will have random offset to your data ranging +- half step. Very high accuracy can be achieved with this method.

  • @fabiena1787
    @fabiena17872 ай бұрын

    This was fun, and I subscribed. Thank you.

  • @ra-medadrianreinhard6057
    @ra-medadrianreinhard60572 ай бұрын

    Nic z tego nie rozumiem ale uwielbiam oglądać Twoje filmy 😊

  • @user-jp3sb4fg3g
    @user-jp3sb4fg3g2 ай бұрын

    Very cool, thank you for sharing this.

  • @KingJellyfishII
    @KingJellyfishII2 ай бұрын

    I love your custom wooden parts for things like this. reminds me of before i had a 3D printer, I'd also carve little parts out of wood. very cool but also very time consuming

  • @clockworkspiral
    @clockworkspiralАй бұрын

    oh, yeah, these hall effect sensors are quite impressive; we deal with quite a few arcade games which use magnetic encoders for sensing analog inputs in place of potentiometers and you can almost always notice immediately because of how much more stable and precise the inputs are only issue with those tends to come when the magnet is mounted strangely or somehow gets rotated off from whatever axis it was placed in as a reference direction, because measuring something like up or down gets harder when the magnet you expect to be exactly level in exactly one direction gets spun 120 degrees out of axis :P

  • @hellNo116
    @hellNo116Ай бұрын

    I always forget how accurate are Legos. That last demo was my favourite just for that

  • @solocupp6120
    @solocupp61202 ай бұрын

    Get this man a 3d printer!

  • @manuelpena3988
    @manuelpena39882 ай бұрын

    So satisfiying to see the end

  • @LoialOtter
    @LoialOtterАй бұрын

    The big thing is if the error is repeatable or not and where you're accurate sensing is from. If you can use both a magnetic sensor and incremental encoder on the same motor you can use one to calibrate the other and remove any of the repeatable errors. This is one of the ways we're dealing with position errors found in resolvers at work. Also, you should try tuning your drive current and take note of how much it affects your microstepping position accuracy. I expect there's a certain amount of offsets within each full step and the quality of the stepper as well as how well the current is tuned for said motor will make a difference.

  • @SuperDavidEF
    @SuperDavidEF2 ай бұрын

    If you're getting 0.3 degrees of error, would a gear reduction help with that? Like, turn the stepper motor 10 steps to get a single step on the other end of the reduction. Would that give you a 0.03 degree error on the other end?

  • @davros517
    @davros5172 ай бұрын

    I've been watching him for years and apart from his woodwork stuff I do no understand a word that he say's..........and that's honesty !

  • @philipashmore
    @philipashmore2 ай бұрын

    Fun stuff! You also have to consider the distance between the magnet and the encoder. There's a sweet spot where the sensitivity is best.

  • @remberto2008
    @remberto2008Ай бұрын

    if you are planning on cutting gears, then using a stepper motor to drive a turn table is a good solution. Turn tables have a significant gear reduction (worm gear) commonly 90:1. So the actual angle error of the turn table would improve the accuracy of 0.3 degrees on the stepper to 0.3/90 deg, Your program would need to keep track of the actual number of turns as well as steps of the stepper motor, as well as the gear ratio of the turn table. If your plan was to cut gears with out a turn table you may also run into hold in place issues, unless you have a very strong motor.

  • @SoHeeLee-zt8jk
    @SoHeeLee-zt8jk2 ай бұрын

    Pure engineering wizardry

  • @akaHarvesteR
    @akaHarvesteR2 ай бұрын

    This is amazing stuff! Btw, I think you could still manage to do a dividing head with one, if you gear it down enough so the motor is doing more steps per degree on the head. Ofc, that adds in backlash, but as long as you end every move to a new position with a move in one fixed direction, it should cancel out. You'd also need a way to lock the head after moves... Really what I'm saying is that I'd love to watch a build video of you doing that 😉

  • @109joiner
    @109joiner2 ай бұрын

    I didn’t understand any of this but still I watch.

  • @Avrohomperl
    @Avrohomperl2 ай бұрын

    It's pretty unbelievable really how little of this video I understood.

  • @johnwalker1471
    @johnwalker14712 ай бұрын

    I get similar results in my tests. The magnetic position vs step position is good up to about 800 s/rev. Another source of error is the drivers, with different varieties having different microstepping accuracy. I was going to do a test of stepper vs magnetic and optical encoders. That fell apart when I took the back off a $10 aliexpress optical encoder. It wasn’t an optical encoder at all but was a magnetic encoder.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    it would be hard to make an optical encoder with enough resolution to test microstep accuracy

  • @johnwalker1471

    @johnwalker1471

    2 ай бұрын

    The encoder I have is 600 ppr or 2400 Quadrature transitions. I have it geared up about 4:1 so close to 10000 quadrature transitions per stepper revolution. I put the project aside when I found out it was magnetic.

  • @sircompo

    @sircompo

    2 ай бұрын

    Just checked an optical rotary encoder I purchased from AliExpress recently. Things weren't looking good when I realised it didn't actually say "optical" on the device or packaging, but was relieved to find it did actually use an optical mechanism, and even had an O-ring sealing the casing. Hopefully I didn't introduce any dust in the couple of seconds it took for me to peek inside.

  • @johnwalker1471

    @johnwalker1471

    2 ай бұрын

    @@sircompoDo you have a link for your encoder?

  • @justRD1
    @justRD1Ай бұрын

    If you introduce a gearbox between your stepper motor and rotary table you can reduce the micro stepping error to a value in arcseconds. My tilting rotary table has a 90:1 gearbox on it.

  • @MCsCreations
    @MCsCreations2 ай бұрын

    Matthias, you drew the jellyfish UFO there! 😂 But really interesting how it works indeed!!! Stay safe there with your family! 🖖😊

  • @aljaz55
    @aljaz552 ай бұрын

    Encoder designer here :) It is funny to watch using stepper motor as a reference for the encoder performance measurement. Right here you created the chicken & egg problem. TBH, your measurement of +/- 0.15 deg of error are quite spot on for a regular magnetic encoder or big stepper motor. Good job. Let me know if you need some other encoder types to continue playing with this technology :)

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    I ordered some other ones, but some advice could be useful. Email me.

  • @Edmorbus
    @Edmorbus2 ай бұрын

    excellent video Thanks for sharing

  • @AnotherBrokenToaster
    @AnotherBrokenToaster2 ай бұрын

    Love your videos, super interesting and straight to the point! I got PTSD seeing that wobble on the adapter holding the magnet hahaha. I was making a rotating platform with a nema17 for calibrating some angle measurement equipment and absolutely could not get the concentricity to be decent using 3d printed adapters.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    I figured the lego would get me close enough, but no. Problem is, there's a fraction of a millimeter of play with the lego shaft in the lego holes, and that was enough to throw thigns off. If you can get consistent to a range of 2 degrees with one of those thingys, you are doing pretty good.

  • @gominosensei2008

    @gominosensei2008

    2 ай бұрын

    ​​@@matthiasrandomstuff2221in astronomy, where those errors matter a lot, they use 2 motors torquing in opposite directions and move by adjusting the difference in torque between the two. Completely eliminates backlash and vibrations in at least one direction, possibly both, depending on where exactly you place the two actuators in the chain

  • @darthjeder
    @darthjeder2 ай бұрын

    Some time ago i ordered some encoders (MagAlpha MA730),some magnets and a flux detector card... The data sheet recommended diametral magnetized ring magnets. Since they did not have the right size i ordered some similar magnets to experiment. What i noticed with the flux detector card is that the ring magnets have a very clear line through the center where diametral disc magnets have an almost homogeneous magnet field around the middle...

  • @analoghardwaretops3976
    @analoghardwaretops39762 ай бұрын

    Even the mounted magnet one can see the magnet wobble in the holder mounted on the shaft...... ideally even the motor shaft when in rotation is machined with a fine cut for "truness" before mounting the magnet holder.....similarly the holder is then machined..lastly the magnet is mounted... This is normally the setup procedure for extremely accurate alignments... Make sure of a really good fit (mating) btwn. shaft & hole & not an interference type fit...magnet face must also run true else it may contribute to errors due to magnetic field strength variation 😊

  • @LarsSveen
    @LarsSveen2 ай бұрын

    Glad to hear someone saying "eye squared see" instead of "eye two see" -- that drives me nuts.

  • @MakerTutor101
    @MakerTutor1012 ай бұрын

    Thanks for sharing

  • @sbellock5
    @sbellock52 ай бұрын

    I understand exactly none of this, will never have any use for it, still watch the whole thing every time.

  • @senorjp21
    @senorjp212 ай бұрын

    Surprisingly accurate

  • @ericwazhung

    @ericwazhung

    2 ай бұрын

    I'd say "surprisingly precise"

  • @ChaotikmindSrc
    @ChaotikmindSrc2 ай бұрын

    Without taking into account the positioning of the magnet or sensor, there is another variable here, the stepper drivers are really not that accurate as you may think, they tends to have deviation from the ideal position, in my field of work we do much higher microstepping that on these drivers (let's call it "continuous" microstepping), then, in the calibration phase, correction are made for each microstepping step, to verify the angle is actually right, once that is done, you ensure a VERY precise angle for the voltages provided to the coils. You just ends up with a big voltage correction table that smooth it all. Problem is here to have a very precise reference, but even without an ideal one, you can still improve the system.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    my whole point was that micrstepping of the drivers isn’t accurately matched to the motor characteristics

  • @ChaotikmindSrc

    @ChaotikmindSrc

    2 ай бұрын

    @@matthiasrandomstuff2221Right, and even if that was the case, each stepper from the same manufacturer is slightly different. For example each DC motor we use, from very reputable sources, are recalibrated in house, same issue

  • @kmcrafting4837
    @kmcrafting48372 ай бұрын

    Makerbase makes an addon unit for converting dumb steppers to closed loop. Fully contained addition, fairly inexpensive too. MakerBase ServoXXD Insert stepper size in mm for XX

  • @Luftbubblan
    @Luftbubblan2 ай бұрын

    Steppers seems like fun to play with. In my case i wan't to try track the movement of the stars. Also requires good precision.

  • @KelikakuCoutin
    @KelikakuCoutin2 ай бұрын

    Solid. Clever. Scintillating rhetoric, and by golly if it wasn't informative as well. Thanks for the content. Keep up the good work. בס'ד

  • @nicholasstalberg7949
    @nicholasstalberg79492 ай бұрын

    I was originally attracted by the woodwork magic but have stayed for everything else, and of course, the woodwork. I have learned so much from you over the years, keep up the good work!

  • @davelowe1977
    @davelowe19772 ай бұрын

    Presumably the angular error is reduced if geared down.

  • @tiagoferreira086
    @tiagoferreira0862 ай бұрын

    You are amazing!

  • @TP-hc4qi
    @TP-hc4qi2 ай бұрын

    You're videos are fasinating. Your mind is great at exploring a new thing in a very quantitative way! (e.g. I heard this, how can I prove or disprove it experimentally? My experiment has a lot of error, what are the source(s) of error? How can I eliminate, reduce or measure the error(s)?) Ridiculously cool!

  • @tennicktenstyl

    @tennicktenstyl

    2 ай бұрын

    that's literally the basics of the scientific method.

  • @TP-hc4qi

    @TP-hc4qi

    2 ай бұрын

    @@tennicktenstyl I know! And so many science KZread personalities don't use it at all! I had almost forgotten it. . . until I got here!

  • @phrozenwun
    @phrozenwun2 ай бұрын

    Just put an additional angular encoder on a worm-drive or other low backlash gear reduction attached to the rotary divider. The primary encoder gives absolute orientation, the other gives high precision relative angular values. Just a thought to help feed the algorithm.

  • @Peter-898
    @Peter-8982 ай бұрын

    Great video! I'd be curious to see what your results are with higher quality magnetic encoders like the AS5047P or MT6701. The AS5600 is kind of the runt of magnetic encoders, its meant to be a replacement for analog potentiometers instead of an encoder for control applications. It also has effectively 10 bit resolution instead of the claimed 12 bit resolution if you factor in the noise from it, but other sensors intended for motor control can have much higher resolutions and tend to perform much better in dynamic applications, as people from the SimpleFOC library community have found.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    Noise is quite small, no LSB noise to be seen

  • @c42cly
    @c42clyАй бұрын

    Great video very interesting....Could this board be used to make a wind vane direction sensor for a rc sailing boat. ? Fitting the magnet to the vane so the wind direction is sensed by the board?

  • @jatag100
    @jatag1002 ай бұрын

    So much fun! Thank you. Would you please post the stepper motor model or link?

  • @steveman1982
    @steveman19822 ай бұрын

    Oh interesting video, as I have some of those magnetic encoders here as well... somewhere...

  • @WatchWesWork
    @WatchWesWork2 ай бұрын

    You should play around with some industrial servos. 31 and even 32 bit optical absolute encoders are available from Fanuc and Renishaw and other big players. 2 - 4 billion counts per revolution, accuracy of .0000001 degrees, I think that's 1/8 of an arcsecond. Unfortunately, the bit rates are so high, they use proprietary serial position outputs instead of raw encoder counts.

  • @meeponinthbit3466
    @meeponinthbit34662 ай бұрын

    Legos too now!!!! Hells yeah. What's past S teir? Because this channel is there.

  • @dalewheat
    @dalewheat2 ай бұрын

    Nice video & thanks for sharing. I’m wondering how much magnetic influence is coming through the stepper motor shaft and biasing your target magnet? The “every four points” clue sure looks like a correlation with the phase changes, even when using the microstepping. If only we had the technology to build some gears and translate that motion away from the motor…? :D

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    its sensitive to lateral magnetism. Any magnetism coming from the shaft would be axial.

  • @InductorMan
    @InductorMan2 ай бұрын

    Hey Matthias, if you're looking for good accuracy for you dividing head project I can recommend the AMT series of capacitive encoders from CUI. I retrofitted my telescope with AMT112S encoders, and with the 0.35 degree field of view I usually use, I always find my target object within half a radius of the center of the field of view, so they really do live up to the 0.2 degree specification they promise. They are capacitive encoders with a captured but floating rotor. This obviously makes them less easy to install than the magnetic encoders (and they are definitely less cheap), but they are not position critical: even if the body of the encoder ends up misaligned to the rotor or the rotor has some radial runout (within reason, ~0.5mm allowable error), they still report correctly. My home-brew telescope retrofit was by no means perfectly accurate. If you want to mount them to a stepper as intended, they are actually very easy to use since that's what the included brackets are designed for. The AMT112S is quadrature output and produces up to 16384 positions per rev (4096 quadrature cycles per rev), but I only used this model because of the limitations of the firmware I wanted to use and the size I had available for mounting: there are more convenient versions that have SPI or UART position output (AMT21 series). There is a larger version that has slightly higher resolution, and also a larger 0.1" pitch connector (the small connector on the AMT112S was hard to obtain and assemble). But this is an older model and actually has worse overall stated accuracy, not sure how good they are.

  • @anernits
    @anernits2 ай бұрын

    If I remember correctly, you can get the sensor status for errors. One of those is the magnet not being detected. I used it to reject the readings while in this state.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    I didn't go for "no magnet error", I just read the magnet field magnitude, as covered in the video.

  • @SuburbanDon
    @SuburbanDon2 ай бұрын

    Pretty cool.

  • @rhidlor8577
    @rhidlor8577Ай бұрын

    that was neat

  • @vincentjean6756
    @vincentjean67562 ай бұрын

    Very cool

  • @bqdavis1
    @bqdavis12 ай бұрын

    I usually don't write a comment just to say I liked a video. But this is an exception. I liked the video.

  • @matthiasrandomstuff2221

    @matthiasrandomstuff2221

    2 ай бұрын

    its an exception that you liked this video? Hmmm...

  • @bqdavis1

    @bqdavis1

    2 ай бұрын

    @@matthiasrandomstuff2221 Not an exception in liking your videos. In fact I can't recall not liking one. An exception in commenting that I liked it. I need to get in the habit.

  • @imqqmi
    @imqqmi2 ай бұрын

    Would the spread be reduced if you use gear reduction like 1:10? You probably don't need the speed for cutting threads and closed loop steppers have speed to spare anyway. Really like seeing you play with this stuff :)