Hybrid View
-
06-08-2021 #1
Hi leolfs, do you still need help with the sw?
I am not a great coder but might be able to phone a friend...
-
09-08-2021 #2
Hi Imclaren
Your timing is good Leolfs and I have been discussing getting the project underway, We have already purchased the ball screws and linear rails. the initial design for the laser cut components is complete.
The need is to connect the machine to devmonkeys software he that he outputs to the screen, fairly simple I guess once we get a handle on the code he posted.
Any contribution will be appreciated.
I do hope devmonkey is well, if anyone knows him personally send him my regards.
Regards
John
-
09-08-2021 #3
What sort of output would you like?
I am guessing that the error signal that is shown as a bar on the right is what you are after?
Are you running this on specific hardware that has a suitable hardware output or would you like a serial data stream from a comm port with an error value?
What sort of input does your motor controller want? step / dir or error signal?
-
02-09-2021 #4
Hi John,
Yes all good here thanks just very busy on other projects and work.
On getting the error signal out of the java app and into your hardware there are two choices,
1. Integrate a serial library,
2. Make a small change to the app to print the error to standard out and then pipe this directly into a serial comm port.
I don't really have time to do this or test it right now but someone else could have a go, (2) is much easier if you don't want to mess about with the code too much, there is a tutorial on windows comm port piping here:
https://batchloaf.wordpress.com/2013...rt-in-windows/
Cheers, Joe
-
02-09-2021 #5
-
07-03-2023 #6
Hi Bryan Howard
Gee It was great to see this project moving again.
Devmonkey inspired me when he first posted this great idea
I am still very keen to build an open source surface straightening device using a webcam and stretched wire. Using a small milling cutter to flatten a surface point by point. All I need is a signal that tells me the webcam software has found center of the wire, from a PC or microprocessor via a hardware port. Ideally a digital Value +- signal to enable me to find the wire more easily when moving the camera over the wire.
I know I can build the hardware and provide the XYZ Motion control, Its just the webcam reading code that is beyond me.
Extensive testing that proves the accuracy of stretched wire was done, all my results were posted earlier on this thread a few pages back.
I also posted an early concept open source 3D model on Github
Cheers
John
-
07-03-2023 #7
I think I might have seen the model on GrabCad as well? I think having a PC and sending values to a microcontroller like an arduino would be the way to go. Then your microcontroller would be driving the steppers/servos. Communication would look like this in Python:
import serial
# configure the serial connection
ser = serial.Serial('COM3', 9600) # change 'COM3' to the appropriate serial port name
# send the message
ser.write(b'Hello, world!\n') # the 'b' before the string converts it to bytes
# close the serial connection
ser.close()
-
09-03-2023 #8
Using wire has the advantage over a laser beam when it comes to defining the boundary of the image formed on the webcam Microscope sensor. the thickness of the wire is known. and depending on the magnification of the microscope it will cover a certain number of pixels. There will always be aberrations; if the image not perfectly focused or if the lines in the camera sensor are not perfectly aligned to the wire. The the existing algorithm corrects for a fuzzy image rather elegantly.
Placing a black background behind the (illuminated wire) provides a very sharp contrast.
As I posted I got very good results using a manual lash up. using a micrometer. This method will provide all the data needed to flatten a surface. (Sag in the wire amounts to a couple of tenths over 2400mm, 8feet) You can use the Catenary formula to correct your measurements if you require higher accuracy.
The machine I posted on Grabcad simply automates the process and employs a small cutter to flatten a surface in this case held vertically, No sag to worry about. It moved the camera (It is mounted on the cutting head slide) until it is centered on the wire then makes a tiny cut. It will be a slow process, several hours but in the end there will be a very flat surface developed.
If this goes ahead I better dig up the ball screws and linear bearings I bought for this project. :)Last edited by John McNamara; 09-03-2023 at 04:25 AM.
-
09-03-2023 #9
GrabCad Model
I made a 3d Model to be made from laser cut parts that should be able to prove the viability of using stretched wire and a webcam microscope sensor.
The design uses two webcams to sense two suspended vertical wires with a weighted end suspended in Oil. This will guarantee that the two wires are parallel in two planes. This will eliminate any twist in generated surface, it will be a true plane.
I designed the mechanism using a laser cut frame and 100mm square tube and parts I have on hand.
There is minimal machining to do mainly small size lathe work.
To clear up any uncertainty The webcam sensor is moved mechanically until the image of the wire is Is centered on the webcam sensor. The size of the image will be determined by the magnification used. Small errors in the optics can be ignored as we are always using the same part of the lens.
https://grabcad.com/library/machine-...linear-rails-1
-
10-03-2023 #10
I’ve got the whole python tool complete in comparison to the java tool minus an export csv button. Some other things I’ll add which would be nice - replacing the selected sample in the table with a new one. https://github.com/bhowiebkr/laser-level-webcam
Edit instead of adding another post bump. I've made another version fixing with export and some visual feedback on selecting table samples, a replace sample button which I'll find very useful as I can adjust an area and resample over and over till it's where I want it. Tooltips on everything so you should be able to figure out what everything does by just hovering over the widgets.Last edited by BryanHoward; 11-03-2023 at 08:45 AM.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
WANTED: K40 laser
By dfox1787 in forum Items WantedReplies: 0Last Post: 23-10-2018, 08:34 PM -
Newbie - Help With Laser Cutting Speed And Power - 60W Laser
By nickpscott in forum Laser Machines & BuildingReplies: 2Last Post: 11-11-2015, 10:07 PM -
FOR SALE: K40 laser not working (laser fires)
By calida in forum Items For SaleReplies: 0Last Post: 31-03-2015, 08:45 PM -
WANTED: GCc Laser Pro or Epilog Laser Cutter Machine
By Brownhills school in forum Items WantedReplies: 1Last Post: 10-05-2012, 04:30 PM -
help with cnc laser
By swinds in forum Laser Machines & BuildingReplies: 11Last Post: 09-01-2012, 10:15 PM
Bookmarks