Closed loop stepper motors -- very impressive

  Рет қаралды 129,339

Matthias random stuff

Matthias random stuff

Күн бұрын

I bought some "closed loop stepper motors". Experimenting with what they can do. I'm impressed by their power, ability to get back in sync, and less stringent real-time constraints for driving them.
More tech stuff:
woodgears.ca/tech

Пікірлер: 273
@marcoschwanenberger3127
@marcoschwanenberger3127 7 ай бұрын
On my Jointer/Planer combination machine I had to crank the table all the way up and down if I switch the machine, because the dust shroud has to flip under the cutterhead. I replaced the Handwheel with a 1.2Nm closed-loop-stepper. Controlling it via Arduino and the huge advantage of the closed loop stepper here is: I also have a display connected that shows Theoretical Position to 0.1mm. And since the stepper doesn't lose steps, I can really count on that. I essentially have a digital readout with position control (normal and fast travel and a 0.1mm button). Now I don't have to hand-crank anymore, its way faster to switch the machine around, I don't have to bend down (The button is higher up than the hand-crank) and the machine is also way more accurate. The original scale was 1mm accuracy. Now I can thickness down to 0.1mm accuracy - repeatably!
@jstro-hobbytech
@jstro-hobbytech 7 ай бұрын
I've never seen this guy be happy with anything. In my experience most people find problems with things sometimes, but this dude is a know-it-all and has built a following, which makes me scratch my head. I'm not trolling but go back and listen to him prattle on about this and that being wrong with everything. He contributes zero to the engineering content like smaller channels. I keep blocking his channel yet autoplay keeps putting his videos on when I'm tinkering. Haha.
@havenview
@havenview 7 ай бұрын
You can get NEMA planetary gearboxes that will fit right on the end of that stepper for a bunch of extra torque Your speed seems high enough to still have it operate quickly enough
@vasyapupken
@vasyapupken 7 ай бұрын
9:07 - for a rougly the same price (little bit higher) you can get an integrated step-servo in nema 23-24 size. same performance but with 2-3Nm torque. look for IHSS57 type. as for terminology - "servo" is not a motor type it's a drive type. so any motor with closed loop control is a "servo". closed loop AC motor - AC servo, closed loop DC motor - DC servo, closed loop stepper motor - stepper servo. saying that servo is better than stepper is incorrect because stepper can be a servo too )
@fuzzy1dk
@fuzzy1dk 7 ай бұрын
6:55 another option is a stepper controller with a build-in motion controller, f.eks. tmc5160. You just tell when to go and how fast via SPI or UART and it does all the ramping. As long as you don't to synchronous the motion of several motor, like for a CNC, they are easy to use
@theinfernalcraftsman
@theinfernalcraftsman 7 ай бұрын
Used to use those on home built CNC machines . In the past you had to buy double ended stepper motors and add the encoder to it. They have fallen out in favor of DC servo motors now. Much cheaper and easier to do this stuff now than it was 15 years ago. And steppers are far stronger today than they usded to be.
@gbspikyfish
@gbspikyfish 7 ай бұрын
Could you provide a link to that closed loop stepper? I have an application where it would be great if I could just use a Pi rather than an Arduino + separate stepper control.
@mrkattm
@mrkattm 7 ай бұрын
I used closed loop steppers on my home made CNC router, I couldn't be happier with the way it performs and it was so easy to do.
@martinconnelly1473
@martinconnelly1473 7 ай бұрын
I put then on a lathe and a mill and am also very happy with them, they do not get hot in use like the previous open loop motors.
@gielb2001
@gielb2001 7 ай бұрын
from a controls perspective its still a good idea to provide higher order motion profiles in closed loop control systems due to higher order vibrations in the rest of the system if you have a more complex/sensitive system. It will also limit overshoot and such, though I am curious as to how these steppers have their controllers tuned and if you could change them to adapt to your given loads/motion profiles.
@AnnaVannieuwenhuyse
@AnnaVannieuwenhuyse 7 ай бұрын
A third thing to keep in mind when relying on the closed loop driver and not using motion profiles, is that you have no idea how much it's out of position before the move happens. With a motion profile, however, you reduce the likelihood of losing position while also being in control of where it is. That means you can do more complex processing based on that variable.
@TheHookUp
@TheHookUp 7 ай бұрын
Do I have a project in mind for this? No. Did I just buy one anyways? Yes.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
ha ha, neat toy!
@JeffGeerling
@JeffGeerling 7 ай бұрын
That fun little Pi heatsink looks like it's about to take flight!
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
just a bit of aluminium flashing, but surprisingly effective
@josephesposito9173
@josephesposito9173 7 ай бұрын
Could the Pi5 with the RP1 chip do the real time drive of the stepper that Matthias was taking about in a single board?
@felderup
@felderup 7 ай бұрын
@@josephesposito9173 most of those things use a direction pin and a step clock to the driver board, even old fasioned pics will do real time output to the drivers.
@JeffGeerling
@JeffGeerling 7 ай бұрын
As far as I know the RP1 doesn't have any standalone RTOS capabilities that would make it better suited for driving motors. There are still some secrets to it I can't worm out of Raspberry Pi, but I think dedicated controllers are best for any applications where you want stability/predictability.@@josephesposito9173
@jonwally2002
@jonwally2002 7 ай бұрын
I've used a brand of closed loop steppers, ClearPath by Teknic. They allowed for tuning once mounted and all hardware was attached so they could run at their fastest. They were pretty cool to work with.
@robbaron1206
@robbaron1206 7 ай бұрын
Are you going to put one on your screw advance box joint jig like it was originally? Maybe put a pneumatic piston on it to push it through the saw.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
Would be an improvement, but the gears work very well
@davebullard
@davebullard 7 ай бұрын
Thank you. So much quieter too. This is incredibly useful and I'll be buying a couple of these in the near future. I'm capable of goggling "closed loop stepper motor". I wouldn't mind buying them from an affiliate link tho...
@gorak9000
@gorak9000 7 ай бұрын
The affiliate link might also be good to get the right "kind" of closed loop motor, like he discusses at the end
@VarionJimmy
@VarionJimmy 7 ай бұрын
What have you used before? (Yes, I know what this is. 😁)
@TheTecnicamente
@TheTecnicamente 7 ай бұрын
I'm interested too tbh
@joachimschmidt2571
@joachimschmidt2571 7 ай бұрын
same here!
@CaseyConnor
@CaseyConnor 7 ай бұрын
Maybe you don't want to endorse a particular brand, but a name and/or link for these would be appreciated, thanks!
@Tedlasman
@Tedlasman 7 ай бұрын
Can you link to the closed loop stepper motor you got please?
@adamsiwek7995
@adamsiwek7995 7 ай бұрын
Those with a magnet, have a Hall effect encoder. 12 -15 bit so more accurate than most optical.
@robotskirts
@robotskirts 7 ай бұрын
Yeah, hopefully Matthias picks one up because I'm sure they have their own unique quirks.
@jaro6985
@jaro6985 7 ай бұрын
I can't find the resolution of the motor he bought, but, some of the cheap 12-bit magnetic angle encoders have a significant amount of noise and error (look up MT6701). You won't get a true 12-bit position, and may need to calibrate them first as well. Optical encoders have limited error.
@propheteyebert7063
@propheteyebert7063 6 ай бұрын
The magnetic encoder is not the problem. The worst close loop steppers don't behave like servos. They simply send a few extra steps at the end of a move if steps were lost. Better than nothing, but I wouldn't pay much for it. A true servo drive the stepper with the minimum current needed to minimize error.
@jaro6985
@jaro6985 6 ай бұрын
@@propheteyebert7063 yes, you need to use FOC or sine commutation on the stepper which some claim but I have not seen verified yet. Its definitely possible to do.
@donaldklopper
@donaldklopper 7 ай бұрын
Oh man more homework for me now. This might solve several challenges I have with traditional stepper motors in my projects. The additional cost is a pity, but might be a non issue due to the additional complex scenario accuracy. Thanks for making this video.
@wessss
@wessss 7 ай бұрын
Never get here this early. Happy you got your channel back so quick. Really good video. Might be interesting to see these closed loop motors in more "compliant" uses. But would need to overcome the "out of sync" failure. Might be better to have a seperate encoder and handle error correction in the microcontroller.
@defenestrated23
@defenestrated23 7 ай бұрын
Yes doing small+deep on a CnC is tricky, but you can make many very precise thin gears and glue them together
@Don.Challenger
@Don.Challenger 7 ай бұрын
And as we know via Wandel experimentation the glue is stronger than the wood - but can you overlay and stack them as a laminate accurately.
@davidwostrel
@davidwostrel 7 ай бұрын
Now you need to hook that up to your box joint jig
@ThumpertTheFascistCottontail
@ThumpertTheFascistCottontail 7 ай бұрын
a motorized table saw fence would be interesting too.
@Octopusbeak
@Octopusbeak 7 ай бұрын
He did that in the original design, forever ago. The gears are way more practical and reliable :)
@JustinDavidow
@JustinDavidow 7 ай бұрын
For a single motor: this form of closed loop steppers is great. For any multi-axis CNC, the "reaction" time means that the absolute position of the end effector is unknown, as the controller on one axis may already be there, while the other is "making up missed steps". Tracing an arc (for example) with two of these, when pushed anywhere near their limits, will result in inconsistent and difficult to reproduce behavior.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
True enough, but the idea is to give both of them motion curves they can follow. And if the controller somehow pauses for 10 ms, both motors will stop, so still on the path
@Metalcastr
@Metalcastr 7 ай бұрын
Would a computer read each encoder and sync operations that way? Like control other motors if one gets slowed or jammed, to keep a process in-check?
@gregfeneis609
@gregfeneis609 7 ай бұрын
@@Metalcastr Correct. On CNC machines, a simple example of this is feed rate override. When the spindle starts to overload, the feed rate, sometimes multiple axes coordinated, slows down to prevent overloading the spindle motor or ruining the tool or the part being made
@Metalcastr
@Metalcastr 7 ай бұрын
Thank you! @@gregfeneis609
@gregfeneis609
@gregfeneis609 7 ай бұрын
A better example is the standing desk Mathias shows in various videos. Assuming a motor per leg, when one side of the desk is heavily loaded, the controller limits the progress of the lessor loaded motor so that it doesn't race ahead. This keeps the desk level
@overlycranked8674
@overlycranked8674 7 ай бұрын
Excellent walkthrough of the closed loop stepper motors. Could you provide a link for the motor please? As you mentioned options for the motor are kinda confusing.
@andregross7420
@andregross7420 7 ай бұрын
Hey Matthias, I've noticed that you've been making a lot more projects related to automation lately. Do you think you'll ever build a CNC or anything similar?
@winandd8649
@winandd8649 7 ай бұрын
This is actually the first closed loop stepper I've seen with a stepper driver built in 🤔 Normally they all need a separate driver
@newmonengineering
@newmonengineering 7 ай бұрын
I like servo steppers, they are a bit more expensive but they are easy to use and perform very well.
@garys8564
@garys8564 7 ай бұрын
I upgraded my CNC machine to Teknic Clearpath SDSK closed loop steppers. They’re cheaper than servos, but they can be driven with 5V signals. They do require separate 75V DC power supplies. My machine is WAY more powerful and performant, and it doesn’t lose steps. If I have a crash and it does, the controller gets feedback and stops. There are other versions of the motors and they’re easy to control using a Raspberry Pico with PWM or frequency positioning. They’re just amazing. I have some videos of my automatic height dustboot that uses one of those.
@StevePotter
@StevePotter 7 ай бұрын
@gary8564 Please post a link to your videos!
@DreamsOfDragonsFire
@DreamsOfDragonsFire 7 ай бұрын
I wish my rear wiper on my car was like this, and not slowly "progressing" towards downward position throughout the years.
@JamesNewton
@JamesNewton 7 ай бұрын
It's possible to make a really low cost system that does stepper motor type control of a DC (or other) motor with an encoder. I've done it. But the complexity is high, and although it could be simplified into a small module like these, I never found this exact market when I was in that business (I've moved on). kzbin.info/www/bejne/infOppp-maibabs
@adrewfis925
@adrewfis925 5 ай бұрын
But what does it say? “The word is near you, in your mouth and in your heart” (that is, the word of faith which we preach): 9 that if you confess with your mouth the Lord Yeshua ישוע (Jesus) and believe in your heart that God has raised Him from the dead, you will be saved. 10 For with the heart one believes unto righteousness, and with the mouth confession is made unto salvation. 11 For the Scripture says, “Whoever believes on Him will not be put to shame.” 12 For there is no distinction between Jew and Greek, for the same Lord over all is rich to all who call upon Him. 13 For “whoever calls on the name of the YHVH יהוה (LORD) shall be saved.” Romans 10:1-13
@LateNightHacks
@LateNightHacks 7 ай бұрын
just buy a 12Nm one, they are pretty cheap, planetary gearboxes are pretty affordable too, and almost no backlash when the driver faults out, you can re-enable it by cycling the enable pin, no power cycle needed
@jorgeolavarria6772
@jorgeolavarria6772 7 ай бұрын
Hi Matthias, could you share the link for the motor? Thank you!
@Margarinetaylorgrease
@Margarinetaylorgrease 7 ай бұрын
I’m now waiting for Wooden CNC..
@boxingfan5742
@boxingfan5742 2 ай бұрын
Did you have to write anycode specific to rhw closed loop logic, or did you just use the connections from the R232 connector to the driver A+ A-, B+, B- ?
@rklauco
@rklauco 7 ай бұрын
The magnet is FAR more precise than optical check - actually knows actual position even after reboot, while the optical knows only a "distance". They are far better. And some of the magnetic ones can get 36V, giving you plenty of power to control even larger steppers. And as they use position feedback, they only use high currents when necessary, so the load on the actual stepper during standard operation is lower, extending its life span.
@AnnaVannieuwenhuyse
@AnnaVannieuwenhuyse 7 ай бұрын
Not all hall sensor based closed loop drivers are positional feedback drivers. Some really are just step compensation drivers. They are not all on the same level.
@newmonengineering
@newmonengineering 7 ай бұрын
This is mostly true. The magnet does give the angle in relation to the reading chip. But it also has to do with the failsafe software that drives it. Not all firmware acts the same when it is out of sync.
@EnlightenedSavage
@EnlightenedSavage 7 ай бұрын
This is not necessarily true. Careful when making sweeping generalisations.
@rklauco
@rklauco 7 ай бұрын
@@EnlightenedSavage Would you mind to share the details? I, so far, was not able to find optical encoders able to compete with price and ease of installation that would be at least close to precision of magnetic encoders. Especially the need for extended shaft is really the issue on my end.
@skwdenyer
@skwdenyer 7 ай бұрын
That’s not true. There are absolute-position optical sensors available. Doesn’t mean this isn’t a better solution, of course :)
@ebuford
@ebuford 7 ай бұрын
Do you have a link to where you bought these And could you also talk about the dip switch settings? Lastly, I am so glad you recovered your channel so quickly, I was very sad to see that notice on your second channel! I have been watching for years and love this channel!
@CN-stepmotor
@CN-stepmotor 5 ай бұрын
We Are China's closed-loop stepper motor r & D and manufacturers, if there is a lot of demand (more than 1000 sets) , you can contact us directly to buy.
@imqqmi
@imqqmi 7 ай бұрын
It's not that difficult to CNC gears though, just use a 1/8" bit or even smaller bit. The fillet that it gives in the inside corners you can transfer to the larger gear as well and the outside corners for it to mesh properly. But still, your band saw technique still beats a cnc for speed for a single or a few parts what with having to cam, setup/clamp stock and cut and sand the part. CNC really comes into its own for repeatability, 2.5D/3D cutting and larger numbers. I bet if you add a few more gears with a higher gear ratio, that small servo can pull more weight than the stepper motor and do it faster too since it can spin faster and torque at higher speed will improve. But it's no good as a 1:1 replacement. Servos (or the servo controller) can have tuning software to adjust the control loop so it doesn't overshoot/oscillate under certain loads. It's always a trade off of course.
@conorstewart2214
@conorstewart2214 7 ай бұрын
If you are interfacing with any sort of real world hardware, especially hardware that could become unsafe then you really need to be using real time control. You shouldn’t really be shying away from using microcontrollers, even with the closed loop drivers you will still be better controlling it more precisely through an MCU. It’s also really not that much extra work to use an MCU for a relatively simple interfacing application like this where practically all of the calculations can be done on the pi. Setting up communication between the pi and MCU is easy, regardless of if it is UART, I2C, SPI, etc. If you have difficulty using an MCU in your projects and find it annoying or a hassle or that it makes the project more complex then you likely don’t have very good organisation of the project. If you know what you are doing then using a microcontroller in a project like this to drive the steppers should be easy. It’s all very well saying that if the pulses are 10 ms late then it can just jerk and catch up and that you don’t need precise motion curves but that doesn’t work as well as you seem to think it does. That 10 ms delay would be enough to throw the stepper out of sync in the first place (due to inertia) and likely isn’t great for the stepper or drive circuitry due to potentially high current spikes (in those 10 ms the closed loop driver could try and stop the motor, leading to a high acceleration on the motor and high current). For any project using multiple steppers this is totally useless, if your motor control signals are lagging or inconsistent then your system won’t work as well as it is supposed to and at the very least your movement won’t be smooth and you could have artefacts like ringing. You also still need to implement motion curves when using closed loop steppers or you will get bad results, both electrically and mechanically, suddenly stopping or starting the motor leads to high forces and high currents, the high forces can cause issues with things like ringing and resonance and just puts more stress on the system compared to a smoother motion curve.
@SeanLumly
@SeanLumly 5 ай бұрын
This is what love must feel like.. PLEASE be a reasonable price..
@jatag100
@jatag100 7 ай бұрын
Can you post the closed loop stepper you used?
@fuzzy1dk
@fuzzy1dk 7 ай бұрын
9:39 I believe those controllers run real field oriented control, the magnet sensor output a 12bit absolute angle
@jim5148
@jim5148 7 ай бұрын
Great video! Would you share a link to purchase the motor? Thanks!
@CN-stepmotor
@CN-stepmotor 5 ай бұрын
We Are China's closed-loop stepper motor r & D and manufacturers, if there is a lot of demand (more than 1000 sets) , you can contact us directly to buy.
@UTubeGuyJK
@UTubeGuyJK 7 ай бұрын
I think we all wish you had a cnc AND a 3d printer. Not because you need them to make things obviously, but because the rest of us have to rely on those things for our projects. If you had those, I can only imagine all of the awesome things you would discover and share with us about making them work better :)
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
you don't *have* to rely on CNC and 3d printers. Conventional tools cost less than those.
@UTubeGuyJK
@UTubeGuyJK 7 ай бұрын
@@matthiasrandomstuff2221 I think we end up relying on them because we don’t have the skill that people like you have to overcome challenges with conventional tools :)
@cjhoyle
@cjhoyle 7 ай бұрын
You certainly do not speak for all of us.
@UTubeGuyJK
@UTubeGuyJK 7 ай бұрын
@@cjhoyle Correct. A poor wording choice on my part
@BrianBoniMakes
@BrianBoniMakes 7 ай бұрын
For many high torque applications I use Geckodrive DC servo drives. These allow me to repurpose large DC brushed motors up to 80 VDC and 20A. In most cases you have to build your own encoder or a mount for a commercial one but after you figure out how much resolution you really need usually a very simple encoder will suffice. Often I 3D print my encoder assemblies. Industrial motors often have fans that can be removed and the space used to install encoders.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
Oh, cool, just what I want. But I'd have to have a business case to get one of those. I could also get a good size closed loop stepper for less than that.
@Dasol0135
@Dasol0135 6 ай бұрын
Do you have part number, brand or location where you purchased the motor?
@dismayer666
@dismayer666 7 ай бұрын
4:55 As far as I know, stepper motors (like Nema) can get really hot with no risk of failure. I don't remember exact values, but it can get hot that you can't touch it and it still should be ok.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
biggest risk is probalby exceeding the curie point of the permanent magnet
@gamerpaddy
@gamerpaddy 7 ай бұрын
When i went with closed loop on my CNC i had the issue where i had 1.5m long 16-20mm ballscrews attached to it with rigid couplers (after ripping apart flexible ones several times) and it caused a bad feedback in the pid loop . usually you turn the ball-nut at those lenghts but the design didnt allow for that. It became a huge torsion spring that makes the PID loop freak out and screams like its never seen grease in its life at certain feeds.
@JesseSchoch
@JesseSchoch 7 ай бұрын
180w servo's are getting pretty cheap (also with integrated drivers), you should pick one up. torque curve is way better for high speed apps
@thatcrazyguy1971
@thatcrazyguy1971 7 ай бұрын
The question we all have Matthias is, what are you cooking? We are all eager...
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
I'm rather non commital. Just dabbling. But I've used stepper motors for various projects before -- see link in description
@mrab4222
@mrab4222 7 ай бұрын
If one of those motors isn't powerful enough, how about two of them, i.e. one on either side?
@SolarDrew
@SolarDrew 7 ай бұрын
The wheels on the stepper go round and round
@chmedlychmedenstein916
@chmedlychmedenstein916 7 ай бұрын
Now compare that to an Oriental Alpha Step motor and driver.
@gamerpaddy
@gamerpaddy 7 ай бұрын
forget the mkr servo boards they are horrible. hbs57 driver and stepper or get a iHSV closedloop stepper/servo
@thomasvnl
@thomasvnl 7 ай бұрын
Used a lot in 3D printers/CNC machines
@UnhingedHarry
@UnhingedHarry 7 ай бұрын
I have one of those hammers 😂 Good video, thanks.
@MoritzvonSchweinitz
@MoritzvonSchweinitz 7 ай бұрын
Have you tried Trinamic's stepper drivers? I've heard great things about them. They seem to make steppers "kind of" closed loop by measuring currents, and they can detect missed steps and stalls.
@Tedlasman
@Tedlasman 7 ай бұрын
They can detect, but they just error out.
@MoritzvonSchweinitz
@MoritzvonSchweinitz 7 ай бұрын
@@Tedlasman yes, they don't replace those neat closed loop systems, but they would be an upgrade for his old and trusty buh motor, I guess.
@NoelBarlau
@NoelBarlau 7 ай бұрын
Man, I wish these things were available when I converted a mill/drill into a homebrew CNC. It would have made things quite a bit easier.
@dfiction
@dfiction 7 ай бұрын
up next: Matthias builds a CNC!
@HelloKittyFanMan
@HelloKittyFanMan 7 ай бұрын
"Whereas with a stepper motor..." Um... huhh? You were just talking about a stepper motor before that already. "So the tricky thing with a stepper motor is..." and then you compared it to another stepper motor. Huhh? Didn't you mean, for clarity, "closed-loop stepper motor" vs. *"REGULAR"* or "conventional..." "...stepper motor"? Seems so, because just "stepper motor" vs. another stepper motor doesn't make sense. EDIT: I do like that you started saying "conventional" later. But then of course you ruined your improved track record by saying about the closed-loop ones, "and even though they cost quite a bit more than stepper motors..." Oops!
@eDoc2020
@eDoc2020 7 ай бұрын
You can get stable semi-realtime outputs on the Pi if you leverage the chip's DMA functionality. A few years ago I toyed with the "pigpio" library. It lets you create waveforms in software and then the hardware plays it back with perfect timing even if your code gets delayed for a few moments.
@RambozoClown
@RambozoClown 7 ай бұрын
Some of the closed loop steppers like servos can have an autotune feature where they can learn the kind of load they are powering and self adjust to a pretty good motion curve.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
I think most things the stepper would drive would have less inertia as seen from the motor, so it probably does ok with normal loads.
@211teitake
@211teitake 7 ай бұрын
I have no knowledge about electronics and motors but it's still enjoyable and facinating.
@bobweiram6321
@bobweiram6321 7 ай бұрын
Garbage collection on a resource constrained RP2040? If you don't like C, there's always Ada. Extremely fast, efficient with all the high level bells and whistles.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
I'm using a raspberry pi, not the pico.
@JoeMalovich
@JoeMalovich 7 ай бұрын
Can you please evaluate a similar integrated servo?
@johnborton4522
@johnborton4522 5 ай бұрын
LOVE working with Clearpath closed loop servos. Fast, quiet, strong and onboard software and monitoring. Would never go back to steppers.
@Sugar3Glider
@Sugar3Glider 7 ай бұрын
Instead of CNC, why not lasers?
@Craftinges
@Craftinges 7 ай бұрын
Am I the only one having issues with encoder drifting. I use stepper cuz its reliable. if you attach an encoder it will have drifting error which is in gaussian distribution. I mean I used kalman filters in my thesis for Vslam project. After a while encoders shift alot that robot vehicle or drone whatever you use loose its position and orientation. Gyros also have the same drifting problem. SO I dont get it yeah you can use encoder to count skipped steps but as encoder shifts it says your stepper skipped steps but actually didnt the gaussian error caused it noone talks about that? I mean steppers are designed for this purpose for an open loop control. If you have step skips then you need a stronger higher torque motor. I mean you need very high precision encoders like 20-25 bits which can measure almost nanometers then drifting probably causes no problem. But even then its matter of time. If you run robot or drone for hours it will shift eventually cuz error adds up.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
you are losing steps. polling it, not often enough? probably some signal integrity issues. have you tried scoping it out?
@pauceano945
@pauceano945 7 ай бұрын
@matthiasrandomstuff2221 Sorry if you already wrote it somewhere, but I cannot find the reference for the motors you are using and where to buy them. Thanks,
@teenflon
@teenflon 7 ай бұрын
That looks good, I was working on a robotics project and had the same issue, the only issue with optical encoders is the stepper doesnt know where it is when powered on, I was going to try using a hall effect encoder which would know the angle at all times, but not got round to finishing it.
@bzbot09
@bzbot09 7 ай бұрын
Write to EEPROM the last position the servo stops at, every time. On power-up or reset read that last position back then rotate the servo to 0/home, or at least know where you last were mid-code execution. Your implementation will differ from mine of course in my basic rotate between 0-359 degrees only (and never crossing that boundary). Hall and limit switch hysteresis is a real pain, otherwise.
@mahudson3547
@mahudson3547 7 ай бұрын
When in proximity with machines with large motors (high magnetic fields) and noise (VFD motor drives), you may find optical encoders are preferable. Both will need careful positioning, cable routing and magnetic/electrical screening to avoid spurious behaviour. But they are excellent tools
@alexnosheds
@alexnosheds 7 ай бұрын
9:01 that sounded and looked like it jamming instead of maxing out? Might have just moved a tiny bit since only temporarily clamped… Though it’s easy for me to say that from my armchair 😂
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
A gear with more than 6 teeth would be more efficient too, but then I'd need to re-make the other gear too. If I want to switch this to a closed loop motor, I justh ave to re-make both gears, and get a bigger motor.
@vortextube
@vortextube 7 ай бұрын
I’ve been using motors from Lin Engineering. Similar but commanded over serial.
@copper280z
@copper280z 7 ай бұрын
The magnetic encoders can work really well, and commonly have resolution ranging from 14 bits (16384 cpr) to 21 bits (2M cpr). Step loss correction vs field oriented control is entirely decided in the firmware, and I've used the magnetic encoders to great effect in my own projects with field oriented control. I think the closed source firmware for the super cheap mks stepper servos is likely the biggest problem with them, not the encoder.
@TheGmodUser
@TheGmodUser 7 ай бұрын
The cheap boards with the glued magnet, uses the same encoder chip as "proper" servo's, it performans about the same, its more janky though.
@dave20874
@dave20874 7 ай бұрын
Very interesting! The closed loop steppers look like a real winner. BTW, I've used magnetic encoders with FRC robotics and they can resolve 4096 counts per revolution. That may be better, actually, than what the optical encoder is giving you.
@felderup
@felderup 7 ай бұрын
i've been looking at using CHEAP motors with glass scales, interfacing them with the cnc controller is an absolute pain without spending much bank on a mesa card. so, for semi-auto drilling, i've had to brush off the old ttl circuit design files in my faltering memory. just today struck on the idea of using digital comparators with bcd counters and old fashioned 74ls74 d flip flops to read the encoders, the trick i've thought of is using a target count, a count from the scales, then using the comparator outputs, which are 4bits per, to control the speed through a switched resistor network. i've got a dro waiting in my jungle site cart, my design will probably be more expensive if i sold it in small amounts, but pretty interesting for the other weirdos out there, or for those that want to learn ttl, for some odd reason, many use arduinos for such a simple thing, but hardware works fine.
@1pcfred
@1pcfred 7 ай бұрын
I bet that Superior Electric stepper motor was stronger when it was newer. Magnets just don't last forever.
@cadsonmikael9119
@cadsonmikael9119 7 ай бұрын
Neo mags hold 99% of original capacity from when new, if they are not over heated. Just fiy.
@1pcfred
@1pcfred 7 ай бұрын
@@cadsonmikael9119 beyond the permanent magnets there's the windings too. We've changed how we make steppers over time as how we use them has changed. With modern electronics we can run the motors faster but to do that we've had to wind the motors themselves differently. In the past they had different issues to contend with. So they just went the sucky route. It didn't seem so bad to them. Old motors are low current high inductance and high voltage. New motors are the opposite.
@robertfallows1054
@robertfallows1054 7 ай бұрын
Do you have any info on these stepper motors? A link? I looked in description but didn’t see anything. Are they 12v ?
@Gabriel-kz8ns
@Gabriel-kz8ns 7 ай бұрын
Controlling time sensitive things scales in complexity really fast, eventually when the thing you want to build is complex enough it would be easier having mcus controlling the movement instead to compensate and chase time bumps on a non RTOS, then the main software just tells how much to move and its somebody else problem... you already have an extra microcontroller on the closed loop control... its just another one.. lol!
@scottduckworth3299
@scottduckworth3299 7 ай бұрын
My current project involves closed loop stepper motors with a discrete driver, but I'm tapping into the motor's encoder signal with a microcontroller timer peripheral so that it always knows the position of the motor, even when it stalls. I want to avoid the condition that you demonstrated where the motor stalls too far into the "overload" range and the driver shuts down, then needs a power cycle to recover. I'm just having the microcontroller send steps in the direction of the stall to keep the driver outside of the "overload" range. So far I've been testing with a 4 Nm NEMA24, but I just got a 12 Nm NEMA34 to evaluate... That thing is a beast!
@propheteyebert7063
@propheteyebert7063 6 ай бұрын
I'm curious what application require that.
@JGnLAU8OAWF6
@JGnLAU8OAWF6 7 ай бұрын
Servo motors aren't a lot more expensive (something like iHSV57, also known as a "Clearpath-Killer").
@paristo
@paristo 7 ай бұрын
Stepper motors are fine for the gruden implementations, where it doesnt matter where something ends. And compensate something with just more power. But these computerized allow so much great things be done in modern era... These are fancy tools for DIY for future creators.
@executive
@executive 7 ай бұрын
that's a really stubborn motor. It looks ready to remove your hand just to stay in position.
@HelloKittyFanMan
@HelloKittyFanMan 7 ай бұрын
"I can just treat that like it was a stepper motor..." Of course; that's because it IS one.
@gabrieldai88
@gabrieldai88 7 ай бұрын
have you considered building a CNC from scratch? I would watch some videos about that.
@MCsCreations
@MCsCreations 7 ай бұрын
Very interesting motor indeed, Matthias! 😃 But I wonder about sensored brushless motor, how they work. All I know is that they're used for pretty expensive rc cars. Anyway, stay safe there with your family! 🖖😊
@matthiasrandomstuff2221
@matthiasrandomstuff2221 7 ай бұрын
also used in cheap printers, but not as a module. just a. heap motor and an optical encoder feeding into the main pcb.
@MCsCreations
@MCsCreations 7 ай бұрын
@matthiasrandomstuff2221 No, those are different. I think they use magnetism for that... But I'm really not sure.
@JohnSmith-pn2vl
@JohnSmith-pn2vl 5 ай бұрын
how have you not build your own cnc yet, with your programming skills and everything the sky is the limit :)
@schrodingerscat1863
@schrodingerscat1863 7 ай бұрын
Those closed loop steppers really are quite impressive, do they have the ability to output the encoder signal or have a real time positional data feed? This would allow dynamic tuning of motion profiles with the right software.
@sovahc
@sovahc 3 ай бұрын
Just make CNC bandsaw 😸
@somerandomdude4300
@somerandomdude4300 7 ай бұрын
You might want to look into the Odrive, its an open source brushless motor controller designed for use with encoders, it supports up to 100A so you can get a crazy amount of torque and speed for not a whole lot of money.
@bradley3549
@bradley3549 7 ай бұрын
Actually, I think this might be just the solution I've been needing without knowing it. Been wanting to make a pet feeder that was both accurate and reliable but also simple. And the drive system always turned me off. Not satisfied with simply running a brushed DC motor for a specific time. I think a Nema 17 with a similar control scheme to this one would check all the boxes. Provide feedback if the mechanism jammed. Could run on an ESP32 with no quirky issues and no extra components!
@onjofilms
@onjofilms 7 ай бұрын
You have all the knowledge and material now to make a transformer robot that shoots pennies at mice.
@theaveragepro1749
@theaveragepro1749 5 ай бұрын
I believe the ones that detect back emf instead of optical are also more efficient, since they can tell how much force is on the shaft / magnets instead of just position and can output the exact amount of power to counter act it.
@roboman2444
@roboman2444 7 ай бұрын
Mathias, there are stepper drivers that support non-realtime interfaces. They are usually expensive and designed for industrial or CNC systems, though. I'm sure someone has designed and developed a nice hobbyist grade one out of a cheap micro-controller, though. Being able to send "+500 steps at 300steps/second" over i2c or uart and then not having to worry about timing would be really nice.
@pablorodriguez6318
@pablorodriguez6318 7 ай бұрын
5:25 I think that that makes sense, you are asking to perform a greater work, more torque, and either lifting the weight or lowering it is pumping the coils to lift or brake.
@aleksandarbozic7050
@aleksandarbozic7050 7 ай бұрын
can you post a link to the page where to buy this stepper with encoder, please? Thanks in advance.
@CN-stepmotor
@CN-stepmotor 5 ай бұрын
We Are China's closed-loop stepper motor r & D and manufacturers, if there is a lot of demand (more than 1000 sets) , you can contact us directly to buy.
@OnionKnight541
@OnionKnight541 7 ай бұрын
what do you use a stepper motor for?
@bschwand
@bschwand 7 ай бұрын
regarding the closed loop controller that use a magnet glued on the shaft, I do not see any issue with that instead of an optical encoder. Those hall angular sensors have much higher resolution and speed than the usual optical encoders.
@fuzzy1dk
@fuzzy1dk 7 ай бұрын
a closed loop stepper and a brushless servo is essentially the same. The advantage of a closed loop stepper is higher torque at the cost of lower max speed so you might be able to skip a gear
@hankb7725
@hankb7725 5 ай бұрын
how do you restrict it to say 180 degrees? In your example it seemed to rotate all the way around
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
If you only want it to turn 180 degrees, then tell it to turn 180 degrees instead of telling it to turn all the way around
@ahbushnell1
@ahbushnell1 7 ай бұрын
Make gears with 3D print. Of course it may not be strong enough.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 50 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 38 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Fnirsi LRC-ST1: Cool measuring device but terrible tweezers
10:48
Matthias random stuff
Рет қаралды 13 М.
DIY Metal 3D Printing - Success
38:35
Metal Matters
Рет қаралды 106 М.
Sucking down on this cone makes it rise, and Feynman sprinkler
9:33
Matthias random stuff
Рет қаралды 115 М.
Linear position with a rotary magnetic encoder
8:26
Matthias random stuff
Рет қаралды 50 М.
DIY Micro Steam Powerplant
19:59
Hyperspace Pirate
Рет қаралды 182 М.
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,2 МЛН
Building an Internal Cycloidal Robotic Actuator
19:01
Aaed Musa
Рет қаралды 584 М.
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 50 МЛН