- Posts: 94
- Thank you received: 72
Arduino IO Expansion
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
3 years 7 months ago #267799
by AlexMagToast
Arduino IO Expansion was created by AlexMagToast
Hi,
I want to share a little side Project i've been working on.
For my CNC Lathe Retrofit Project i was left with a couple of old Buttons, Knobs and Lights on the control Panel. I wanted to implement an easy and cheap option to connect all of them to LinuxCNC useing an Arduino.
This led to this Software here:
github.com/AlexmagToast/LinuxCNC_ArduinoConnector
I think this is quite a nice and skaleable solution, since it can handle as many IO's and Analog Inputs as i think one can ever need. It is however not in the RT Thread and is not intended for Timing or Safety relevant Stuff like Endstops or Emergency Stops.
Here is a short overview of supported IO Modes:
To work with selector switches with many positions and lots of RGB LEDs i implemented "virtual Pins" which basicly are feed from one input and divided into different Hal Pins in LinuxCNC.
It uses Python-serial and the Python Hal module and works with 2.8 and above.
I think the software works very well but jet had no Feedback from Users.
So if you like it or have suggestions on how to make it better please don't hesitate.
Cheers,
Alex
I want to share a little side Project i've been working on.
For my CNC Lathe Retrofit Project i was left with a couple of old Buttons, Knobs and Lights on the control Panel. I wanted to implement an easy and cheap option to connect all of them to LinuxCNC useing an Arduino.
This led to this Software here:
github.com/AlexmagToast/LinuxCNC_ArduinoConnector
I think this is quite a nice and skaleable solution, since it can handle as many IO's and Analog Inputs as i think one can ever need. It is however not in the RT Thread and is not intended for Timing or Safety relevant Stuff like Endstops or Emergency Stops.
Here is a short overview of supported IO Modes:
- analog Inputs
- digital Inputs
- digital Triggered Inputs
- digital Outputs
- PWM Outputs
- support of Digital RGB LEDs like WS2812 or PL9823
- latching Potentiometers / Selector Switches
- 1 absolute encoder input
To work with selector switches with many positions and lots of RGB LEDs i implemented "virtual Pins" which basicly are feed from one input and divided into different Hal Pins in LinuxCNC.
It uses Python-serial and the Python Hal module and works with 2.8 and above.
I think the software works very well but jet had no Feedback from Users.
So if you like it or have suggestions on how to make it better please don't hesitate.
Cheers,
Alex
Please Log in or Create an account to join the conversation.
3 years 7 months ago - 3 years 7 months ago #267828
by HansU
Replied by HansU on topic Arduino IO Expansion
I always wonder why people always try to reinvent the wheel.
For me it looks very similar to this one forum.linuxcnc.org/24-hal-components/473...al-component?start=0
which is built on Jeff Epler's Arduino HAL (mentioned in the thread).
And also this one: forum.linuxcnc.org/18-computer/23166-arduino-i-o-with-linuxcnc
For me it looks very similar to this one forum.linuxcnc.org/24-hal-components/473...al-component?start=0
which is built on Jeff Epler's Arduino HAL (mentioned in the thread).
And also this one: forum.linuxcnc.org/18-computer/23166-arduino-i-o-with-linuxcnc
Last edit: 3 years 7 months ago by HansU.
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 72
3 years 7 months ago #267855
by AlexMagToast
Replied by AlexMagToast on topic Arduino IO Expansion
i needed a custom solution to use the Switches that came with my machine and it kind of escalated from there.
The code is actually inspired by jet another project i can't find again right now.
I am not trying to reinvent the wheel, i just sharing my work, so others can take a look at it and maybe shed some Hours of work, just like i did.
Also i am quite proud of this because of all the stuff you can do with it and how easy it is to set it up.
The code is actually inspired by jet another project i can't find again right now.
I am not trying to reinvent the wheel, i just sharing my work, so others can take a look at it and maybe shed some Hours of work, just like i did.
Also i am quite proud of this because of all the stuff you can do with it and how easy it is to set it up.
The following user(s) said Thank You: jg00163206, GeckoWorks
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Platinum Member
-
Less
More
- Posts: 327
- Thank you received: 92
3 years 6 months ago #268604
by besriworld
Replied by besriworld on topic Arduino IO Expansion
Can you add example configuration for arduino and linuxcnc. Thank you for sharing ! Nice project.
Please Log in or Create an account to join the conversation.
- AlexMagToast
- Topic Author
- Offline
- Premium Member
-
Less
More
- Posts: 94
- Thank you received: 72
3 years 6 months ago #268631
by AlexMagToast
Replied by AlexMagToast on topic Arduino IO Expansion
have you tried it?
I was hoping the documentation would be good enough.
I'm working on a Youtube Video, giving a better explanation.
I was hoping the documentation would be good enough.
I'm working on a Youtube Video, giving a better explanation.
The following user(s) said Thank You: besriworld
Please Log in or Create an account to join the conversation.
- besriworld
- Offline
- Platinum Member
-
Less
More
- Posts: 327
- Thank you received: 92
3 years 6 months ago - 3 years 6 months ago #268678
by besriworld
Replied by besriworld on topic Arduino IO Expansion
Not yet... I'll wait for a video clip.
Last edit: 3 years 6 months ago by besriworld.
Please Log in or Create an account to join the conversation.
Time to create page: 0.304 seconds