Linuxcnc with Computer Vision …

More
03 Mar 2021 17:51 #200918 by Hamel2020
Hi,
As I know there was no enough topics about this subject , but I’m working on idea that ,
We know that the deviation in z direction for plasma cutting can be solved by THC , floating head ..etc , but I’m working on a welding machine , where the deviation on x, and y will be more .
So I used python openCV , to measure this deviation , and I was able to get the difference dimensions in x,y .
But I was not able to update the G-code simultaneously .
Any idea to update the g –code …

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

More
03 Mar 2021 21:13 - 04 Mar 2021 22:15 #200942 by tommylight
No need to change gcode for that, have a look at external offsets, should be much easier to get to what you need.
linuxcnc.org/docs/2.8/html/motion/external-offsets.html
PlasmaC should be already using external offsets to give you a starting point.
Last edit: 04 Mar 2021 22:15 by tommylight. Reason: typo
The following user(s) said Thank You: snowgoer540

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

More
04 Mar 2021 11:16 #201015 by snowgoer540

No need to change gcode for that, have a loot at external offsets, should be much easier to get to what you need.
linuxcnc.org/docs/2.8/html/motion/external-offsets.html
PlasmaC should be already using external offsets to give you a starting point.


I swear I replied with essentially this same thing last night. I must have never clicked send then closed the browser without realizing...
The following user(s) said Thank You: tommylight

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

More
04 Mar 2021 18:19 #201031 by Hamel2020
Hi .. Tom

This is a good advise to start , but as I watched some video , all external offsets was controlled manually , as explained i will use it for a welding machine as a tracking sensor for the welding gap ... still the idea not clear for me how to integrate the feed back from openCV to external offset to effect the motion of x, y simultaneously .

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

More
04 Mar 2021 18:21 #201032 by Hamel2020
never mind ... thank you

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

More
04 Mar 2021 22:14 #201062 by tommylight

No need to change gcode for that, have a loot at external offsets, should be much easier to get to what you need.
linuxcnc.org/docs/2.8/html/motion/external-offsets.html
PlasmaC should be already using external offsets to give you a starting point.


I swear I replied with essentially this same thing last night. I must have never clicked send then closed the browser without realizing...

Did you make the same typo ??? :) :)
loot...
The following user(s) said Thank You: snowgoer540

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

More
24 Mar 2021 10:31 #203502 by thefabricator03
Hamel2020, did you get it to work? If so how successful were you? I plan to do something similar using a THCAD10 as the welding sensor.

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

More
25 Mar 2021 01:31 #203563 by Hamel2020
Hi …
Actually I’m still working on it … I was able to read the distance (gap-welding width) between the two plates as the photo , I used the external offset as Tommy advise , but the offset examples in axis is limited specially for sine oscillating motion damping in Z-direction , ( this will be helpful in case of plasma cutting ) but for welding need damping in XY-direction .
Still I need the convert the image reading into a voltage signal to indicate the max_lim and min_lim for the damping oscillating .
I used opencv and python
Attachments:

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

More
25 Mar 2021 01:33 #203566 by thefabricator03
What kind of camera are you using?

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

More
25 Mar 2021 01:39 #203567 by Hamel2020
this one
Attachments:
The following user(s) said Thank You: thefabricator03

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

Time to create page: 0.111 seconds
Powered by Kunena Forum