Closed loop stepper motors -- very impressive

  Рет қаралды 121,229

Matthias random stuff

Matthias random stuff

5 ай бұрын

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

Пікірлер: 264
@marcoschwanenberger3127
@marcoschwanenberger3127 5 ай бұрын
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 5 ай бұрын
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.
@mrkattm
@mrkattm 5 ай бұрын
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 5 ай бұрын
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.
@theinfernalcraftsman
@theinfernalcraftsman 5 ай бұрын
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.
@havenview
@havenview 5 ай бұрын
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
@fuzzy1dk
@fuzzy1dk 5 ай бұрын
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
@donaldklopper
@donaldklopper 5 ай бұрын
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.
@jonwally2002
@jonwally2002 5 ай бұрын
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.
@chriscardwell3495
@chriscardwell3495 5 ай бұрын
Looking forward to seeing all teh projects with these stepper motors
@jjcc8379
@jjcc8379 5 ай бұрын
Nice to see you discovering the "joys" of closed loop :) Be carefull though and safety first :)
@wessss
@wessss 5 ай бұрын
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.
@vasyapupken
@vasyapupken 5 ай бұрын
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 )
@davebullard
@davebullard 5 ай бұрын
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 5 ай бұрын
The affiliate link might also be good to get the right "kind" of closed loop motor, like he discusses at the end
@VarionJimmy
@VarionJimmy 5 ай бұрын
What have you used before? (Yes, I know what this is. 😁)
@TheTecnicamente
@TheTecnicamente 5 ай бұрын
I'm interested too tbh
@joachimschmidt2571
@joachimschmidt2571 5 ай бұрын
same here!
@211teitake
@211teitake 5 ай бұрын
I have no knowledge about electronics and motors but it's still enjoyable and facinating.
@JustinDavidow
@JustinDavidow 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@@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 5 ай бұрын
Thank you! @@gregfeneis609
@gregfeneis609
@gregfeneis609 5 ай бұрын
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
@gabriel-vanzandycke
@gabriel-vanzandycke 5 ай бұрын
I love your videos Matthias!
@engineeringentropy8965
@engineeringentropy8965 5 ай бұрын
Great video, thanks for sharing what you learned!
@newmonengineering
@newmonengineering 5 ай бұрын
I like servo steppers, they are a bit more expensive but they are easy to use and perform very well.
@gielb2001
@gielb2001 5 ай бұрын
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 5 ай бұрын
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.
@JeffGeerling
@JeffGeerling 5 ай бұрын
That fun little Pi heatsink looks like it's about to take flight!
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
just a bit of aluminium flashing, but surprisingly effective
@josephesposito9173
@josephesposito9173 5 ай бұрын
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 5 ай бұрын
@@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 5 ай бұрын
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
@scottduckworth3299
@scottduckworth3299 5 ай бұрын
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 4 ай бұрын
I'm curious what application require that.
@garys8564
@garys8564 5 ай бұрын
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 5 ай бұрын
@gary8564 Please post a link to your videos!
@defenestrated23
@defenestrated23 5 ай бұрын
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 5 ай бұрын
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.
@FunctionalPrintFriday
@FunctionalPrintFriday 5 ай бұрын
great explanation and demo, thx!
@roboman2444
@roboman2444 5 ай бұрын
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.
@JohnSmith-pn2vl
@JohnSmith-pn2vl 3 ай бұрын
how have you not build your own cnc yet, with your programming skills and everything the sky is the limit :)
@bradley3549
@bradley3549 5 ай бұрын
ooh, super excited about this subject. These have really improved and come way down in price in recent years.
@1pcfred
@1pcfred 5 ай бұрын
Cheap stuff be cheap. The good stuff still costs a lot.
@bradley3549
@bradley3549 5 ай бұрын
@@1pcfred Always. Though I think it's fair to say the pretty good stuff has also come down a lot. The ClearPath Servos are quite affordable relative to the best available 20 years ago.
@bradley3549
@bradley3549 5 ай бұрын
@@1pcfred I guess it's a matter of relativity though. $3-400 for a Nema34 self-contained, programmable, closed loop servo drive with enough power to move a serious machine is a bargain. Even if it's maybe not 'cheap' by hobbyist standards. I paid nearly that much for comparable dumb stepper motors not that long ago.
@1pcfred
@1pcfred 5 ай бұрын
@@bradley3549 I haven't priced anything in the market lately but generally prices do not drop for quality merchandise. ClearPath is a newcomer in the market. I don't think they were around 20 years ago. Perhaps they were and just were not very high profile? At any rate it was nothing I was familiar with in the past. Slapping drives on motors seems like a monumentally stupid idea to me on the face of it purely from a thermal standpoint. But whatever.
@adamsiwek7995
@adamsiwek7995 5 ай бұрын
Those with a magnet, have a Hall effect encoder. 12 -15 bit so more accurate than most optical.
@robotskirts
@robotskirts 5 ай бұрын
Yeah, hopefully Matthias picks one up because I'm sure they have their own unique quirks.
@jaro6985
@jaro6985 5 ай бұрын
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 4 ай бұрын
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 4 ай бұрын
@@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.
@davidwostrel
@davidwostrel 5 ай бұрын
Now you need to hook that up to your box joint jig
@ThumpertTheFascistCottontail
@ThumpertTheFascistCottontail 5 ай бұрын
a motorized table saw fence would be interesting too.
@Octopusbeak
@Octopusbeak 5 ай бұрын
He did that in the original design, forever ago. The gears are way more practical and reliable :)
@UTubeGuyJK
@UTubeGuyJK 5 ай бұрын
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 5 ай бұрын
you don't *have* to rely on CNC and 3d printers. Conventional tools cost less than those.
@UTubeGuyJK
@UTubeGuyJK 5 ай бұрын
@@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 5 ай бұрын
You certainly do not speak for all of us.
@UTubeGuyJK
@UTubeGuyJK 5 ай бұрын
@@cjhoyle Correct. A poor wording choice on my part
@dave20874
@dave20874 5 ай бұрын
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.
@bryngerard4334
@bryngerard4334 5 ай бұрын
I have these closed loop steppers on a Farmbot that I purchased in China a couple years back. Talking with the supplier, he told me that they were looking to replace the stepper motors and the Farmduino with RS423 closed loop steppers. Via RS423, the stepper can be told how far to go and it will just go there. Under certain circumstance these seem useful but there are bound to be some limitations.
@CN-stepmotor
@CN-stepmotor 3 ай бұрын
The motor and drive integrated closed-loop stepper motor in the video is produced by our factory. Please consult me if you need. Our algorithm will be better, with a 485 communication version
@OldePhart
@OldePhart 5 ай бұрын
Clearpath SD nema 34 are a beast. I have them on my CNC
@BrianBoniMakes
@BrianBoniMakes 5 ай бұрын
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 5 ай бұрын
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.
@johnborton4522
@johnborton4522 3 ай бұрын
LOVE working with Clearpath closed loop servos. Fast, quiet, strong and onboard software and monitoring. Would never go back to steppers.
@eDoc2020
@eDoc2020 5 ай бұрын
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.
@copper280z
@copper280z 5 ай бұрын
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.
@gamerpaddy
@gamerpaddy 5 ай бұрын
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.
@gbspikyfish
@gbspikyfish 5 ай бұрын
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.
@pierrec1590
@pierrec1590 5 ай бұрын
Fascinating!
@theaveragepro1749
@theaveragepro1749 3 ай бұрын
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.
@mahudson3547
@mahudson3547 4 ай бұрын
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
@TedVanSlyck
@TedVanSlyck 5 ай бұрын
I appreciate that you make things by hand rather than CNC.
@paristo
@paristo 5 ай бұрын
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.
@Luftbubblan
@Luftbubblan 3 ай бұрын
Would love to try a motor like that some day.
@DreamsOfDragonsFire
@DreamsOfDragonsFire 5 ай бұрын
I wish my rear wiper on my car was like this, and not slowly "progressing" towards downward position throughout the years.
@RambozoClown
@RambozoClown 5 ай бұрын
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 5 ай бұрын
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.
@JoseSilveira-newhandleforYT
@JoseSilveira-newhandleforYT 5 ай бұрын
Very interesting! I wonder what could you be building to use these? I guess we shall have to wait 🙂
@SolarDrew
@SolarDrew 5 ай бұрын
The wheels on the stepper go round and round
@teenflon
@teenflon 5 ай бұрын
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 5 ай бұрын
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.
@overlycranked8674
@overlycranked8674 5 ай бұрын
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.
@somerandomdude4300
@somerandomdude4300 5 ай бұрын
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.
@fuzzy1dk
@fuzzy1dk 5 ай бұрын
9:39 I believe those controllers run real field oriented control, the magnet sensor output a 12bit absolute angle
@bschwand
@bschwand 5 ай бұрын
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.
@thomasvnl
@thomasvnl 5 ай бұрын
Used a lot in 3D printers/CNC machines
@FrankGraffagnino
@FrankGraffagnino 5 ай бұрын
we should get a "stepper killer" vendor to sponsor you with some motors
@jstro-hobbytech
@jstro-hobbytech 5 ай бұрын
He'd get more sponsors if he didn't complain so much about everything he's ever been given. What do I know though. I keep blocking his channel but yt keeps serving me his drivel. He complained about that 20 year old dso he bought for not being feature rich enough ffs. He makes about 20k cad a month I suspect and can easily afford a decent one.
@Margarinetaylorgrease
@Margarinetaylorgrease 5 ай бұрын
I’m now waiting for Wooden CNC..
@NoelBarlau
@NoelBarlau 5 ай бұрын
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.
@TheHookUp
@TheHookUp 5 ай бұрын
Do I have a project in mind for this? No. Did I just buy one anyways? Yes.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
ha ha, neat toy!
@winandd8649
@winandd8649 5 ай бұрын
This is actually the first closed loop stepper I've seen with a stepper driver built in 🤔 Normally they all need a separate driver
@felderup
@felderup 5 ай бұрын
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.
@ebuford
@ebuford 5 ай бұрын
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 3 ай бұрын
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.
@RogierYou
@RogierYou 5 ай бұрын
Very cool
@robbaron1206
@robbaron1206 5 ай бұрын
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 5 ай бұрын
Would be an improvement, but the gears work very well
@dismayer666
@dismayer666 5 ай бұрын
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 5 ай бұрын
biggest risk is probalby exceeding the curie point of the permanent magnet
@pablorodriguez6318
@pablorodriguez6318 5 ай бұрын
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.
@Tedlasman
@Tedlasman 5 ай бұрын
Can you link to the closed loop stepper motor you got please?
@SeanLumly
@SeanLumly 3 ай бұрын
This is what love must feel like.. PLEASE be a reasonable price..
@CN-stepmotor
@CN-stepmotor 3 ай бұрын
The motor and drive integrated closed-loop stepper motor in the video is produced by our factory. Please consult me if you need.🎉
@matthiasrandomstuff2221
@matthiasrandomstuff2221 3 ай бұрын
send me an email
@JoeMalovich
@JoeMalovich 5 ай бұрын
Can you please evaluate a similar integrated servo?
@coxsj
@coxsj 5 ай бұрын
+1 for pliers hammer at 7:57! 😄
@bradley3549
@bradley3549 5 ай бұрын
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!
@imqqmi
@imqqmi 5 ай бұрын
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.
@andregross7420
@andregross7420 5 ай бұрын
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?
@HelloKittyFanMan
@HelloKittyFanMan 5 ай бұрын
Yeah, when you get a stepper motor out of synch, basically you'd have to realign it as with a standard floppy disk drive (but not the more modern kind like Iomega Zip and Clik!). My dad used to have to take our Commodore 1541 over to the shop to realign the drive, but then we got 1541/1571 Drive Alignment and I could follow the relatively simple directions to realign it myself even as a mere kid.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
The 1541 used a stepper motor to move the head. It had no means of detecting where the head actually was, so the only way to know was to move the head in one direction until it hit the stop, and skipping steps while at it. Making a horrible noise while it did that. And it always ended up doing that when it got confused. So when you heard that sound, you knew, something was going bad with the disk!
@HelloKittyFanMan
@HelloKittyFanMan 5 ай бұрын
@@matthiasrandomstuff2221: Not necessarily going bad. It and similar drives would make that sound for other reasons too. Drives like the 1541 make that sound when they start a full format, so it doesn't mean anything is going bad. But after a while, the drive would make that sound a lot more than normal, and that is because it started to get out alignment, meaning that the drive was bad more than the disk. But yes, it was caused by bad disks sometimes too. I wouldn't call that sound hugely horrible, though.
@vortextube
@vortextube 5 ай бұрын
I’ve been using motors from Lin Engineering. Similar but commanded over serial.
@HelloKittyFanMan
@HelloKittyFanMan 5 ай бұрын
"I can just treat that like it was a stepper motor..." Of course; that's because it IS one.
@thatcrazyguy1971
@thatcrazyguy1971 5 ай бұрын
The question we all have Matthias is, what are you cooking? We are all eager...
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
I'm rather non commital. Just dabbling. But I've used stepper motors for various projects before -- see link in description
@jamisonlm3
@jamisonlm3 5 ай бұрын
A future cnc machine video is in the works?
@jorgeolavarria6772
@jorgeolavarria6772 5 ай бұрын
Hi Matthias, could you share the link for the motor? Thank you!
@LateNightHacks
@LateNightHacks 5 ай бұрын
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
@MCsCreations
@MCsCreations 5 ай бұрын
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 5 ай бұрын
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 5 ай бұрын
@matthiasrandomstuff2221 No, those are different. I think they use magnetism for that... But I'm really not sure.
@boxingfan5742
@boxingfan5742 5 күн бұрын
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- ?
@intelligenceservices
@intelligenceservices 5 ай бұрын
what if you used a wood gear reduction, how much newton meter advantage could you potentially get?
@conorstewart2214
@conorstewart2214 5 ай бұрын
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.
@schrodingerscat1863
@schrodingerscat1863 5 ай бұрын
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.
@MoritzvonSchweinitz
@MoritzvonSchweinitz 5 ай бұрын
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 5 ай бұрын
They can detect, but they just error out.
@MoritzvonSchweinitz
@MoritzvonSchweinitz 5 ай бұрын
@@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.
@fuzzy1dk
@fuzzy1dk 5 ай бұрын
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
@CaseyConnor
@CaseyConnor 5 ай бұрын
Maybe you don't want to endorse a particular brand, but a name and/or link for these would be appreciated, thanks!
@pauceano945
@pauceano945 5 ай бұрын
@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,
@arkitson
@arkitson 5 ай бұрын
7:58 Ahh, pliers - the other hammer!
@UnhingedHarry
@UnhingedHarry 5 ай бұрын
I have one of those hammers 😂 Good video, thanks.
@dfiction
@dfiction 4 ай бұрын
up next: Matthias builds a CNC!
@AttilaAsztalos
@AttilaAsztalos 5 ай бұрын
Nice as long as you only need one of them. As soon as you need two to coordinate PRECISELY which one is where when (such as any X-Y CNC mill/printer), you're SOL.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
in that case, I just wouldn't give them motions that are impossible to follow.
@AttilaAsztalos
@AttilaAsztalos 5 ай бұрын
@@matthiasrandomstuff2221 this has nothing to do with ability of the motors to follow the directed path and everything to do with the CNC controller being no longer able to control the actual path if it doesn't control the acceleration curves itself - which it doesn't, this being the whole point of having the servo in charge.
@TheGmodUser
@TheGmodUser 5 ай бұрын
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.
@messaoudkrioua5002
@messaoudkrioua5002 5 ай бұрын
9:00 .... I think that if you used a large pulley and a small pulley on the motor instead of the gear, it would make the motor more torque
@Afraithe
@Afraithe 5 ай бұрын
Can you gear 3 together to get some more power from them?
@jatag100
@jatag100 5 ай бұрын
Can you post the closed loop stepper you used?
@jim5148
@jim5148 5 ай бұрын
Great video! Would you share a link to purchase the motor? Thanks!
@CN-stepmotor
@CN-stepmotor 3 ай бұрын
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.
@JeromeDemers
@JeromeDemers 5 ай бұрын
does your strength tester take a picture when it fails!? I see image @8:13
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
yes, at start and at failure
@punishedfoxo
@punishedfoxo 5 ай бұрын
We use these a lot in industry, way more than steppers with an external controller. Specifically, AMCI SMD motors. All you need to use them is the motor, a 24VDC supply, a 5 core power cable and a 4 core ethernet cable. Just avoid programming them with Studio 5000, it's simply a chore to do anything with that program with steppers.
@matthiasrandomstuff2221
@matthiasrandomstuff2221 5 ай бұрын
just looked those up, pretty expensive. When you don't have a business case, hard to justify the cost.
@punishedfoxo
@punishedfoxo 5 ай бұрын
​@@matthiasrandomstuff2221 To be fair, we're using them on machines for medical device manufacturing. But for personal projects, I've been picking up second hand motors, removing the electronics and encoder module and just swapping them over to a motor from Aliexpress.
The 3D printer with no belts: The Peopoly Magneto X uses closed-loop linear motors!
26:31
Made with Layers (Thomas Sanladerer)
Рет қаралды 401 М.
How bad you get zapped before a GFCI trips
8:04
Matthias random stuff
Рет қаралды 60 М.
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 15 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 25 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
HYDRAULIC PRESS VS ARMOR, USA AND RUSSIA
10:16
Crazy Hydraulic Press
Рет қаралды 43 М.
Fans; High is next to Off on purpose
17:48
Technology Connections
Рет қаралды 4,3 МЛН
I made a giant flying ceiling fan (and battled 100 RC airplanes)
26:17
High precision speed reducer using rope
20:19
Aaed Musa
Рет қаралды 1,4 МЛН
Sucking down on this cone makes it rise, and Feynman sprinkler
9:33
Matthias random stuff
Рет қаралды 114 М.
This Car Travels Farther Than You Push It
13:42
Tom Stanton
Рет қаралды 2,9 МЛН
MISS CIRCLE STUDENTS BULLY ME!
00:12
Andreas Eskander
Рет қаралды 15 МЛН