LinuxCNC Machine Setup Part 1
Vložit
- čas přidán 25. 08. 2024
- UPDATE: More details on the FRANKENLAB video series... read more below!
This is a tutorial on how to create a new virtual machine in LinuxCNC. If you follow these basic steps, you should be able to configure LinuxCNC for your particular machine... or at least get close enough to be able to make some basic movement and test your electrical connections.
To learn even more, look at my Frankenlab series, a complete DIY milling machine I built just to use as a teaching aid... the entire playlist is located here:
• Frankenlab CNC
Thanks man, you are the first over many previous videos that make it looks easy. Because everyone tells it is easy, but they go for a walk to Andromeda and forget to return. Thanks again man, nice video!
Thanks! I try to teach the way I need to learn things... slowly and with lots of pictures!
Very nicely done! Can't tell you how pleasing it is to see a well done, concise explanation video where someone doesn't get offtrack on what they are trying to explain! Very, very nice! Thank you!
Be sure to catch the Frankenlabs series... I'll be adding a PROBE video shortly.
Thank you, thank you, thank you. I'm in the process of building a cnc router and my knowledge level is zero. I have been searching and searching for the some basic info and finally found this. Great job.
+Bruce Golling When you get it running... be sure to let me know... post a video if you can!
Cheers Jerry! I am just in the process of building a cnc lathe and am going to start learning using linuxcnc this helps as a start, looking forward to the next part :)
+David Stevens (davro) I've been busy... but I should have some new CNC videos soon.
+askjerry Cool stuff, I have managed to setup a 3 axis milling machine!
Next is the 2 axis lathe, should be simple :)
+David Stevens (davro) Just remember that the lathe needs an index and phase input to calculate rotation for the threading routines. I have a lathe that I want to set up as well... may be awhile until I am able to get to that project unfortunately.
New subscriber based on this video which explained so much!
Awesome! Be sure to watch the Frankenlab series as I build and program a machine from scratch.
Very nice video.
Thanks Jerry.
just go the machine light up, lots of red led giving a fine feelings , y axis ran fine , Z axis madea lot of disturbing sound X did not move. so I did a little bit of adjustments and lost it all. Machine wont run. SO I am here to resurrect the mill, Thanks for keeping a ready to understand Digested feed for the CNC toddlers. you for sure are a mentor
but linux cnc has the impressive outlook , unlike the grbl shields linux cnc // It is awesome
RULE ONE: When you get something that works... even if not completely... BACK IT UP!
Frankenlab is on version 6 now... and I have versions 1 to 5 backed up... in case I need to look back to see what went wrong.
Thanks uncle Jerry! It's very useful!
Thanks! I really appreciate your info!
I did notice one little thing to note... 1 = No microstepping... but it doesn't stop there... you can have 2, 4, 8, or16 which tells it that if you normally have 200 steps per revolution... if you are microstepping by 16 for example...
it will now have 16x200 = 3200 steps per revolution. Also... you may have a 10 TPI thread... but if it is a 2-Start... then it is actually 5 TPI. Just a couple of things to be aware of.
askjerry So if you want to microstep at 12,000 for example it would be 60?
Some clarification on the tpi. If you have 2 it’s the same as 5? So what if 5 is input? 10?
@@glennedward2201 When configuring LinuxCNC, there is the microstepping setting, number of threads per inch/mm. And a ratio of stepper to shaft in the event you have a belt system for example. Sometimes I just cheat... I tell it to move 1mm and it moves exactly 3mm... I may just go in and multiply the number of steps by 1/3... Or... I may just tell it the ratio is 3:1 and let it adjust. In the end... The INI file gets a scale number that sets how it performs. Once configured... I NEVER go back to STEPCONFIG. I manually tweak the file to get what I need. There is a guy in Egypt (hello Trucker!) Who built a machine from scraps found at the junkyard... No telling what the exact ratio or scale was on those parts! So we approximated until it was running smoothly... And somewhat close... Then we figured the machine could move 4-feet. We told it to move 40 inches... It moved 40.575 inches or so. The scale was like 6.8750... So we changed it to 6.8... It went 39.7 inches... Then 6.5... Etc... Until we hit 40 exactly. Then we told it to go 48 inches... It went 48.05 inches.... Made from junk. So don't stress over it... Get it as close as you can mathematically... Then dial it in as needed. And watch setting microstepping too high... Every step up requires more pulses... Your computer can only make so many per second... So it gets slower. You need to find the balance between speed and accuracy. Math will tell you that you have achieved 0.000001 inch... You haven't. With slop, backlash, wear... Maybe 0.0005... With good ballscrews. Frankenlab has like 0.025mm or so... It cuts plastic and wood.... So i run a bit faster than if I attempted to get that 0.005mm setting... In my case... Close enough for project boxes and training.
You little confuse me with the "stainsmart board" instead of sainsmart. Nice video I enjoy it. Cheers from Greece
Thx Jerry, you realy help me.... I hope you still making tutorial video about linuxcnc......
Im trying to think what to do next. Glad I was helpful. :- )
@@Askjerry i think you can make complete tutorial about home limit switch setup, touch probe inside hole and outside block. And how to setup Closed Loop using servo or Hybrid stepper. I'm new in Linux CNC, before i'm using Mach3 with Open Loop, now i want using Linux, because i'm hear from someone Linux CNC able to control Closed Loop System. And can save last position if have problem with power.
@@isulistiawan Have you looked at my Frankenlab playlist? I cover the probe, limit switches, setting the home positions, and I even made a complete probe plug-in that you can install... free. Saving last position is easy if you use the G54 home... all covered in my Frankenlab series.
czcams.com/play/PLa_L8q5vezBOkzP_yOKBXPB8zKn-iWCsX.html
I might have to try it out.
well done and helpful. thanks.
Hi . I am FC you. I am new to LinuxCNC. Mach3 board can really be used with LinuxCNC? And can it be used with motor size maximum? Someone suggested that it is better to use a mesa board. But if going to the ethernet board of mach3 does not have a real driver for linux?
What is your native language? I can attempt to talk with you using Google Translate. Go to askjerry.info and get my email address.
@@Askjerry Thai language
@@g-custom1412 หวังว่าคำแปลนี้จะช่วยให้คุณเข้าใจคำตอบของฉันได้ดีขึ้น
I hope this translation helps you better understand my answer.
คณะกรรมการฝ่าวงล้อมไม่สนใจว่าคุณใช้ซอฟต์แวร์อะไร บอร์ดฝ่าวงล้อมเชื่อมต่อพินเข้ากับขั้วสกรู
The breakout board doesn't care what software you are using. The breakout board connects the pins to the screw terminals.
มอเตอร์ไม่ได้เชื่อมต่อกับบอร์ดเบรกเอาต์ ไดรเวอร์ stepper เชื่อมต่อเพื่อแปลสัญญาณเป็นแรงดันไฟฟ้าของมอเตอร์
The motor is not connected to the breakout board, the stepper driver is connected to translate the signal to the motor voltage.
หากคุณมีมอเตอร์ขนาดใหญ่คุณจะเชื่อมต่อกับไดรเวอร์และแหล่งจ่ายไฟที่ใหญ่ขึ้น
If you have a larger motor, you will be connected to a larger driver and power supply.
MESA 7I76ED เป็นบอร์ดที่น่าใช้ เชื่อมต่อผ่าน LAN มีอินพุตเอาต์พุตมากขึ้น (48) และมีเครื่องกำเนิดไฟฟ้า STEP และ PULSE ในตัว
MESA 7I76ED is a very good board. It is connected via a LAN, has more output inputs (48) and has a built-in STEP and PULSE generator.
store.mesanet.com/index.php?route=product/product&path=83_85&product_id=323
แปลแล้วด้านล่าง
translate.google.com/translate?sl=en&tl=th&u=store.mesanet.com/index.php?route%3Dproduct/product%26path%3D83_85%26product_id%3D323
สิ่งนี้ช่วยให้คุณเข้าใจหรือไม่?
Did this help you understand?
tnx a lot
пожалуйста.
Обязательно посмотрите мой плейлист Frankenlab.
Great video. I've been interested in building a cnc router for several years but just never built up enough nerve to doing. Until now, l have come across some parker equipment, one acr 9000 6 axis controller, two gemini gt stepper drivers and stepper motors, and two gemini gv servo drivers and servo motors. My question is would these components be suitable for a router and are they compatible with the linuxcnc software? One other question will I need to download any parker software and/or drivers.
Thanks
jrcrosier13 Go to my askjerry.info page and email me. We can look into it further.
Hey Which Board Should I use for 5 axis CNC. Any ways. Thanks for the useful video
I have the Monster running on a Stainsmart connected to a parallel port... It runs fine.
Jerry, noticed you set up the 15 pin parallel port for your mill
Is there another connect output to set up PINS to control a Turret? or a card to add to get more PINs for Turret control hook up? Like selecting different tools from Turret tools in various locations.
A parallel port has 5 inputs. For my set up, I added another PCI parallel port. this gave me an additional 5 inputs and another set of outputs. You could instead use a MESA card... with 24 or so inputs... but I have not installed one yet.
+askjerry Thanks Jerry, you are the man
+askjerry And I guess we can assign functions to these Pins, that is when a G-Code program has a line that basically says MOVE tool 6 into position, we can send a signal to an output PIN that make the turret move to the CMD position. Thanks!
+petsatcom Sort of... the pin goes high (or low) and some G-code is called... same pin no matter what tool... you pass a variable to the controller that does the job. Check the LinuxCNC forum for details.
I noticed Andreas Schiffler used an EtherCAT (RJ45 connector) cable from his Linux CNC Laptop to drive the amps directly.
Is this just a setup in Linux CNC to have the output go to the serial EtherCAT.
Does the linux output have to be configured to create Data Packets in a correct format for EtherCAT transport to Amps.
Thanks Jim P
+petsatcom I'm not really sure... I have not done that type of setup. But, if you take a look at the LinuxCNC Forum... I'm pretty sure you will find an answer. forum.linuxcnc.org/forum/index
hi , thanks for video is very nice i have the same board , i have a little question about this , i have connected a micro-switch X Y Z one pin in ground and other P12 P11 P 10, when i test in linux cnc a movement axses X Y and Z if i click a microswitch continue to move and dont stop ,is regular ? thankz
The configuration determines if one axis at a time will move or if all will move at once. Typically it is configured so that the machine will do Z, then Z, then Y. Have you configured the switches so that P12 is the Z axis, then P11 is the Y axis, and lastly O10 is the Y axis. The home switch must match the axis specified. You also must configure the switch so that the closure of the switch indicates a home condition. If this is reversed, then the machine will assume the home switch is depressed and move in the opposite direction looking for a home indication.
I recommend that you activate the machine but do not home it... then next to FILE you will see MACHINE, hover over that and click VIEW HAL CONFIGURATION to bring up the next screen.
Click on the tab WATCH as we will select certain pins to evaluate.
Click on PINS
Look for AXIS 0 and scroll to select HOME-SW-IN and select it to add it to the WATCH tab. (X-Axis)
Look for AXIS 1 and scroll to select HOME-SW-IN and select it to add it to the WATCH tab. (Y-Axis)
Look for AXIS 2 and scroll to select HOME-SW-IN and select it to add it to the WATCH tab. (Z-Axis)
All three should be RED (not active) at this time.
Click the Z-Axis Home switch, does one of the red dots turn yellow?
If not, you have a wire or configuration problem.
If yes, verify that it is the correct switch.
Once this is corrected it should function normally.
@@Askjerry thankz i will test >)
@@Askjerry i have also many questions sorry , i am new of cnc world , is possible have your mail ? my mail is stfn77@gmail.com
thankz again
Hey Jerry 2 quesitions, 1. does linux cnc have backlash compensation??? Have you considered making part 2 or the rest of the detailed setup? Thanks Mike
It does have backlash compensation...
linuxcnc.org/docs/2.6/html/config/ini_config.html
I am doing even better than a Part 2... i am making an entire video series... building a milling machine from scratch... and then going through how to program a custom panel.
czcams.com/play/PLa_L8q5vezBOkzP_yOKBXPB8zKn-iWCsX.html
Thanks for the response yes I seen parts 1-5 of franken looking forward to the software side videos. I'll keep an eye out. Thanks again. Mike
Hi mr.jerry
When you was configuring the axes X Y and Z can i do that also for a parallel robot such as delta robot ... if not then how can i configure linux to know that i have a parallel robot?
Unfortunately, I have not made this type of system. A good place to start would be here: forum.linuxcnc.org/forum
Hi I'm looking into a filament winder. How do I start if I want an x,y linear axis and A,B rotary axis? Haven't been able to find out how to do that other than maybe coding without wizards.thanks greg
Greg Not sure why you would need 4-axis to wind filiment... I guess I would need to see the configuration.
As for programming... you could step through the first one... recording the steps... then just run the code as needed.
Hi Thanks for responding so quickly. I bought a 4 axis winder from these guys www.xwinder.com/filament-winders/. I'm having trouble with it and the support is not really there, Thinking about making it less of a black box.greg
Good morning
I have a second question for you. I have 6 stepper motors Nema 17 2A I was wondering what type of driver and breakout board will you recommend for this type of motors?
Also this might be a silly question by do I need a driver for each motor?
Melissa Oliva Not a silly question! The breakout board takes the signals from the parallel port and gives you nice terminal strips to attach to... it also has a relay for spindle switching, etc. But that is all it does. To operate a stepper motor, you must take 3 signals... enable, step, and direction then convert them to the electrical power needed to operate the coils inside the stepper. This is what the driver does... it DRIVES the power and control to ONE stepper motor. So yes... one driver per stepper.
There is an exception... Frankenlab uses TWO steppers to rub the 6-axis... but BOTH steppers are always doing the SAME thing... and the driver I chose had enough current to safely operate both.
As always... you can get my email from my web page should you need more help. (If I have the time of course.)
I've use these... a bit overkill for what you want... but cheap.
www.banggood.com/TB6600-4A-CNC-32-Segments-42V-425786-Stepper-Motor-Driver-Controller-p-1093437.html
As for the breakout board... I like the Stainsmart.
www.amazon.com/SainSmart-Breakout-Board-Stepper-Driver/dp/B0093Y897A
Good morning Sir:
My name is Melissa and I going to program a hexapod using LinuxCNC. I have the program installed on my computer already and everything looks to work fine. But for some reason when I was following your instructions in this video the launcher wont open the program that you end up in the end. Is this because I don't have the actual machine hooked up to my computer yet? or the driver? Does Stepconf Wizard only works if you have your machine connected to your computer?
Melissa Oliva STEPCONFIG doesn't care... it creates the INI and HAL files and makes a desktop launcher. It also only configures for 4-axis. If you want to do a hexapod... 6-axis... that will need to be manually configured.
If you have an INI file, use the CNC dropdown to create a launcher and start it. Google the LinuxCNC Forum for more info.
Okay I see. Do you have any videos where you configured a hexapod or anything more than 4 axis? Thank you
Unfortunately I do not have a configuration like that, however there are discussions on the LinuxCNC forum which can be found here: forum.linuxcnc.org I did find this section... aparently there are samples covering this in the samples section. forum.linuxcnc.org/38-general-linuxcnc-questions/31069-using-linux-cnc-for-6-dof-stewart-platform#75723
I have an old laptop with a 1.5 Celeron and only 256mb of ram. Will this thing run Linux CNC?? I can design on another computer with Fusion but dont want that computer in the garage. Very confused. Thank you.
Laptops can sometimes run too slow... but if you want, you can put the ISO on a thumb drive and experiment with it... if it looks good, then install and start the setup. Run the speed test and see what kind of number you get... 25000 or so is fine... 50000 or so will probably get an error n startup, but may still work. If you are not using the laptop anyway... install the ISO and give it a try. If it doesn't work, it will have Libre office, so you can still use it for documents, spreadsheets, Gimp and Inkscape will let you do graphics... so it's a win either way,
hey,, do u make a tutorial for plasma setup,, thc etc..?
I have not... I haven't had the chance to work on one yet.
Are you also running mesa?, or just para with a bob?
Currently (July 2018) all my machines and those for people I've helped have all been just a parallel port. My Monster Mill is using two parallel ports and two breakout boards. I just now started working with a MESA 6i25 and 7i76D plug-n-go set that will be used to convert the Monster Mill into a 5-axis. (And a whole new video series/playlist.) Probably have the first videos on that out starting maybe September. (Shhhh... secret!)
I have a complete set of Mach3 Breakout board , but I do not know how to wire. Every thing ready One computer dedicated to Linux cnc Operating system. But stuck with assembling the boards. So what do I do Now , Dont say Skip Go some where else > I dont care things " Master "
Ok... it sounds like you are saying that you have a Mach3 breakout board, but want to configure LinuxCNC to use this board... is that correct? If so... we need to write down the way the pins are configured on that board... then match those settings in the STEPCONFIG. Once that's done... it's a matter of calibrating the machine.
When I do a Google search for the Mach3 board... i am seeing more than one configuration. Go to my web page askjerry.onfo and get my email address. Email me and I will assist you.
No Mentor I am a nubie . and am stuck with wiring it up. I have a home made cnc With 3 axis with displacements of 30 cm X , Y and 20 cm for Z . I have been runnung it with grbl and cnc v3 ardunio shield
now i have the set of Mach3 breakout board with 3 stepper drivers . But have no clue how to wire it up
I am sending you an email with pictures Hopefully You will guide me to be a C N C upgrade, Once all wired then will go one level up to configure the machine with software .
Yes, I will be glad to help you.
What version of windows are you using?
The CNC machines are set up in Linux Debian... www.debian.org/
The machine I use to make my video is Windows 7.
This is quite a bit different than what I am seeing for options. This is very confusing to me. I’ve searched and searched everywhere for a good guide video and this being the closest is still different enough it doesn’t really apply well.
Email me and I'll work with you to figure it out. I travel a bit... so it may take a couple of days. I'm sure we can get your system running. My email can be found at my askjerry.info site.
Just to be sure I understand well: you build your cnc so it would be plug in a lpt port without any need of a controler.... I trully like that Idea.
+mortrem76 The PC is the controller... the LinuxCNC makes all the drive signals and sends them out the LPT port to the motor drivers. I am building a small 1/2 meter cubed machine to train people with... when done... I'll have a whole series on setting it up and experimenting!
great video! do you use that sainsmart board or was that for demo purposes? how is it as far as reliability? any suggestions on a board is greatly appreciated. thanks!
That is the exact board I use on both of my CNC machines.
Runs this on a Raspberry Pi 3 ?
I do not know... you would need to check the LinuxCNC forum
where can i find part 2
rafi saifuddin It evolved into an entire tutorial series...
Frankenlab CNC: czcams.com/play/PLa_L8q5vezBOkzP_yOKBXPB8zKn-iWCsX.html
thanks for quick reply,
10:12 ... 30 inches is 7,75 metres ?? :D
is there LinuxCNC Machine Setup for raspberry pi?
There is a lot of discussion on this topic here...forum.linuxcnc.org/9-installing-linuxcnc/30302-linuxcnc-on-raspberry
sorry, I mean how to configure linuxCNC (in raspberry: machinekit) GPIO pin connection between raspberry pi and motor driver without convert gpio pin to serial port
@@JanSebastian213 Honestly I have no idea. The best thing to do is get on the LinuxCNC forum and start reading about Machinekit and how it functions.
ok, thank you very much
Great vid and tips.
Hey I have tried many screen recorders and this one is the best, as it natively supports h.264 encoding (A great codec for clarity and small file size.) www.maartenbaert.be/simplescreenrecorder/
BTW where is part 2 of the video? You can always insert a link in the description as well as towards the end of the video.
I cannot believe it has been 10 months already! I still have to do it! I am doing a series on the Arduino right now, part 5 of 10... then I am also building my new Frankenlabs platform... a small CNC machine built exclusively to teach CNC setup, operation, pyVCP panel configuration, and if I can learn it... Glade configuration. This video may get re-branded as Frankenlabs part 1... and I'll pull the existing two into it as Part 2 and 3... dunno. Been working 12 hour days the last month... I'll check out the screen capture... thanks!
Id like to see an explanation of the various screen options as well as how you can add items to the 'side box you suggested to install.
Oh and just accept the default options for the screen capture and you cant go wrong. (Works in Linux only) (Its a largely undiscovered gem.)
THANKS. I appreciate that... I'll see if I can get it running this weekend. Possibly do an introduction to the pyVCP. Dunno... see how the weekend goes.
That is either a GLADE or a pyVCP panel... yeah... I need to do that.