How to "Home" Stepper Motors using Limit Switches - Tutorial using Arduino and Easy Driver

  Рет қаралды 114,221

Brainy-Bits

Brainy-Bits

Күн бұрын

Full tutorial available here: www.brainy-bits.com/homing-st...
Facebook: / brainybits
Twitter: / brainy_bits
Follow us on Facebook and Twitter to get notified when we post new stuff!
You can find more information about our tutorials on our website: brainy-bits.com/

Пікірлер: 87
@michaelcostello6991
@michaelcostello6991 4 жыл бұрын
Really great lecture. Will watch this a few times. Never understood how homing a motor worked before.
@rudibudi3223
@rudibudi3223 3 жыл бұрын
Definitely something that i will need in a few days. Awesome.
@WideVisionMetalFab
@WideVisionMetalFab 7 жыл бұрын
Good tutorial. "Homing" is definitely a good thing! Oh, and good luck with your garage build.
@reinerhildebrand5915
@reinerhildebrand5915 3 жыл бұрын
Thank you so much, sir, this was what I was looking for a long time. Will try it out soon. And sorry for your barn and the lawn mover.
@doverivermedia3937
@doverivermedia3937 Жыл бұрын
Very insightful and helpful. Thanks for sharing from the UK.
@kushumtim
@kushumtim 6 жыл бұрын
Really helpful video. Could you please mention the details about the limit switch, where it can be found?
@Sparklift
@Sparklift 4 жыл бұрын
Thank you... very useful video. just watching this i could code my own camera slider with homing and limit switches. Thanks again. keep up the good work.
@BrainybitsCanada
@BrainybitsCanada 4 жыл бұрын
Thank you for the comment and for watching. I've made a new motorized slider with LCD screen here if you want to check that out : kzbin.info/www/bejne/javVg3yGna6cl7c
@Sparklift
@Sparklift 4 жыл бұрын
@@BrainybitsCanada Sure
@JimmyNahlousVisuals
@JimmyNahlousVisuals 5 жыл бұрын
Should I use 2 switches to be safe in cases where the gears might grind? I've got a Rack and pinion set up where at almost full extension of the rack, the ram cannot physically extend any further. Should I have a switch at the closed and fully extended positions to prevent gear grinding? This to me sounds better in case some steps were missed. Thoughts? Thanks for the video :)
@lisastothard3397
@lisastothard3397 3 жыл бұрын
Great video. Thanks for taking the time. It has help me so much being new to this. Is there a way to speed up the homing? Just my track is 2m long and would take forever if it was near the end of the run. Thanks again
@makcoll
@makcoll 2 жыл бұрын
I haven’t read all the comments and sorry if this has been answered but can this be done with proximity switches too? Same code? Absolutely love this channel by the way, very well presented material and you explain everything with simplicity which is amazing for people starting out, like me :)
@KK-fh1ds
@KK-fh1ds 5 жыл бұрын
Thanks man 🙂👍you're a good guy
@webslinger2011
@webslinger2011 6 жыл бұрын
Hi! any chance you can use an ultrasonic sensor to set limits?
@VasilisKarastergios
@VasilisKarastergios 7 жыл бұрын
Really helpful video, thanks for sharing!
@BrainybitsCanada
@BrainybitsCanada 7 жыл бұрын
Thank you for your comment and for watching!
@naboulsikhalid7763
@naboulsikhalid7763 2 жыл бұрын
How I an't like the video if it's well detailed, explained with demo. Thank you very much. learning a Lot from YOU
@mauricioramirez4699
@mauricioramirez4699 4 жыл бұрын
Great video!
@elineuman4255
@elineuman4255 3 жыл бұрын
excellent and interesting! two questions: 1. in the first part (no external file) is there a bouncing problem in the limit switch? and, does the accelstepper version contain such function here? 2. I am not familiar with the driver you use. can you kindly inform the equivalent wiring to a driver like DM860A? thanks.
@monkeyjuju7441
@monkeyjuju7441 6 жыл бұрын
If you wanted to stop the motor from accidentally stripping the threaded rod if you lose a couple steps or something do you have to wrap each motor step in a while loop? For instance if I had a program to make a square would I have to do: While XSwitch is low && xVal < 120{ StepperX.move(1); X++}(obviously not the actual code) Then repeat for y, then again for x in reverse, then again for y in reverse? Or is there an easier way to initialize it and if at any point an axis hits the switch it stops moving that direction? I have a few sketches I've been using to test my vinyl/pen plotter/3d printer that make things like smiley faces that would require A ton of while loops :/
@pauledwards7720
@pauledwards7720 7 жыл бұрын
Thanks for that......Paul
@boxingfan5742
@boxingfan5742 3 ай бұрын
Very much appreciated.
@discolapy
@discolapy 4 жыл бұрын
Thanks for the video, super!!
@BrainybitsCanada
@BrainybitsCanada 4 жыл бұрын
No problem, thank you for watching!
@80sday36
@80sday36 7 жыл бұрын
Very good video Sir Yvan. I'm waiting for your video about limit switch with AccelStepper library.
@BrainybitsCanada
@BrainybitsCanada 7 жыл бұрын
I've just uploaded it :) kzbin.info/www/bejne/j6Svqp6uo610psk Hope it helps and thanks for watching.
@diamony123
@diamony123 6 жыл бұрын
Digital has great advantage, but i love analog as a newbe... i would use optical switch for home position. soon as you power up, you let a 555 timer run once to activate motor to go to home base where there is an ir stop switch, then that activate some sort of latching (On) switch from the same 555 timer when its sinking voltage. its just a matter of giving sufficient time for sourcing and sinking current.. done
@77blue34
@77blue34 6 жыл бұрын
thank you for tutorial, very good cannel...
@BrainybitsCanada
@BrainybitsCanada 4 жыл бұрын
No problem, thank you for watching!
@armandbajrami7380
@armandbajrami7380 6 жыл бұрын
Really helpful ,thanks very match
@meme-hj5rs
@meme-hj5rs 5 жыл бұрын
O mandi ca bone :)
@Alexseehp
@Alexseehp 7 жыл бұрын
Thanks!!! I am thinking of using an optical sensor as a home switch actually. maybe highlighting a dot on the gear to read a contrast as a home position. :)
@BrainybitsCanada
@BrainybitsCanada 7 жыл бұрын
Good idea, let me know how it turns out. Thanks for watching!
@DavidCook42
@DavidCook42 7 жыл бұрын
Nice ! Thank you very helpfull
@BrainybitsCanada
@BrainybitsCanada 4 жыл бұрын
No problem David, thanks for watching!
@Maher-
@Maher- 7 жыл бұрын
Hi, how will 0 be set, I'm building a DLP printer, when I fixed the motor in place and connect it to arduino mega, will that point be its 0 and how can I set the 0 in different positions? I asked and thy say to use a block switch or end stop, but as I saw in your video that it only backed off a little from the switch I'm new to arduino hope you can help Thanks
@ma0236700
@ma0236700 3 жыл бұрын
Thank you for your script, however, may advise me on how is the limit switch hardwire connection to?
@jaimebortoni
@jaimebortoni 7 жыл бұрын
So 0 position will be 1 step away of the switch?
@Jmtech-we9cd
@Jmtech-we9cd 7 жыл бұрын
good!!!
@rebornnum1fan
@rebornnum1fan 4 жыл бұрын
Hi. Is it possible to not use limit switch instead create a function data which inputs the position of the stepper motor into an SD card? for instance, i limit my stepper motor to 3 rotations clockwise. When it is controlled and moved 1 rotation and I off the power, when I start it back, the arduino reads the data from the SD card and automatically knows that the stepper motor is at 1 rotation and it only either can go another two clockwise rotation or 1 anticlockwise rotation.
@lukebaker8263
@lukebaker8263 4 жыл бұрын
How do you do it with feed back from the motor. I don't want to fit a switch?
@AliSaldin
@AliSaldin 7 жыл бұрын
I have an idea why you don't use an IR sensor it will be better than the switch or laser diode and LDR alternative of the switch
@stageboys9139
@stageboys9139 4 жыл бұрын
Hello i have a question, I want to controll the same code with DMX. is it possible that you can help me with that ?
@kentharris7427
@kentharris7427 2 жыл бұрын
I am making a Soda can crusher using a NEMA 23 stepper motor. It will take several rotations for the soda can to crush using a Befenybay Ball screw with end supports. What I want it to do is hit the end limit switch and have it return to position zero. What I have run into is when I code in. myStepper.step(20000); it works fine, any greater number and it reverses the direction of the motor. What I did is put in the command twice to make it go 5 inches. The design is to crush Monster cans which are 6.5 inches in length down to 1.5 inches. Thank you for the video. I am not much of a coder. The code seems straight forward however.
@kalashnikov6640
@kalashnikov6640 6 жыл бұрын
Is it possible to show us microstep TB6600 driver Arduino connection with the drivers by the three motors with endstop buttons with relay to stop and run the drill please showing this in video or photo please ? cnc machine?
@graffix
@graffix 5 жыл бұрын
Thanks for the video. I have a question for you, if I wanted to completely run with limit switched only (using relays to turn on a motor) is that possible? Instead of having a driver program, I would just have the motor turn on with a relay one direction until it limited with the switch.. then reverse out of it to go the other direction (say, with a screw). If is could, would I wire the limit to cut off the positive power?
@rohansamuel7341
@rohansamuel7341 2 жыл бұрын
You prolly dont give a damn but does someone know of a way to get back into an Instagram account?? I was stupid lost the password. I would appreciate any tricks you can offer me
@kylermalachi9644
@kylermalachi9644 2 жыл бұрын
@Rohan Samuel Instablaster ;)
@rohansamuel7341
@rohansamuel7341 2 жыл бұрын
@Kyler Malachi i really appreciate your reply. I found the site through google and Im trying it out now. Seems to take a while so I will get back to you later with my results.
@rohansamuel7341
@rohansamuel7341 2 жыл бұрын
@Kyler Malachi It did the trick and I now got access to my account again. Im so happy:D Thanks so much you saved my account :D
@kylermalachi9644
@kylermalachi9644 2 жыл бұрын
@Rohan Samuel you are welcome :D
@mikeobrien9829
@mikeobrien9829 6 жыл бұрын
I was wondering if you guys could do a tutorial on a stepper motor attached to a compass module, so when the direction changed it would move the stepper motor, this is something I'm looking for as a easy course holder on a boat, the stepper motor would control the rudder
@monkeyjuju7441
@monkeyjuju7441 6 жыл бұрын
Mike OBrien do you have a compass module in mind? I'd have to order one to be sure it works right but I think it should be rather easy to convert the input of the compass to an output for the stepper. Of course I have limited knowledge of boats so I could be wrong. How do you plan to drive the rudder? Like is the motor going to be connected directly to it, or are you planning on putting it on the wheel or something with a manual override? Seems like a big line following robot to me
@mikeobrien9829
@mikeobrien9829 6 жыл бұрын
Hi Chris; I have a HMC5883L, this is a 3 axis compass unit which may have issues with the boat rolling, I thought by reducing the sample rate we could sort of average it out. Its really only something to keep the boat going in the correct general direction, it doesnt have to be exact. My boat has wheel steering so I was going to get the motor to turn the wheel. I'm just looking to start small and build up to add ons like rudder position sensors (to stop the stepper motor when full lock is reached), however I think this could also be done by counting the steps on the motor. There is a few KZbin videos from people who have made full boat autopilots, but none explain things very well, Im just looking for something simple to start off with I would be most appreciative of any help you can give me.
@mzunar16
@mzunar16 7 жыл бұрын
How to create " home" with l298n module , because this modul donr have 1=easy driver interface and motor dont moving then ..
@sehmuspoyraz4701
@sehmuspoyraz4701 2 жыл бұрын
can we use only cncjs for switches
@hbenterprise9510
@hbenterprise9510 Жыл бұрын
dear sir thank's for the idea, sir i want to know about that, when i use tb6600 then the code is same? please help me.
@electronicsection6863
@electronicsection6863 5 жыл бұрын
thanks
@BrainybitsCanada
@BrainybitsCanada 5 жыл бұрын
Thanks for watching!
@willthisonedo2
@willthisonedo2 3 жыл бұрын
Don't understand I've been on your website and got your code for this project in this video but the code is complete different to what you show in this video. Sorry I'm trying to understand how to homing and end stops. i need to use a 28BYJ-48 stepper motor with the ULN2003 board with a encoder like in one of your other videos but need homing and end stops. any help please
@deepeshkushwah607
@deepeshkushwah607 3 жыл бұрын
Can you please help me to make a code for DMX stapper motor with limit switch
@amrashraf1863
@amrashraf1863 7 жыл бұрын
what is the best driver for small stepper motors (and also be not expensive because of limited badged)?
@BrainybitsCanada
@BrainybitsCanada 7 жыл бұрын
The Easy Driver boards (brainy-bits.com/products/easydriver-stepper-motor-driver) like the one I used in this tutorial, are pretty cheap and easy to use for small steppers up to 1.5Amps. Thanks for watching!
@amrashraf1863
@amrashraf1863 7 жыл бұрын
Thank you.
@Ed19601
@Ed19601 7 жыл бұрын
There is a complete L298n Board: www.aliexpress.com/item/Free-Shipping-New-Dual-H-Bridge-DC-Stepper-Motor-Drive-Controller-Board-Module-L298N-MOTOR-DRIVER/32769190826.html Also the Version 1 of the Arduino Motor shield (a 293 I think)is dirt cheap at the moment ( I think I paid 1.5 dollar) The TB6612F breakoutboard is also very cheap. The latter works via I2C. www.aliexpress.com/wholesale?catId=0&initiative_id=AS_20170515053856&SearchText=tb6612fng+motor+driver There are even small steppers that come complete with an ULN2003 board: www.aliexpress.com/item/5V-Stepper-Motor-28BYJ-48-With-Drive-Test-Module-Board-ULN2003-5-Line-4-Phase/32615355685.html
@pcbworks
@pcbworks Жыл бұрын
Thanks for informative video. Just wondering , why don't you show your face intentionally? :)
@pauledwards7720
@pauledwards7720 7 жыл бұрын
Oh the EPROM sounds a good way to go.......Paul
@BrainybitsCanada
@BrainybitsCanada 7 жыл бұрын
Will try to do an example on using the EPROM on the Arduino in a future video.
@akashmehta6175
@akashmehta6175 Жыл бұрын
hello paul, i'm a beginner to arduino. i want to create a project in which at initialization stage the program should record the final position of the motor when a button is pressed and record and save the value permanently as final position . after that when motor is in home position whenever a button is pressed , the motor should move to the saved position and when again pressed it should home back to original position . can you help ?
@akashmehta6175
@akashmehta6175 Жыл бұрын
the movement should only be after push of the button
@havefun8962
@havefun8962 5 жыл бұрын
hello boss i realy like ur video about to make a code... we have a project, about (steper motor) with (Photo electric sensor) and (limit switch) in arduino. maybe u can help us.. can i send u a video in ur email what exactly we want.if its posible.we realy appreciate it... thanks in advance
@TheRealFrankWizza
@TheRealFrankWizza 3 жыл бұрын
FYI, The link to the tutorial seems dead at this time. Also, Thanks!
@DavidCook42
@DavidCook42 3 жыл бұрын
It is on his website still, I found it www.brainy-bits.com/post/how-to-set-the-home-position-of-a-stepper-at-startup and also the video for using the Accel library www.brainy-bits.com/post/homing-stepper-motors-using-the-accelstepper-library Enjoy :-)
@TheRealFrankWizza
@TheRealFrankWizza 3 жыл бұрын
@@DavidCook42 Great! Thanks for the links.
@electronicsideas1361
@electronicsideas1361 2 жыл бұрын
Nice . Need code
@howardgreenwood
@howardgreenwood 6 жыл бұрын
You can skip the first 4 mins. Good video after that.
@essmene
@essmene 4 жыл бұрын
Full Tutorial link gives 404 now :(
@BrainybitsCanada
@BrainybitsCanada 4 жыл бұрын
Changed website a while back, here's the new link for this tutorial: www.brainy-bits.com/homing-stepper-motor-at-startup/ Thanks for pointing that out and for watching of course!
@grahamlockwood7963
@grahamlockwood7963 3 жыл бұрын
@@BrainybitsCanada www.brainy-bits.com/post/how-to-set-the-home-position-of-a-stepper-at-startup Is this it now ?
@batmansgta
@batmansgta 2 жыл бұрын
Your link is dead. Full tutorial available here: www.brainy-bits.com/homing-st... PAGE NOT FOUND We looked everywhere for this page. Are you sure the website URL is correct? Get in touch with the site owner.
@deebs7952
@deebs7952 Жыл бұрын
The code is no longer available at www.brainy-bits.com/homing-stepper-motor-at-startup/
@deeepakkushwah2503
@deeepakkushwah2503 3 жыл бұрын
Can you please help me to make a dmx stapper motor with encoder
Limit Switches and E-Stops, The Ultimate Guide
31:16
BuildYourCNC
Рет қаралды 25 М.
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 9 МЛН
IQ Level: 10000
00:10
Younes Zarou
Рет қаралды 10 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
2 limit switches wiring  using same pin  Arduino
3:03
Maker Tutor
Рет қаралды 140 М.
Arduino Tutorial 28- Understanding How to Use a Stepper Motor
9:01
Enjoy Mechatronics
Рет қаралды 47 М.
Raspberry Pi Pico Stepper Motors via PIO
25:17
Tinker Tech Trove
Рет қаралды 59 М.
How Stepper Motors Work - Electric motor
14:01
The Engineering Mindset
Рет қаралды 1 МЛН
Go Home! - Installing Limit Switches on a Diode Laser
11:12
LightBurn Software
Рет қаралды 71 М.
How to wiring Stepper Motor buit-in Encoder  with Arduino
5:03
Maker Tutor
Рет қаралды 27 М.
Stepper Motors and Arduino - The Ultimate Guide
29:57
How To Mechatronics
Рет қаралды 1,1 МЛН
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 482 М.
Look, this is the 97th generation of the phone?
0:13
Edcers
Рет қаралды 7 МЛН
Запрещенный Гаджет для Авто с aliexpress 2
0:50
Тимур Сидельников
Рет қаралды 955 М.
My iPhone 15 pro max 😱🫣😂
0:21
Nadir Show
Рет қаралды 1,3 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 9 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 6 МЛН