Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request - positioning with a camera #497

Open
lucem opened this issue Mar 25, 2024 · 0 comments
Open

feature request - positioning with a camera #497

lucem opened this issue Mar 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@lucem
Copy link

lucem commented Mar 25, 2024

Hi, I also posted this as a comment on this video (https://www.youtube.com/watch?v=-PpH7bcs7vM),
but since you asked me to, I'll open it up as a feature request on github as well.
(update: yt seems to have not liked my comment and removed it...)

bCNC has a nifty camera alignment plugin (https://github.com/vlachoudis/bCNC/wiki/Probe-Camera-Alignment)
which would suit gSender well if it was implemented. (Here it is in motion https://www.youtube.com/watch?v=bs4og_uanjM)

Essentially, it consists of grabbing a frame of the camera (regular webcam), overlaying the crosshair graphic with correct scaling
(explained in the bCNC wiki entry) and knowing the fixed tool to camera offset in XY; that way, you can move using the camera and
align to the stock visually, set your zero, then switch over to the tool and the center of the tool is in the exact place where the camera has been before.

In terms of effort, it's not that hard to implement. I'd do it myself, were it not for the fact that
a) I am no web developer, I write C++
b) I have no experience programming Electron, which is essentially a browser (chromium) and a lot of APIs on top of it
so I think it would take me way too long to come up with an implementation and send you a pull request.
Instead, I will ask you to consider implementing it.

For me personally, the lack of being able to use the camera is what keeps me from using gSender exclusively as an otherwise excellent
gcode sender, as in other ways, it is more than perfect - grblHAL support as a convincing argument for instance :)

Thanks a lot, I hope you find this feature request as useful as I do.

Some other resources to look at here:

A general article going over the concept and uses of attaching a camera on a CNC
https://www.datron.com/resources/blog/a-camera-can-revolutionize-your-workpiece-setup/

An example of the type of camera useful for this, and how it may be attached
https://hackaday.com/2015/03/16/microscope-camera-for-zeroing-cnc-machines/
https://cockrum.net/cnc.html#microscope
(His site is an excellent resource on the topic, as well as many other things)

A 4-part series on developing such a solution
https://medium.com/home-wireless/a-tiny-sealed-raspberry-pi-webcam-594896965de6
https://medium.com/home-wireless/cnc-spindle-cameras-part-ii-7b5ae0b5fbed
https://medium.com/home-wireless/spindleview-cnc-camera-software-a647393fb379
https://medium.com/home-wireless/how-to-use-a-spindle-camera-and-spindleview-c2d28eba6d9b
(The why, how and the means)

A demonstration of a camera system on a German CNC project site plus software for it
https://www.cnc14.de/news/cnc14camera
https://github.com/sussner/CNC14Camera

@lucem lucem changed the title feature - positioning with a camera feature request - positioning with a camera Mar 25, 2024
@walidkayhan walidkayhan added the enhancement New feature or request label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants