Arduino DIY electronic miter box? Stepper control with keypad and LCD - Tutorial
HTML-код
- Опубликовано: 9 фев 2016
- Let's control the movement of a stepper motor by entering a value in millimeters using a keypad and display the position on a Nokia LCD.
Kinda like an Electronic miter box I guess... The schematic, parts used,, etc... is available on our tutorial page at: brainy-bits.com/tutorials Наука
Sorry for the long video guys... Hard to keep these videos short sometimes... Thx!
+Brainy-Bits Hi; ooh don't worry about it , Excelllent Tuto
+Akrout Osama Thanks, always worried that the videos are too long or boring :), thanks for watching!
+Brainy-Bits if you are worried about length. How about releasing 2 vids 1 like always the other with just a overview and operation (no code). Because some just want to see it work and others need coding help.
+kevin moriarity Thanks for the suggestion, didn't know this tutorial would be this long, so didn't shoot the video with that in mind :) But will keep your suggestion in mind for future videos. Thanks for watching!
+kevin moriarity I think releasing 2 videos is going to get confusing. What's better is to include a notation like "skip to 14:45 to see in action" in the beginning of the video. I've seen people do that and it's very helpful and easy to add anytime.
Another good and clear tutorial. I had to back up and let my brain process the "steps" math. Thanks!
+Garth Howe Thanks Garth, it's hard to explain code sometimes, great to hear comments from viewers about the videos. Thanks for watching!
Another great video Ivan! I definitely enjoyed it.
+Todd Graves Thanks Todd, always great to hear comments like yours, thanks for watching!
Thanks for the sketch Yvan. I am going to use your set up to move my table up and down on my pillar drill.
Sounds like a good application, best of luck with your project. Thanks for watching.
Excellent.
Thanks. I’m building up to this sort of thing, hopefully to build an 2 axis version of this.
Glad the videos are helping you with your future projects. Thanks for taking the time to leave a comment. Cheers!
Fantastic. How would you change the code to add a 4th line on input e.g. up to 2000mm and to be able to input 0.1 mm decimals?
Thanks #brainy-bits I've been trying to build a arduino router lift and I'm using this project as a base to work from. Just got your stock code running. Next I need to add limit switches for both the bottom and top positions. A third limit switch will be for homing the router bit flush with the router bed.
Excellent tutorial, thanks!Matthew
+Matt D'Rat Thanks for the comment and for watching Matthew :)
This was GOOD! It was GOOD! It was GOOD! Who cares if they are long?! As long as you can learn real stuff! Great vid!
Great project! I was wondering how could I implement your stepper homing sketch in to this project so it homes when you first turn it on? Thanks
Another great video
Very cool!
+Mattley Thanks for the comment and for watching of course :)
Big big thanx! All video - SUPER
Thank you for watching, Cheers!
Thank you so much for this amazing video bro.
thanks dear ... that was so cool
Great video! I have been wanting to build an HO turntable and this is getting close to what I've been looking for. Is it possible to do this same thing with a push button or a series of buttons to control the angles on the stepper motor? It would align the center track with the outer tracks around the turntable.
Thanks,
Robert
Superb tutorial
Awesome video!. Not too long at all. Video length doesnt matter when you are giving information all the time. And you put in a LOT of information! With editing the code would you be able to do predetermined locations and assign to the numeric pad? Like for instance 1 would be 12 mm. 2 would be 18 mm. 3 would be 25 and so on?
Awesome Awesome Awesome one. Thanx a lot you have saved my life.
Going to do this, great !!!
Thanks for the comment and good luck with your project :)
Hi, the project is beautiful, I've already done it and it works! I entered a command line with a 5 second delay and that's fine. I will install it on a slider for cam. Do you think you can also enter the stepper speed control using the keyboard? I wouldn't know how to do it. Best regards!
Hi Im from Brasil I like very much this video ! Thanks
Nice! I've been thinking about how to make a "stock pusher" for my bandsaw that would allow me to enter a number, then the stock would move into the saw that far, and then I could make a cut. This is basically what I need! (And the video didn't seem to be any longer than needed.)
+Wide Vision Metal Fab It would be great for something like that, maybe using a bigger stepper motor would be needed to move the mechanical parts, but the code would be pretty much the same. Thanks for watching!
@@BrainybitsCanada HI, i am looking to do something similar. Can you please share the code?
This project is very good. Thank you for sharing. I assembled it but I need to use a stronger engine, probably a 23, 15kgf nema. Can you tell me if you could adapt and use a tb6600 drive?
Great video just what I want
Sir,
Thank you very much for your informational and well presented tutorials. I used your code from this tutorial with a few
modifications. I deleted the LCD display lines and use Serial Monitor to display pressed key numbers and current position and added a fourth number. I also modified the calculation for inches and 10ths. Pressing 100 on the keypad advances the pointer 0.10 inch from zero. Pressing 150 moves to 0.150 inch. (Within a margin of acceptable error)
Entering 1000 advances the pointer 1.0 inch from zero. All works well except for a couple bugs. When I input 1000 for a 1 inch move, the motor moves forward a bit, slows to near zero RPM for a moment, then accelerates smoothly stopping at the 1 inch point. Should I want to advance another inch, I key in 2000. The motor first reverses moving the pointer back to near zero, pauses then advances to the 2 inch position. The slowing down only happens with four digit inputs. The return to zero from any position is smooth without pause.
Any clues? Anyone?
Thank you
Hi this proyect work perfect, can it be modify to go home and reset to zero at start and take 4 digits instead of 3?
Excellent presentation. Thanks for sharing. Would this work with a touchscreen? Thanks.
Very good project.
I would like to use this project in the locomotive turntable but after power on the motor is not in the same position. How to apply the home position switch in this project?
very nice, thank so much!
+Loc nguyen van Thanks for watching :)
G'day Ivan
I have a model railway where trains are stored on a five track traverser. Is it possible to program the stepper to move between five (5) pre-determined positions by using five (5)normally off press button switches (without having to "nest" some of the commands?
Thank you,
Tom Clune
Ivan, is it possible to use this system instead of a liniair system to a rotating system for a modelrailroad turntable.
On the keyboard a want to use only de numbers for trak 1-2-3 etc if a press 1 the system moves15 degrees,
So the keys must be presetted to a surtain track number.
Maybe I have to change the mechanics.
Maybe you did already a project like this
Thanks for the video.Couldnyou please share the model number of the stepper motor driver please.I am trying to use a VNH2SP30 driver .will that work???
Hi, thank you for the tutorial. I have already be able to add/modified the code to make it accept 4 digit input. but how can
I limit the maximum int z to be something like 1200 mm ( that is the maximum linear track length)
it is cool stuf, thanks
+maverickstar reloaded Stepper motors are cool :) Thanks for watching!
Very Nice Video's, Thank You Sir !!!
Sir, what if we want to write 4 character numbers on the LCD (9999)? is it just to add the fourth number in the codes ?
Hi. Thanks for all that advice. I am currently using this code to operate my table saw fence. I have managed to get it to home on startup but am really struggling to set a limit to the max distance that can be entered (soft limit) any help would be greatly appreciated please. Sorry I am still learning.
This is very interesting. I'd like to be able to do this with two steppers, x and y, could the code be modified to do this?
If you need to control small motor and need to precisely rotate motor between 0 and 90 degrees would you recommend stepper motor or servo motor?
Thanks you
Very nice!
What's the max distance we can enter on the keypad ? Would be possible to enter larger numbers like 5 meters ?
+Odair Sure you would have to add some code to record 4 numbers in mm (5000mm) instead of 3 (999mm). You can check out the code for this tutorial on our website here: brainy-bits.com/tutorials/diy-stepper-miter-box/ Thanks for watching!
I cant find the dart board video you reference. can you help?
THANKS !!!!!!!!!!!!!
Are you sure your code is correct? I get a blank screen (no light at all). If I change the backlight to say 100 then I actually get a light but nothing printed on the LCD. Thanks.
hello friend, very interesting project! can you manage the position of two axes (for example X and Y) on only one display? What part of the code should I change?
hello excellent design I was looking for something like this for a project, I have an error when compiling referring to a library #include "utility / Key.h" how can I solve it, I would appreciate it very much
Hi if I want to change the stepper to a TB6600 would the code change ?
Looking a while now I can’t figure out
Please
how would i be able to add a second stepper and use the key pad to have motor one and motor two
Using 16x2 or 20x4 LCD screen instead of the Nokia LCD would have shorten lines of code and also make it more clear. Anyway, it was a very useful video, I think it can be a basic core for building a CNC machine.. Thanks a lot man.
Brilliant 🏋
great video, but I am having issues with the desplay, wired as per instruction and sketch coppied as is but not getting anything on the display, can you help?
Hi ! May you modify this sketch for 16x4 display... ? Or may be you have any links to the same works ? Thank you
perfect
Thanks, great tutorial,
This is what I need, for my bandsaw up/down settings,but with DC motor and optical encoder.
I can't wait to see tutorial page.
+Aleksander Schulz Thanks for the comment, pretty busy right now working on some movie props, but will try to make the tutorial pages soon. Thanks for watching!
great project,can you please make the display nokia display to lcd I2C.thank you.
Sir, Please make a tutorial on nema 17 stepper motor throttle control. that would be awesome
Hello
I need to get three parameters first befor starting the procedure and then use those parameters to run my stepper motor.
I need the operator to see what it in entering on an oled display
would you please help me on it
Hi Brainy-Bits where can I get the sketch and the parts list? I couldn't find it on your tutorial site.
Here it is: www.brainy-bits.com/post/electronic-miter-box-control-a-stepper-motor-with-a-keypad-and-an-arduino
Similar looking for Circular angle or circular points movement using keypad input
Nice tutorial,,, can u teach me how to set up Sir?
What size power supply are you using?
it has an end stop way to home? so the measure could be aways accurate?
I want to move 2 stepper motor. If pressed key then Ist motor start move 12 inch clockwise and stop 1st motor and start 2nd motor 4 inch clockwise and stop 2nd motor . And again 1st motor move 12inch anticlockwise.
And finally I want goes to final position. Please help me..
Hi I have conventional machine and I like to measure distance with stepper motor how to proceed
what is the fastest speed Arduino controlled motor travels?
gj, u can use it for automatic cutter :)
instead of 3 variable try this:
int typednums = 0;
void checknumber(int x){
typednums = (typednums * 10) + x;
}
this code works with any digit (within the int's range)
awesome shirt
thought i'm the only one
Great video! I did have 1 question, hopefully you didn't already cover it and I missed it. So lets say you are done for the day and turn off the device. How does the device, and you, know where the current position is when you turn it back on? Or do you always have to remember to return the device back to zero position. Thanks for sharing this great video!
Hi David, when it's powered off, then the UNO lose the current position and you need to zero it when it starts up again. I've done a tutorial on how to home your stepper at start here, hope that helps and thank you for your comment and for watching! ruclips.net/video/3odRT6zdzqk/видео.html
i was looking for that about 4 weeks xD
i want to adjust the hight of a wood thickener! and also add 2 functions one for like home and the other one for 2mm stepps
i hope i get it right 😂
😂😂 Im looking for the same thing
Super
Excelllent Excelllent Excelllent Excelllent Excelllent Excelllent
nice
+DIY AUDIO Thanks for watching and your comment!
Thanks a lot
will you please add a bluetooth control for this project using android mobile and the android app.
Regards
The Tutorial page for this tutorial is now available on our website here: www.brainy-bits.com/post/electronic-miter-box-control-a-stepper-motor-with-a-keypad-and-an-arduino
Check it out to get the Schematic, code, parts used etc...
Hi this link doesn't work anymore, Can you help me with the arduino code, Thanks in advance for the trouble,
solved THX Here's a link: www.brainy-bits.com/search-results/q-miter
sir can u give me c code for the same for working with 8051 microcontroller
Can we use rotary encoder instead of keypad?
How difficult would it be to make this move in "laps". Enter 2 numbers: one # of times, other distance. so if we enter: 3, 100. It will go to 100mm, then to 0, then 100mm. I've got a project like this for high school graduation :) great video though, this is a start for me.
Greetings, is it possible to use a 20x4 lcd with IC2 module?
Regards, if you have the same code but with a 20x4 lcd can i get it, thanks in advance. strauber26@gmail.com
deletenumber(); does not work for me. It says it was not declared in scope
I wanted to build the same
Hi Ivan thanks for the sketch how do I change the code from LCD display that you use to a LCD (16,2) display. I am a pretty good engineer but my coding is useless, I think that is because I am 73 and things don't enter the brain like they used to.
You would have to change some of the code since using the Oled requires different coding, here's a tutorial that uses a 16x2 character LCD: www.brainy-bits.com/post/a-rotary-encoder-that-s-always-on-the-money Hope it helps.
good video friend greetings from Colombia; My question is how could I use it with an industrial stepper driver. Thank you
Hola desde Chile, pudiste solucionar ese problema. Gracias.
@@Patriarka72 Hola, no pude encotrar la forma; deje un lado ese proyecto, por que sali fuera del pais y no continue
You use the steps per mm = 1600/80
Then, i change this value into 6400/10. I try 51 mm, the motor rotate clockwise but then when i fill the value = 52 mm, the motor rotate counter clockwise. What happen? Where is the error?
By the way i use the tb6600 driver, with microstep 1/8 aka 1600 per rev
Hi Ivan , i hope you doing well
so what's on the menu for the next Tuto ?
hope it will not took you so long (y)
+Akrout Osama Hi, I'm currently working on some Movie props, you can check those videos out, got the first one done and have 2 more to do. After that will be back to tutorials and stuff :) thanks for watching!
💐
+eashak ahmad Thanks for watching and your comment :)
i want to run the dc motor with the keypad input and rotory encoder
can u help me.??
i want the same
Hi friend, your project is very good, I am learning to program but I am doing a project if you give me help, it is similar to your video but with 2 motors and you program a measurement for each one and a sensor to start the programmed repetitive motion lcd 2x16
what about home position like in cnc's? is it possible?
+Vishal Chhabhaiya We did another tutorial video using some limit switches here : ruclips.net/video/dQuTgngoFPQ/видео.html you could start moving the stepper at the beginning until it triggers one the limit switch, and then set that position as Home position. Hope that helps and thanks for watching!
I need that tutorial its not in the page
Hi.
At first i want to tell you congratulations for your excellent work and thanks to share it with all of us.
I am new in arduino and i need your help on your project Arduino Control Stepper with Keypad and LCD.
I need to set a max length of four or five numbers to enter distance more than 999 cm but i don't know how to modify your code.
i try to set four numbers but i take bugs.
I hope that you can help
Thanks in advance for your assistance and I hope to have your reply
Best Regards
kostas
I've done this tutorial a while back, so it's not fresh in my memory :), Pretty busy right now but will try to revisit it to make some improvements like you asked. Thanks for watching!
Hi. Did you ever work this out? I could really do with making this mod to the code.
I have a 51: 1 planetary box but if I change the code from. int calculatedmove = ((z * 1600) / 80); for int calculatedmove = ((z * 81600) / 80); does not work. Can someone tell me why and how to solve it?
youre driver not have 81600 mod :)
PLEASE!!!! How can make this with 2 motor and same keypad and same LCD
im start to learn about arduino
Awesome Video
Is it possible to send the code?
how to input negatif number?
Can you help me in my project
how to get the distance 25.45mm?
I have the same question but it difficult to get an answer. On the internet I could not find a proper suggestion , even if you look to calculator examples I could not find anything about decimals points.
use potensiometer (motor knob)
hi sir 1250mm progrme
instead of LCD can we use oled
+Vishal Chhabhaiya You could of course use an OLED display, but would have to change the code a little to write to an OLED instead of a regular LCD, you can check out a tutorial we did here on using an OLED display: ruclips.net/video/7Kli1DgHZc8/видео.html Hope that helps you get going :) Thanks for watching btw!
Pretty cool
Can you put it in a box and ship it for a price :) ? Pm pls