Тёмный

Palm-top LinuxCNC (weenyPRU) 

iforce2d
Подписаться 76 тыс.
Просмотров 6 тыс.
50% 1

Will put files for this on github after I've tidied things up a bit.
g-code server: github.com/iforce2d/linuxcnc-...

Наука

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 58   
@TheCreat
@TheCreat 10 месяцев назад
For me this project comes out of nowhere, and is very welcome. What a fantastic project, even! Can't wait to actually order some up and actually build my CNC that I've been putting off as a project for literally years now. And yes, please bake the UART for the TMC stepsticks into the board, if at all possible. It's become a default on 3D printer boards and it's just so much better than fiddling with a multimeter while twiddling that stupid sensitive miniature-potentiometer.
@linuxras
@linuxras 10 месяцев назад
Just impressive, I live off grid right now and have been looking to get my cnc machine going from DC only. This solves a lot of my problem on the controller side, you have inspired me to get going on my rebuild.
@iforce2d
@iforce2d 10 месяцев назад
I'm not off-grid but there are a lot of power cuts, so I'm hoping this one can keep running even when the power goes out :)
@AerialWaviator
@AerialWaviator 10 месяцев назад
Impressive progress. Much capability exists to be harnessed in this generic setup. LinuxCNC is not something I've explored, but still very interesting form mechatronics aspect. FYI: Over the last month Pi 4 inventory and availability has greatly improved from official suppliers. (ie: prices)
@iforce2d
@iforce2d 10 месяцев назад
Yeah I noticed that. I almost bought one a few months ago and now glad I didn't.
@tylerwillging8074
@tylerwillging8074 10 месяцев назад
Glad to know I'm not the only one struggling with Level shifters. I bought some logic shifter breakout boards (TXS0108E) and have not been able to make them work at all...
@fuzzy1dk
@fuzzy1dk 10 месяцев назад
17:09 with a few pins you could probably fit that supply on top of the board like the stepper drivers
@rjung_ch
@rjung_ch 10 месяцев назад
👍💪✌
@jordanrobberecht7003
@jordanrobberecht7003 8 месяцев назад
Awesome
@chinleybrewer
@chinleybrewer 10 месяцев назад
Interesting. I control my milling machine using a beagle bone black and a version of linuxcnc called machine kit but it's very old and I don't think machine kit is actively developed now. The BBB has the advantage in that it has two x 200MHz co-processors which are doing the real time stuff, presumably that's what your board is doing 🤔
@darkobul1
@darkobul1 10 месяцев назад
I remember it wasnt cheap combo at time. He is using rpi zero + stm32f103. I dont know how much custom board costed but this is dirty cheap. If he upgraded stm32 he could get dual arm or similar at higher clocks.
@iforce2d
@iforce2d 10 месяцев назад
Yeah it's very cheap, that's for sure, but the PiZero is not really good enough if you want to use a GUI as well. Yes I suppose a faster MCU would get a better step rate, personally I have yet to feel a need for that. I'm still using software step on my big router which I think is about 25kHz.
@markgreco1962
@markgreco1962 10 месяцев назад
Holy crap!
@TheShorterboy
@TheShorterboy 10 месяцев назад
The PI variants are SOC's so they have all the stuff needed to drive the steppers and the DMA controller can be hooked to a timer so you get a fixed stepper rate so you can ditch the micro, some dude has code for this on git
@iforce2d
@iforce2d 10 месяцев назад
Is that for LinuxCNC?
@Nicolas_dG
@Nicolas_dG 10 месяцев назад
Ive also had issue with txb0108, it had something to do with pullups/ pulldowns and auto detection of signal direction. Dont remember the exact solution but it works now
@ayazgv
@ayazgv 10 месяцев назад
Really good job, so part list please
@fuzzy1dk
@fuzzy1dk 10 месяцев назад
15:26 for output only just use a 74HCT.. logic powered from 5V, like for example 74HCT541
@iforce2d
@iforce2d 10 месяцев назад
Thanks, I will try that on my next revision.
@iforce2d
@iforce2d 9 месяцев назад
Just trying 74HCT541 now on my new revision, it works great! Thanks again.
@hippie-io7225
@hippie-io7225 10 месяцев назад
Congratulations on getting your rig running. I really like LinuxCNC, but setting up a CNC machine is difficult. I am currently starting a CNC project using a Mesa 7i96S card. Begin rant. So far I have not found a single company selling CNC hardware that reasonably communicates how to use their hardware to set up a simple XYZ CNC, with spindle and speed control, homing G53 and G54---G5X work coordinate system (WCS), using LinuxCNC. The goal should be to make their hardware plug and play with LinuxCNC with all the necessary .Config files, etc. for a basic system. CNC Manufacturers: If we start with a WORKING SYSTEM, then we can customize, set ball screw parameters, etc. and learn about all the other fabulous features of your hardware. There is too much unnecessary suffering imposed on the buyers of such hardware. End of rant.
@darkobul1
@darkobul1 10 месяцев назад
True. Information about config files is scatered everywhere. But lately I saw few good videos on youtube that explain it well. Prior you had to dig into forums and solve problem after froblem as they popup.
@iforce2d
@iforce2d 10 месяцев назад
Mesa makes hardware that can be used for all kinds of things, that's the beauty of FPGA. Just because somebody wrote a firmware for LinuxCNC that runs on a Mesa board doesn't mean they know anything about how it works. The only place you can expect documentation and support to come from is other LinuxCNC users, who do it for free in their spare time.
@hippie-io7225
@hippie-io7225 10 месяцев назад
@@iforce2d You speak truth. I do believe that if Mesa targeted a specific LinuxCNC application, they would endear people like me to promote their hardware, and move many of us forward.
@unterhausen
@unterhausen 10 месяцев назад
The problem is everyone wants to use their own hardware. For example, what spindle drive hardware should they settle on in your opinion? With something like Acorn, they can dictate that to you. Mesa isn't really in that business. An xyz system by itself is simple to set up using lcnc, first time I did it it took a couple of hours.
@hippie-io7225
@hippie-io7225 10 месяцев назад
@@unterhausen Good on you! If that was your first CNC system that is indeed impressive! It took me DAYS to dial in my first LinuxCNC system, which served me well for over 10 years. Upon its death, I'm putting together new hardware. After a lot of digging, I chose Mesa, but I am still in the "lost in the weeds" stage. I would like them to publish a good PDF or at least give a few YT references that they have vetted and recommend. Have already watched dozens of dead-end YT videos. A working example, on a bench like shown in this video (with files) can give people an idea on what is possible and save user's time and make sales for Mesa. Maybe they are already selling as many units as they want to. Or maybe they are just a small company and doing the best they can.
@GeeEmJay
@GeeEmJay 6 месяцев назад
For a V1.1 - break out those other pins to a separate header to utilise the I2C and UART pins - edit: I see you have already thought of that ;)
@iforce2d
@iforce2d 6 месяцев назад
Almost every pin has a breakout, they're just labeled D3, D4 etc instead of SCL, SDA. So to use I2C/UART is just a matter of changing the firmware. Recently I changed it to use D11 (on the v1.1 board) as a UART TX to control the current limiting of the TMC2209 drivers. See the "About TMC2209 UART control" here: github.com/iforce2d/weenyPRU The v1.2 board will have a jumper for convenience.
@raoufmagdy3661
@raoufmagdy3661 3 месяца назад
Great video, I have a question, do you know how can I integrate LinuxCNC with servo motors?
@iforce2d
@iforce2d 3 месяца назад
Not really. I think you need to set up a 'pin' for the position feedback, so that LinuxCNC knows how the axis has moved. Sounds like a question for the LinuxCNC forums.
@raoufmagdy3661
@raoufmagdy3661 3 месяца назад
@iforce2d I asked there before, but people were salty, and I didn't get any useful answer. so I stopped asking
@andrejradulovic5666
@andrejradulovic5666 10 месяцев назад
Hello, is it possible to add more axis? How meny axis remora is supporting? Is it 9 like linuxCNC?
@iforce2d
@iforce2d 10 месяцев назад
Not with this particular microcontroller, but with a slightly more capable one another 4 axes would be easy enough. This is an experiment in how cheap it can go and still be reasonably useful. I don't really know much about Remora but it seems to mostly target existing 3d printer boards, so I guess it would do whatever axes each target board can do.
@dylanreynolds47
@dylanreynolds47 5 месяцев назад
Any chance you release the board HW or make some available for sale? The GitHub link only includes firmware as far as I can see.
@iforce2d
@iforce2d 5 месяцев назад
Hi Denys, I actually shared this a while ago but then forgot to add it to the github page. oshwlab.com/iforce2d/stm32-pru_copy You can find the v1.1 board hardware design at that link. Check the github again in a few hours (or maybe tomorrow) and I will add a page about hardware info. Since then I have made another small alteration, v1.2 will have a jumper and pullup resistor to make TMC2209 UART connection a little more convenient. I have not ordered any v1.2 boards yet though, so that's untested. It's not a major change. If you want a v1.1 board I have a handful here I could sell, they are still bare so I would need to populate them with the headers, the large caps, screw terminals etc. Get in touch iforce2d at gmail if interested.
@iforce2d
@iforce2d 5 месяцев назад
ok, done. And sorry for getting your name wrong :)
@hamidsk2573
@hamidsk2573 10 месяцев назад
is LinuxCNC powerful enough with enough features to run the late CNC like the old HAS
@iforce2d
@iforce2d 10 месяцев назад
No idea sorry. I think the LinuxCNC forums would be the place to look/ask.
@darkobul1
@darkobul1 10 месяцев назад
LinixCNC is professional solution. Many old industrial CNC machines are updated to use LinuxCNC. I tested it with my mesa card and it can stay on for month without issues if set up correctly.
@forloop7713
@forloop7713 10 месяцев назад
What are the advantages of linuxCNC over arduino/grbl
@hippie-io7225
@hippie-io7225 10 месяцев назад
Cutter compensation is one advantage.
@darkobul1
@darkobul1 10 месяцев назад
Linuxcnc has crazy amount of options. Maybe too much in some cases. But it has support for many gcodes that grbl dont as its real time system thats why it requires special kernal to work. It can do sync of axis for rigid tapping or for lathe for threading where spindle is locked in loop with axis fir example. It support encoders can be interfaced with python and c. There is lot of things to be said. Its just more complicated for all those reasons.
@iforce2d
@iforce2d 10 месяцев назад
It's hard to know where to start... with LinuxCNC you get 9 axes, realtime jogging, realtime feedrate adjusting, realtime pause and resume, manual g-code direct input, access to super fast external FPGA hardware and ethercat etc, various types of remote control, extremely configurable and extensible I/O, custom hardware interfaces, wider range of g-code, callable functions in g-code, various GUI interfaces, python and C bindings to interact from your own code... and more.
@dineshvyas
@dineshvyas 8 месяцев назад
You can write blocks of gcode in logical loops for repeated task.
@HMPirates
@HMPirates 10 месяцев назад
Those terminals suck! Buy the rising clamp style ones, a little more expensive, but they won't cause headaches later down the line. With level shifters, I have always found discrete MOSFETs work a lot better than those dedicated chips. Just get a jellybean fast MOSFET.
@roughedge-machineworks
@roughedge-machineworks 9 месяцев назад
with this install are you using a realtime kernel?!
@iforce2d
@iforce2d 9 месяцев назад
Yes, I followed this guide: lemariva.com/blog/2019/09/raspberry-pi-4b-preempt-rt-kernel-419y-performance-test I've been trying to create a sparse SD card image as a backup, and also so I can share it with others. So far the smallest I can get is about 7Gb which seems kinda large. I could upload my compiled kernel files somewhere if you like. I have these for Pi3B+ and PiZeroW, they are kernel-4.19.71. That would let you start at the "Transfer the kernel" step in that guide. You might also need to compile LinuxCNC from source, especially on the PiZeroW. I have some rough text notes for that procedure I can upload somewhere too if you want to take a look.
@roughedge-machineworks
@roughedge-machineworks 9 месяцев назад
@@iforce2dok yeah ive been tinkering with lcnc from the early 2010's - just thought it would not have enough power to push a RT kernel without loosing alot of performance. There is alternative kernels than the RT patches and the linux kernel that can sometimes make better preempt performance. Just found this curious that you could use such a small chip and still direct drive a couple of steppers without using a FPGA card.
Далее
Try not to Laugh Game!
00:38
Просмотров 4,6 млн
Testing OpenMV H7 as a 'flyby' camera
16:51
Просмотров 4,9 тыс.
SMT pick and place, part 2 (vacuum system)
1:04:02
Просмотров 6 тыс.
Ethercat + linuxcnc + Raspberry pi?
19:17
Просмотров 43 тыс.
Игровой Комп с Авито за 4500р
1:00
Я УКРАЛ ТЕЛЕФОН В МИЛАНЕ
9:18
Просмотров 55 тыс.