The Art of Tinkering
The Art of Tinkering
  • Видео 46
  • Просмотров 118 971
How to connect Rotary Encoders and Joysticks for MPG to LinuxCNC using Arduino
please consider supporting me on Patreon:
www.patreon.com/theartoftinkering
Download the Projekt from Github:
github.com/AlexmagToast/LinuxCNC_ArduinoConnector
This Projekt enables you to connect an Arduino to LinuxCNC and provides as many IO's as you could ever wish for. This Software is used as IO Expansion for LinuxCNC.
Chapters:
00:00 Intro
00:39 setup of encoders
04:30 Encoder MPG / counter mode
06:18 hal example MPG
09:54 Encoder up / down mode
10:36 hal example up / down
13:00 setup of Joysticks
18:23 hal example Joysticks
Просмотров: 4 369

Видео

connect Matrix Keyboards to LinuxCNC using Arduino
Просмотров 2,8 тыс.Год назад
please consider supporting me on Patreon: www.patreon.com/theartoftinkering Download the Projekt from Github: github.com/AlexmagToast/LinuxCNC_ArduinoConnector This Projekt enables you to connect an Arduino to LinuxCNC and provides as many IO's as you could ever wish for. This Software is used as IO Expansion for LinuxCNC. In this Video we connect Matrix Keyboards to LinuxCNC using arduino-conn...
using Ws2812 LEDs with LinuxCNC and Arduino
Просмотров 1,1 тыс.Год назад
please consider supporting me on Patreon: www.patreon.com/theartoftinkering Download the Projekt from Github: github.com/AlexmagToast/LinuxCNC_ArduinoConnector This Projekt enables you to connect an Arduino to LinuxCNC and provides as many IO's as you could ever wish for. This Software is used as IO Expansion for LinuxCNC. In this Video we take a look on how to use digital RGB LEDs like WS2812 ...
How to set up and test arduino-connector with LinuxCNC
Просмотров 6 тыс.Год назад
please consider supporting me on Patreon: www.patreon.com/theartoftinkering Download the Projekt from Github: github.com/AlexmagToast/LinuxCNC_ArduinoConnector This Projekt enables you to connect an Arduino to LinuxCNC and provides as many IO's as you could ever wish for. This Software is used as IO Expansion for LinuxCNC. Chapters: 00:00 Intro 00:39 download and basic functionality 02:50 setup...
DIY control panel for LinuxCNC - Weiler Primus CNC retrofit pt.4
Просмотров 16 тыс.Год назад
For more info check the Links in the Description. Please consider supporting me on Patreon www.patreon.com/theartoftinkering The detailed Arduino_connector video Playlist: ruclips.net/video/bjKfnLbsvgA/видео.html also take a look at the Projekt on GitHub: github.com/AlexmagToast/LinuxCNC_ArduinoConnector my Weiler Primus CNC config: github.com/AlexmagToast/WeilerPrimusCNC_LinuxCNC_config PL9823...
retrofit Lathe first sign of life! x & z Axis moving again
Просмотров 3 тыс.Год назад
these are the first moves after i retrofit the Weiler PrimusCNC to Linuxcnc. Spindle is not working jet. New Video coming soon!
Tipps and Tricks installing LinuxCNC 2.10
Просмотров 12 тыс.Год назад
Installing LinuxCNC 2.10 is a bit tricky. So i made this video, showing how i successfully installed it on my computer. Here are Links to follow: Projekt Page: theartoftinkering.com/installing-linuxcnc-2-10 Get the Icons here: github.com/AlexmagToast/Icons4LinuxCNC If you like my work please consider supporting me on Patreon: www.patreon.com/theartoftinkering affiliate Link to the GK41 on Amazo...
measuring phase polarity of asynchronmotor
Просмотров 8792 года назад
This Video is a more detailed look at the motor of the lathe's hydraulic cooler motor. The control terminal was completely missing, so i din't know, which phase had wich polarity. I repaired the Motor with a DC Power supply and my mobile. If you found this video helpful, please consider supporting me on Patreon, thanks: www.patreon.com/theartoftinkering
hydraulic cooler restoration - Weiler Primus LinuxCNC retrofit pt.3
Просмотров 2,1 тыс.2 года назад
hydraulic cooler restoration - Weiler Primus LinuxCNC retrofit pt.3
deep inside an old industrial CNC Lathe! - Weiler Primus LinuxCNC retrofit pt.2
Просмотров 15 тыс.2 года назад
deep inside an old industrial CNC Lathe! - Weiler Primus LinuxCNC retrofit pt.2
i bought a industrial CNC Lathe! - Weiler Primus LinuxCNC retrofit pt.1
Просмотров 8 тыс.2 года назад
i bought a industrial CNC Lathe! - Weiler Primus LinuxCNC retrofit pt.1
DIY Lasercutter Filter system
Просмотров 1,4 тыс.2 года назад
DIY Lasercutter Filter system
So i mounted a Plasmatorch in my Lasercutter ...
Просмотров 3332 года назад
So i mounted a Plasmatorch in my Lasercutter ...

Комментарии

  • @teipplestar5586
    @teipplestar5586 8 дней назад

    is it possible to implement this to PathPilot?

  • @svenbokulic9813
    @svenbokulic9813 24 дня назад

    Hi! With my oooold PC with Pentium D 830 3.0 GHz GPU, I get much better results. Servo -- 1030317; 35757; 994242 Base -- 53606; 28742; 25269 Do you make any changes in a mean time in order to improve Latency? Thank you in advance.

  • @DavidLewis-t8x
    @DavidLewis-t8x Месяц назад

    Where did you find this information? I want to learn this stuff but it seems like on any LinuxCNC topic there is only one video or useful google search hit on planet earth! The forum gets very frustrating very quickly because they answer in riddles most of the time, if they even stay on topic.

  • @AlexKubrinsky
    @AlexKubrinsky Месяц назад

    Scheiße = nice. ok :))

  • @hillli9580
    @hillli9580 Месяц назад

    Thanks for you sharing this great idea, this what I want to implement,well done ❤

  • @kurtnelle
    @kurtnelle Месяц назад

    My gosh that mechanism is really complex

  • @danielcarpinteirosalazar4295
    @danielcarpinteirosalazar4295 3 месяца назад

    Do you have a video to configuration parameters on drive.

  • @ericr.5477
    @ericr.5477 3 месяца назад

    Hi Alexander, Liebe Grüße von den Philippinen! Thank you for your great video. I have set up LinuxCNC on many platforms, including custom builds on different CPU architectures and distros, but still learned some useful things from this video and I thank you for that! I will incorporate those things in my own daily practice moving forward 😊👍 Please allow me to comment on one thing, which is the latency test that you were running. I think it is not great at all. Actually it is quite terrible. Also, you are only running two instances of Glxgears and some other apps, but that is not really stress testing. If you would do some real stress testing during a couple of hours, I think your setup will show even worse latencies that may ruin your CNC operations. Depending on your LinuxCNC hardware configuration it may be good enough for some setups (although critical and one day it will mess up your CNC jobs), but I think you can squeeze out a much better performance by making some additional changes. 1) you only isolatedd the 4th cpu core with isolcpus=3, but I found that on my N100 mini PC the best result was with isolcpus=1,2,3. That means only the first core (0) is used by the general scheduler and others are isolated. Not sure if you would find similar results on a J4125, as results are not always predicatable. But for me this gives a max jitter of around 25000ns for both threads. Those are perfectly okay for LinuxCNC. 2) take a critical look at your BIOS settings, especially disabling power saving features, virtualization, C state and other things that may cause system interrupts and thus affect latency. 3) Cinnamon is a great desktop environment and also my personal favorite for my daily desktop use, but under some real-time kernels it does not always perform reliably due to some ongoing graphics driver issues causing interrupts. That is no problem for normal desktop use, but may be unreliable for low latency applications like LinuxCNC. I installed a pre-release of Debian Trixie (Debian 13) with realtime kernel 6.10.9-rt-amd64 and installed the Cinnamon desktop, and it seems to me that there are no issues anymore with Cinnamon under Debian Trixie, given the latency numbers I mentioned above. Bookworm and older Debian versions or older kernels may still be issues. Also take a look at the Latency Histogram instead of the Latency Test. The histogram gives you a much better visualization of the system latency performance, especially when you let it run for several hour. Make sure that the SD looks as optimal as possible, without any spikes in the side bands. I hope this may help a bit to further improve your LinuxCNC setup. Keep up the good work!!!!!

  • @Ryder5172
    @Ryder5172 4 месяца назад

    I just found this and I haven't quite dug into it deeply enough but I see LED, Keyboards and switches in the 4 videos are controllable using this. My question is I'm running LinuxCNC from a Raspi 5 with a parallel port hat connected to a gecko540 which consumes my 25 pins. Would I be able to configure this to run a pair of stepper motors to move around a tool changer controlled by an Arduino with an M6 command sent in Linux CNC? I'm not concerned with a bit of delay in the tool changer I'm okay if it moves slowly. My concern is making sure the motors can properly home themselves and orient the tool changer on startup. I'm fairly good at working with arduinos and I know I could make the tool changer function correctly I just need to be able to get it to interface with LinuxCNC (which I don't have much experience with) properly.

    • @theartoftinkering
      @theartoftinkering 3 месяца назад

      I'd say you can definetly do it. Can you code python? My Software is not yet supporting Steppers, so unfortunately some coding would be required for you.

    • @Ryder5172
      @Ryder5172 3 месяца назад

      @@theartoftinkering Hi, yes I have some Python experience, not a pro by any means. Sounds like it would be a fun project to figure out. I will start working on this soon and I'll probably have some more questions lol.

  • @ankithmistry
    @ankithmistry 5 месяцев назад

    Your videos are quite inspirational and informative, Thanks for upload. Can you tell me maximum Pulse rate of encoders Arduino can support over ether-cat in LinuxCNC

    • @theartoftinkering
      @theartoftinkering 3 месяца назад

      I don't know unfortunately. Also I don't think it is possible over Ether-cat, at least with my software.

  • @pauldockery3136
    @pauldockery3136 5 месяцев назад

    Wow!! you are the man. I have a maho mh800w with philips 532 controller which has just died. I am going to replace the 532 with linux cnc and want to use membrane buttons, keypad etc for all user inputs. I want to use your great work. thank you so much.

  • @osmarlima2012
    @osmarlima2012 5 месяцев назад

    Thanks for sharing this incredible content and development. Amazing job my dear friend 👏🏻👏🏻

  • @thomaselser4974
    @thomaselser4974 6 месяцев назад

    auf deutsch war's auch geil gewesen

  • @อุเทนสาลีเครือ
    @อุเทนสาลีเครือ 7 месяцев назад

    I asked about calling arduino-connector? I wrote a custom.hal file to run arduino-connector. Can be used. code:loadusr arduino-connector When I add the 2nd line of code. It doesn't work. code:net encoder arduino.counter.0 => axis.x.jog-counts But. I take the original code (line 2) and run it in halshow >> HAL command, it works. code:net encoder arduino.counter.0 => axis.x.jog-counts custom.hal file loadusr arduino-connector net encoder arduino.counter.0 => axis.x.jog-counts error: Debug file information: Note: Using POSIX realtime ./custom.hal:3: Pin 'arduino.counter.0' does not exist 19740 19750 Stopping realtime threads Unloading hal components Note: Using POSIX realtime ***Can you give me some advice?*** thank you

  • @jesta192
    @jesta192 8 месяцев назад

    No CAN bus here! lol

  • @อุเทนสาลีเครือ
    @อุเทนสาลีเครือ 8 месяцев назад

    I encountered this problem I tried to fix it but was unsuccessful. Please give me some advice. “dpkg-checkbuilddeps: error: unmet build dependencies: libgpiod-dev xvfb”

  • @ahmedabdallahfouad8682
    @ahmedabdallahfouad8682 8 месяцев назад

    Video is very faast i had to slow it down and repeat so many time. Thanks for the effort

  • @АлександрМухин-т9я
    @АлександрМухин-т9я 9 месяцев назад

    Работал на таком👍

  • @FabrimetalMx
    @FabrimetalMx 9 месяцев назад

    0.o yo quiero hacer eso!!!

  • @avdheshsharma5111
    @avdheshsharma5111 10 месяцев назад

    great work !! can you please explain how can i connect selector switch of a mpg pendant

    • @theartoftinkering
      @theartoftinkering 9 месяцев назад

      It depends on which kind of selector switch you have. If it has a Pin for each position you can wire it to the arduino as Input pin and do the logic in HAL.

    • @avdheshsharma5111
      @avdheshsharma5111 9 месяцев назад

      Buddy but the problem i am facing is arduino input pins are normally true when we trigger it with ground they become false where as the axis enable signal is normally false I am not able link them inversely I might me making an silly mistake can you please guid

    • @theartoftinkering
      @theartoftinkering 9 месяцев назад

      @@avdheshsharma5111you can invert the Logic by setting the invert parameter for each Input pin to True in HAL.

  • @mostafakh209
    @mostafakh209 10 месяцев назад

    thanks 🏅

  • @monsieurb24
    @monsieurb24 10 месяцев назад

    probably 0-10v, and f or R gl hf

  • @chaoslasse1095
    @chaoslasse1095 11 месяцев назад

    Gread Video! When i run the "loadusr arduino-connetor" in halrun, i get a error saying: <stdin>:1: execv(arduino-connector): No such file or directory The arduino-connector file is copied in the correct path. I can find it via the file browser... any advice?

    • @chaoslasse1095
      @chaoslasse1095 11 месяцев назад

      Fixed it, needet to make the file executible throuth the terminal, just checking the box in the settings tab didnt work. Or maybe a restart of the pc was needed. Or the python version in the first line needed to be updatet to my version (3.11) :D

  • @CBendicho
    @CBendicho 11 месяцев назад

    Buen vídeo manito

  • @Flenderr
    @Flenderr 11 месяцев назад

    Hahaha I was laughing out loud about the machining pinguin tool selection

  • @Championheli
    @Championheli 11 месяцев назад

    Könnte man das auch auf einen ESP32 portieren?

  • @Dipplers
    @Dipplers 11 месяцев назад

    It’s amazing how smooth the rotation is despite the size

  • @exalindustries1290
    @exalindustries1290 Год назад

    Thanks again for your great work. Thanks for adding the encoders, I've been looking forward to it. Now that I have everything I need and have experimented a bit, I'm going to build a little control panel for my little CNC.

  • @thayloreing337
    @thayloreing337 Год назад

    I'm trying to follow your video, but none of the ways explained worked. the Arduino does not appear in the hal confguretion show

    • @thayloreing337
      @thayloreing337 Год назад

      can you help me? I'm a beginner, in Brazil I don't get much information that I can understand

    • @theartoftinkering
      @theartoftinkering Год назад

      i don't know why it doesn't work for some people. You are not the first to have this issue. Have you tried calling arduino connector with halrun in the console?

    • @thayloreing337
      @thayloreing337 Год назад

      ​@@theartoftinkering Yes. but it didn't work when I ran it because the directory didn't exist

    • @theartoftinkering
      @theartoftinkering Год назад

      try running "python3 --version" it will tell you, which version you have installed. Propably you have 3.11 installed. Then open arduino-connector py file and edit the first line to match your version. That should fix it.

  • @mario-matix
    @mario-matix Год назад

    Top. Gute Arbeit 👍

  • @philiplydin2273
    @philiplydin2273 Год назад

    What was the total cost for your spindle servo motor including taxes and other fees?

    • @theartoftinkering
      @theartoftinkering Год назад

      i believe i paid around 1500€ total for mine. I found people who would order one with me together, so we could share the shipping cost to germany.

    • @philiplydin2273
      @philiplydin2273 9 месяцев назад

      Hello again, did you have any import fees or did you use the ddp shipping because that’s what I’m about worried about.

  • @cengizakgun9068
    @cengizakgun9068 Год назад

    Hello, I have installed Linux CNC ten times, I could not overcome the problem of different loadusr, arduino-connector, no matter what I tried, what is the reason for this, can you help me, what kind of installation should I do?

    • @theartoftinkering
      @theartoftinkering Год назад

      I did install Linuxcnc like this: ruclips.net/video/2SSzstLp5cs/видео.html

  • @pvsuryajaya1962
    @pvsuryajaya1962 Год назад

    How to use for CNC- Mach3 , its possible ?

  • @emcoalexx
    @emcoalexx Год назад

    Just to mention it: Don’t call the machine you learned a lot: Shitty little China lathe - because it degrades yourself - better think twice, mind you arrogance and be a better guy as before

    • @AttilaAsztalos
      @AttilaAsztalos 11 месяцев назад

      "A rose by any other name would smell as sweet"...

  • @poormansdiycorner
    @poormansdiycorner Год назад

    Congrats to the lathe! I am currently in the process of linuxCNCing my Voest-Apline Steinel lathe with the exception that I planning to keep the original AMK servo drives.

    • @theartoftinkering
      @theartoftinkering Год назад

      Thats a nice project for sure, i wish you a great time and the strength to finish it. It took me 2 years :D

    • @poormansdiycorner
      @poormansdiycorner Год назад

      @@theartoftinkering I am too more than a year in and I just recently was able to bring the machine indoors lol. Good news that the servos seem to work.

    • @theartoftinkering
      @theartoftinkering Год назад

      it was one year outdoors? How did you prevent it rusting? Maybe you find the time to make some videos about your project aswell :D

    • @poormansdiycorner
      @poormansdiycorner Год назад

      @@theartoftinkering Yes, it was outside but it was under a car sized metal framed tarp roof and the exposed surfaces were protected with CRC SP400 corrosion inhibitor wax. Other parts were protected by the remains of the cooling emulsion, as the machine is quite dirty. Sadly there are some smaller rust spots on the slideways from before I purchased it. Could you suggest a way to remove it without damaging the ways? Maybe some time I try to make videos about it.

    • @theartoftinkering
      @theartoftinkering Год назад

      @@poormansdiycorner i removed all rust with evaporust and cleaned it with a ultra sonic cleaner. After that the parts looked pretty much like new, it's truly amazing. If you can't buy evaporust where you live, citrus acid works too, but you need to remove it carefully again, since it keeps eating away the metal.

  • @evren.builds
    @evren.builds Год назад

    Heya, awesome video ^^ Can you share the pdf for the Weiler Primus btw?

    • @theartoftinkering
      @theartoftinkering Год назад

      please send me an Email at info@theartoftinkering.com

  • @andypughtube
    @andypughtube Год назад

    You could probably have used the matrix_kb component to connect the control panel (And the 7i73 is probably easier to set up than the Arduino). But the Arduino is a perfectly valid solution.

    • @theartoftinkering
      @theartoftinkering Год назад

      Hi Andy, i agree, the 7i73 is the nicer hardware for sure, not only because it runs in the servo thread. But the arduino is much cheaper and as it turns out it is easy to implement a lot of special features. You might now this thread on the Forum, where we got a MatrixCNC with shared wiring for multiplexed LEDs to work with my arduino-connector project. forum.linuxcnc.org/show-your-stuff/49606-matrix-keyboard-controlling-linuxcnc?start=60 See it working here: ruclips.net/video/VGt43evY7Rw/видео.html

  • @mgadriescu
    @mgadriescu Год назад

    So when are 3d printers going to use it?

  • @maciejrieju
    @maciejrieju Год назад

    this knob on the pressure gauge is for switching which pressure you want to check on the pressure gauge. chuck /pinola/main/etc . we have the same one in brinkman nc250

  • @bert-akeeliasson5902
    @bert-akeeliasson5902 Год назад

    Nice features!! Thanks for sharing.

  • @robwalker5479
    @robwalker5479 Год назад

    Every time I try this, halrun tells me no such file. Has anyone else run into this?

    • @theartoftinkering
      @theartoftinkering Год назад

      Yes, somebody had the same issue the other day. Check out this issue on Github: github.com/AlexmagToast/LinuxCNC_ArduinoConnector/issues/8 I am not shure what causes this and how to fix it unfortunately.

  • @choco107
    @choco107 Год назад

    Great work, will this work on a raspberry pi running Linuxcnc ?

    • @theartoftinkering
      @theartoftinkering Год назад

      I think it should work! If it does for you, would you please confirm?

    • @choco107
      @choco107 Год назад

      @@theartoftinkering will do

  • @samuelcorreaz2282
    @samuelcorreaz2282 Год назад

    What are you using to control the cnc ? Linux ?

    • @theartoftinkering
      @theartoftinkering Год назад

      yes LinuxCNC. I show everything about it on my channel.

  • @mattivirta
    @mattivirta Год назад

    how can install new version linuxcnc old computer HP core 2 dual computer have linuxcnc 2.8.4 now but maybe better use 2.9 or 2.10 version. worry new version need better computer than old HP have. can use or need lot better computer. old have important paraller port, many new not have.

    • @theartoftinkering
      @theartoftinkering Год назад

      If your current setup works i would not update unless you need to. But i think your Pc might be fine, just try it out.

  • @Tchefter
    @Tchefter Год назад

    Hallo Alex, absolut genial was Du da gebaut hast!!!👌 Wäre es möglich den scalingFactor über einen Taster oder Encoder zu ändern also quasi: 1 - 0.1 - 0.01 - 0.001 ? Gruß Fritz

    • @theartoftinkering
      @theartoftinkering Год назад

      coole idee. Ich denke ich kann dir da was einbauen. Leider kann es ein wenig dauern, da ich aktuell in Spanien unterwegs bin und quasi nichts zum Programmieren dabei habe. Ich schreibe dir, wenns was neues gibt.

    • @Tchefter
      @Tchefter Год назад

      Alex, blos kein Streß, mach erstmal Urlaub, das kalte Wetter fängt ja erst an 🤠👍

  • @talla83
    @talla83 Год назад

    Very cool 💪

  • @greatEndian
    @greatEndian Год назад

    Regards from heart of tinkerland.. thanks for pretty job

  • @rbyt2010
    @rbyt2010 Год назад

    Really nice! Do you have a thread going on the Linux CNC forum?

    • @theartoftinkering
      @theartoftinkering Год назад

      Yes, i'd reccommend this one: forum.linuxcnc.org/show-your-stuff/48630-arduino-io-expansion

  • @rbyt2010
    @rbyt2010 Год назад

    well. 1st - can't leave you at 666 subs! so - SUB! 2nd - I've been fooling with an LCNC Arduino IO extension. Looking forward to checking yours out

  • @盼明吴
    @盼明吴 Год назад

    Thanks!