Arduino Closed-loop Stepper Motor: Part 2

  Рет қаралды 197,600

Kris Temmerman

Kris Temmerman

Күн бұрын

Пікірлер: 97
@titter3648
@titter3648 8 жыл бұрын
Nice project! But it seems like you have some backlash issues in your gears, and also some servo dithering issues (but that can be because of the backlash). Why not use a stepper with axles on both sides, and connect the encoder directly on the rear axle so you avoid all backlash issues and also make it simpler and smaller?
@iangraham6730
@iangraham6730 5 жыл бұрын
Excellent job, thanks for sharing! The thing that looked wrong was the backlash in the gears . . Perhaps a belt? Or chain drive would be more precise, or better still, straight to the shaft it the motor had a through shaft.
@rodstartube
@rodstartube 9 жыл бұрын
A lot of mistakes in your encoder transmission. 1.- you chose gears. 2.- Gears pitch is too big for precision. 3.- Gears are lose (backlash between motor & encoder) (watch carefully at about 2:20) 4.- Your aluminum plate (design) does not allow adjusting motor and encoder axis distance to overcome flying gears between them. The good thing is you have nice components. With that backlash, you will never get your Due to monitor & process real motor position, specially right after changing direction. And as Metallica says... "sad but true". PD: I don't know if you already corrected this in a later video, but at least this video shows those problems.
@rodstartube
@rodstartube 9 жыл бұрын
+rodstartube the ideal transmission for this would have been a timing belt, plus a idle pulley you adjust belt tension easily. And by the way another matter: the ratio should be made to match encoder count to step/microstep position, after calibrating 1:1 encoder to motor
@drustan6890
@drustan6890 6 жыл бұрын
do you think its necessary to connect a rotary encoder to a stepper motor to track position or is it just fine to rely on the steps/rev to calculate position?
@karoma7898
@karoma7898 5 жыл бұрын
@@drustan6890 depends on the job you're trying to do, inkjet printers use regular brushed DC motors with encoders and get high precision pictures, while cheap 3d printers don't use encoders resulting in "ghosting" where the motor might lose a step and you get ripples in the print. if your job doesn't need very high precision don't use encoders as they're just more work.
@botak333
@botak333 Жыл бұрын
It is posible to use as5600 magnetic encorder.?
@德益金屬
@德益金屬 9 жыл бұрын
Can you tell me the Encoder you use 3.3v to driver it?The Arduino Due can input 5v ?
@AnwarAlfaqeehAlhusseini
@AnwarAlfaqeehAlhusseini 6 жыл бұрын
hi do you thing its work with spindle lathe to cut thread i mean if we connect this encoder to the spindle or as a spindle encoder or this is something different ?
@bollytrend9
@bollytrend9 8 жыл бұрын
Hello Nice Work But i have Problem while Compliling Because i haven't ClosedloopStepper Library Can I get From Any where?
@talhanagi4084
@talhanagi4084 3 жыл бұрын
can you give me the connection diagram? please
@dargindarginec9561
@dargindarginec9561 6 жыл бұрын
Hi, how did you make a smooth start and a smooth stop?
@watahyahknow
@watahyahknow 7 жыл бұрын
if you use a steppermotor with a dual axle you can mount the optocoupler to the rear of the steppermotor using the same setup you have now , then you dont need to make an axle extention and can mount the steppermotor the normal way of the cnc machine using the 4 mounting bolts
@travismiller5548
@travismiller5548 5 жыл бұрын
and with tech this go 1:1 motor:encoder
@MARS-GREENH0USE
@MARS-GREENH0USE 5 жыл бұрын
How much accuracy can the arduino take???
@3dprintwiz378
@3dprintwiz378 7 жыл бұрын
This is very useful specially when making a robot arm which is under load. But why is it shaking like it is hunting for a position? Is there a way to eliminate the shaking.
@jesustecnoman2514
@jesustecnoman2514 5 жыл бұрын
hello, I want to program the code in arduino sofware but it does not find "# include cinder/app/AppNative.h." Do I need a library that I do not have? my error: arduino-1.8.8\libraries\ClosedLoopStepper\src\ClosedLoopStepperApp.cpp:1:34: fatal error: cinder/app/AppNative.h: No such file or directory I am working with the arduino sofware under windows 10 my arduino version is 1.8.8 ¿can you help me? Thankyou!
@jonathancamacho4473
@jonathancamacho4473 5 жыл бұрын
hello, i had the same problem, I'm not sure but with recent versions don't exist AppNative.h and it works with App.h however, i continue to have problems to compile, if it works with you, could you help?
@jesustecnoman2514
@jesustecnoman2514 5 жыл бұрын
@@jonathancamacho4473 It still does not work. I wait for an answer.
@Masterpj555
@Masterpj555 8 жыл бұрын
wont the closed loop stepper lose information about its current angle when power is lost? I like this digital more precise approach then an analog approach but this part puts me off... imagine having this in a setup where a certain angle too far causes something to break and it would tear itself appart if it loses track of its position.
@KrisTemmermanNP
@KrisTemmermanNP 8 жыл бұрын
+Masterpj555 with my encoder, yes. but if its really critical, you can use a absolute encoder or/and add some end stop/homing sensors.
@Masterpj555
@Masterpj555 8 жыл бұрын
I have trouble sourcing those encoders for a decent price.. on ebay encoders go for like $98 :( I live in The Netherlands. Want to DIY my own servos for projects where more torque is required
@ward8917
@ward8917 8 жыл бұрын
+Masterpj555, If you're ok with waiting for shipment from China (lets say 20-30 days to the Netherlands).. then these will work just fine: www.aliexpress.com/item/AB-Two-phase-5-24V-400-Pulses-Incremental-Optical-Rotary-Encoder/32258485761.html?spm=2114.031010208.3.2.CAB5h0&ws_ab_test=searchweb201556_1,searchweb201644_2_79_78_77_82_80_62_81,searchweb201560_8 (Or ofcourse any other optical rotary encoder you can find, but this is the cheapest I know on aliexpress. :)
@Masterpj555
@Masterpj555 8 жыл бұрын
+Ward Nica Wow this is a great one! I migtht try this next to an normal potentiometer as well. Even if you get the cleanest pot I bet you can have quite some noise and it limits the speed.
@ward8917
@ward8917 8 жыл бұрын
Masterpj555 Normal potentiometers will limit you to 270° (or multiple turns if you take 10-turn pots for instance), but will add absolute position functionality.. If you don't need continuous rotation you could try potentiometers. There are continuous potentiometers but these are quite expensive..
@superabbasalmani6079
@superabbasalmani6079 4 жыл бұрын
Very nice ! Some how you made a counter dear Kris ! Can you or did you use it with some CNC Machines around you ? If yes, which Cam Programm ...please ?🙊🎇🤖🎉
@Aurimantassan
@Aurimantassan 7 жыл бұрын
Hello Kris, I'm new with arduino, but i'm trying to learn more things, so have question. I was looking for closed loop stepper code, and atlast i found it. Perfect work. Your program is written for mac, would be possible to change code to control motor position by serial monitor, "Serial.parseInt". As i said i'm new , some things i steel learning. thank you very much for your work.
@carlostavares6364
@carlostavares6364 9 жыл бұрын
Hi Kris nice project,i also would like to make the same for use on the step motors that I put on my diy cnc,but i never programmed an arduino and i am I little bit confused about the programming codes. I need your help ,do i have to upload al the codes that you have on github or only a specific one? I will appreciate your help to see if i can convert my cnc motors to closed loop to avoid loosing steps. Regards Carlos Tavares
@dinukasheheranbowattha5907
@dinukasheheranbowattha5907 6 жыл бұрын
dear sir.. i know this sound look crazy, but i am going clean energy project and it gave me positive result but unfortunately i don't have much tool like you have, may be you can finish this experiment which i stared, if your interesting i am here to share my project
@Ed19601
@Ed19601 4 жыл бұрын
Great job. Idd something similar with an optical disc. Belg?
@MrNonozor
@MrNonozor 8 жыл бұрын
Where is the next part you are talking about at the end of the video ?? I still don't understand the purpose of this machine...
@sameerk12982
@sameerk12982 4 жыл бұрын
Which C programming setup are you using to program microcontroller
@batder27
@batder27 8 жыл бұрын
Could you please help me? I want to write code to control stepper motor and read pwm from rotary encoder have phase A, B , GND and Power at the same time. my stepper motor connect with encoder as servo motor with encoder. ^_^
@SATYAJEETMASURKAR
@SATYAJEETMASURKAR 5 жыл бұрын
Nice video but I think there is issue in gear ratio.Gears must have same size or you may change analog input multiplier
@edwintoapanta1975
@edwintoapanta1975 4 жыл бұрын
hi, why did you choose different number of gear's teeth
@bitsurfer0101
@bitsurfer0101 8 жыл бұрын
What kind of stepper driver are you using?
@TheSeptuple
@TheSeptuple 8 жыл бұрын
good project can you give me a wiring adruino and step driver for learning.
@bitsurfer0101
@bitsurfer0101 8 жыл бұрын
what gear ratio are you using for the steppers? Does your driver do microstepping?
@noithugian494
@noithugian494 2 жыл бұрын
What software do you write the code on?
@laurencealexis7684
@laurencealexis7684 8 жыл бұрын
why rotary whey not use optical encoder
@ztyy8185
@ztyy8185 9 жыл бұрын
good job, very nice for you to share, thanks!
@steveandamyalso
@steveandamyalso 9 жыл бұрын
You showed a program you wrote to 'remotely' change the parameters of your program. One of the parameters was "kp". Are you only implementing a proportional control algorithm? Have you considered implementing a P-I control algorithm?
@KrisTemmermanNP
@KrisTemmermanNP 9 жыл бұрын
steveandamyalso Yes, I did that with this setup in the next video :) -> kzbin.info/www/bejne/m4DZf56De8dgbtU
@jonaspereira3551
@jonaspereira3551 3 жыл бұрын
impressive! that´s a lot of work!
@manuelafernandaceronvivero5961
@manuelafernandaceronvivero5961 7 жыл бұрын
Hi! i need to implement this control in a 3D printer, but my target position comes from the gcode, how you define your target?
@lantornify
@lantornify 8 жыл бұрын
is there any way I can contact you by email regarding a few questions? thank you
@deweywsu
@deweywsu 9 жыл бұрын
Great videos. Thanks for publishing this! It looks like there is a small amount of shaking/oscillation when the motor comes to rest. Is that overshoot, and then the controller trying to compensate?
@Dancopymus
@Dancopymus 8 жыл бұрын
This is a closed circuit but I did not understand what this experiment! This would serve to beat dough cakes, for example? Sorry for my English and thanks
@arayarock1
@arayarock1 8 жыл бұрын
+Daniel Fernandes esto es un circuito que te permite contar los pasos avanzados a traves del encoder de esa forma no pierdes ningun paso del motor en el caso de que se te pierda uno
@muaathe78
@muaathe78 8 жыл бұрын
Hi, I'm beginner in this domain and, I'm planning to use NEMA 17 with DM442 to build a belt actuator. My I ask if I need Arduino , and if the answer is a positive what type of Arduino shall I purchase ?
@KrisTemmermanNP
@KrisTemmermanNP 8 жыл бұрын
+Muaathe Aziz Hi , yes, or some other kind of micro controller. Any type will do :)
@karoma7898
@karoma7898 5 жыл бұрын
nice video, but avoid the music
@mohammedshiply3373
@mohammedshiply3373 7 жыл бұрын
The github link not found
@daveklebt7732
@daveklebt7732 6 жыл бұрын
where did the gears come from???
@JohanDegraeveAanscharius
@JohanDegraeveAanscharius 6 жыл бұрын
Knap! Muziek valt best mee
@gerardwalsh4724
@gerardwalsh4724 8 жыл бұрын
Hi Kris, Where do/did you define which output pins on the Arduino to connect to the stepper motor Direction and Pull? Thanks, great project by the way - your channel is amazing
@FullFledged2010
@FullFledged2010 5 жыл бұрын
Thats exactly what i like to know?
@omnianti0
@omnianti0 4 жыл бұрын
is their a zero
@geraldozambrinjunior4667
@geraldozambrinjunior4667 9 жыл бұрын
Good job , very good !!!!!
@resanohm6037
@resanohm6037 8 жыл бұрын
hi sir i wish you to help me i need to make closed loop dc motor with linear optical encoder arduino based
@arayarock1
@arayarock1 8 жыл бұрын
take a look at homofaciens youtube chanel
@firmanramadhanpradana9800
@firmanramadhanpradana9800 7 жыл бұрын
Can I ask for your stepper motor mounting design ?
@KrisTemmermanNP
@KrisTemmermanNP 7 жыл бұрын
Sorry, can't seem to find it anymore. but shouldn't be to hard to recreate for you :)
@meannate
@meannate 9 жыл бұрын
Oh man that's really smart.
@lucasezequielblanco1798
@lucasezequielblanco1798 8 жыл бұрын
Hello, Very good your project! I wonder who uses text editor on the Mac (which is black)? Thank you so much !
@KrisTemmermanNP
@KrisTemmermanNP 8 жыл бұрын
+Lucas Ezequiel Blanco Its Xcode, with a custom theme
@lucasezequielblanco1798
@lucasezequielblanco1798 8 жыл бұрын
+Kris Temmerman Could you share your custom Theme? Is very good
@ThinkingAtheos
@ThinkingAtheos 9 жыл бұрын
Would you recommend a stepper motor for a silent follow focusing device?
@KrisTemmermanNP
@KrisTemmermanNP 9 жыл бұрын
Atheos I don't really know. Its probably the easiest way to do it. Thats all i can tell... good luck!
@ThinkingAtheos
@ThinkingAtheos 9 жыл бұрын
Thanks for the quick reply mate, one more question then: Is the thread free to move around when there is no power going to the motor? As in, you can turn it with your hand without any friction?
@sandypune82
@sandypune82 7 жыл бұрын
nice work
@torbjrnludvigsen-hangprint7605
@torbjrnludvigsen-hangprint7605 8 жыл бұрын
I like the music ;)
@precisionmachinetool4893
@precisionmachinetool4893 9 жыл бұрын
Amazing!
@experimentsengineering2623
@experimentsengineering2623 8 жыл бұрын
I am unfortunately unfamiliar with computer code that isn't python, processing, or arduino and even those I am not great at. What code is he using on his computer to interface with the arduino?
@gideonbuckwalter4128
@gideonbuckwalter4128 8 жыл бұрын
+Dominic Mann That is C++. The Arduino language is actually just a C++ library. C++ without classes = C.
@experimentsengineering2623
@experimentsengineering2623 8 жыл бұрын
Thanks a lot I actually know a little c++ do you know where the best place to download the compiler is? Thanks!
@gideonbuckwalter4128
@gideonbuckwalter4128 8 жыл бұрын
I'm super new to C++ also so you'll want do do some research on your own, but I've been using Sublime Text and Terminal (on Mac). Apparently you can also use Xcode on Mac or Visual Studio on Windows.
@experimentsengineering2623
@experimentsengineering2623 8 жыл бұрын
thanks
@fuazexfuaze5484
@fuazexfuaze5484 8 жыл бұрын
You can write the computer interface in Python or Processing, no worries. Apperently he used C++, which is what Arduino uses (in the background), it can be usefull to learn C++, but may be a burden if you only want a simple desktop application.
@santokworkshop
@santokworkshop 9 жыл бұрын
What kind IDE did you use for ARDUINO, it look very helpful. thaks
@KrisTemmermanNP
@KrisTemmermanNP 9 жыл бұрын
san tok I use the Arduino IDE for uploading, but mostly I make libraries in C++ for my projects. So I use Xcode on mac, and VisualStudio on PC for that.
@santokworkshop
@santokworkshop 9 жыл бұрын
***** rare I meet with a person who good in mechanic and also good in control programming, but now I get that person, he is you, really jealous with your skill. :)
@Migueldeservantes
@Migueldeservantes 8 жыл бұрын
How hard is to use a arduino chip in stead of a 5 axis controller board "Using Mach3" ?
@sammflynn6751
@sammflynn6751 4 жыл бұрын
Sir, two questions, firstly ,how do u home it? secondly where is the second video?
@Cuong...nguyen
@Cuong...nguyen 8 жыл бұрын
Hi sir, How to connect between closed-loop stepper motor card V5 studio?
@badayuki7647
@badayuki7647 8 жыл бұрын
we need low cast..
Big Stepper Motors with Arduino
29:43
DroneBot Workshop
Рет қаралды 1,2 МЛН
AS5600 magnetic position encoder - best encoder for stepper motors
48:18
Curious Scientist
Рет қаралды 108 М.
An Unknown Ending💪
00:49
ISSEI / いっせい
Рет қаралды 56 МЛН
Officer Rabbit is so bad. He made Luffy deaf. #funny #supersiblings #comedy
00:18
Funny superhero siblings
Рет қаралды 13 МЛН
Closed loop stepper motors -- very impressive
10:46
Matthias random stuff
Рет қаралды 129 М.
Balancing Ball: PID controller test
4:48
Kris Temmerman
Рет қаралды 217 М.
Upgrade CNC with Closed Loop Steppers?
12:29
Making Stuff with Chris DeHut
Рет қаралды 7 М.
S42B closed loop stepper motors - No more layer shifts!
14:46
Teaching Tech
Рет қаралды 262 М.
Controlling 3 Stepper Motors with the AccelStepper Library for Arduino
11:49
HACKED!: Using an HDD Motor as a Rotary Encoder?!
8:21
GreatScott!
Рет қаралды 1,5 МЛН