Starting a new (first) project

More
09 Feb 2025 08:42 #321048 by matgraci
Starting a new (first) project was created by matgraci
Hello everyone and very glad to be a part of the community! This is my first post :)

I am super new to the linuxcnc and I have actually been reading the forum for the last couple of months trying to get started by myself and trying not to bother everyone with the questions that could be found in the documentation and/or previous posts. However it seems that now I have hit the limit and it takes toooo much time to get unstuck. I would really appreciate some push in the right direction :)

Anyways, I am trying to build quite a complex machine that has a single motor to control something like a winch and pull some things up and down. I got myself a Delta ASDA-A2-E inverter running a 1.5kW motor and I managed to get it moving using the Ethercat driver and axis GUI. The control is running on the Raspberry Pi 4B and I managed to get the linux cnc installed and running and to spin the motor in a position control mode, even though, later on I will need to use the torque control. But all of this was mainly the learning curve to actually get started :)

So what I would like to do is a simple GUI (probably from scratch) that would allow me to set the needed torque. Torque control will be quite complex, so I will need a place to write my own controls (I would prefer c/c++, but probably I can survive also with python). There should be also other functions for safety, data collection, etc, but this I can add along the way. Can you guys please help me set the simplest Hello World project where I would be able to get started? I would really appreciate any help.

Up until now I have been trying on Linux raspberrypi 6.1.54-rt15 but I am willing to start from scratch if there is a better option.

Thanks in advance!

Please Log in or Create an account to join the conversation.

More
09 Feb 2025 19:37 #321102 by andypugh
Replied by andypugh on topic Starting a new (first) project
You might find some useful ideas here; forum.linuxcnc.org/30-cnc-machines/42100...up-questions?start=0
I wrote (most of) a special purpose system without any G-code for a press brake.

GladeVCP and Python is probably the well trodden path, but QT and C++ is certainly possible.

And you will need C for any realtime parts such as custom HAL components.
The following user(s) said Thank You: tommylight, matgraci

Please Log in or Create an account to join the conversation.

More
10 Feb 2025 10:36 #321150 by matgraci
Replied by matgraci on topic Starting a new (first) project
Thanks for the reply!

I actually did go through it all already and actually started doing something in that direction, but I got stuck on trying to install the Glade. Since I already did a lot of mess trying to install Qt and playing with QtPyVCP, I decided to try setting the fresh instance of linuxcnc following all the steps that I documented when I did it first time. Then I figured out that they no longer work :D and decided to actually ask for the help because it seems to be the endless loop of trials and error :D

I am at work now, but when I come home this evening I'll try again and c/p the errors that I am getting.

Please Log in or Create an account to join the conversation.

More
10 Feb 2025 12:57 #321155 by JT
Replied by JT on topic Starting a new (first) project
Flex GUI might be just what you need.
gnipsel.com/linuxcnc/flexgui/index.html

JT
The following user(s) said Thank You: matgraci

Please Log in or Create an account to join the conversation.

More
10 Feb 2025 13:46 #321159 by cmorley
Replied by cmorley on topic Starting a new (first) project
Qtvcp is included with linuxcnc.
linuxcnc.org/docs/devel/html/gui/qtvcp.html
and Gladevcp
linuxcnc.org/docs/devel/html/gui/gladevcp.html

Both can be used for GUI building, Qtvcp is easier then Gladevcp I would say.
The following user(s) said Thank You: matgraci

Please Log in or Create an account to join the conversation.

More
11 Feb 2025 06:06 #321209 by matgraci
Replied by matgraci on topic Starting a new (first) project
Thanks JT, this might be exactly what I am looking for. And is very well documented with many youtube tutorials.

I did manage to get the demo up and running. Will keep you posted about the progress in the next few days.

Thanks all for the help!

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum