Hello, I am looking to make a line tracer for a servo driven metal cutting torch table. It needs to be able to follow a dark line on a light background and drive the X and Y servo motors around the tracing.
The gantry has an overhanging slide that the torch is attached too and cuts.
I have looked at the line tracer robots and this code would likely work for the tracer "eye" but wondering how I might also drive the X and Y servos to move the gantry as it follows the trace?
If you know where the line is, you'd need to guess where to go from there, to stay on the line. One approach would be to do what a line following robot does, and move a small amount, and see where the line went. If it is not still centered below you, move a little bit, towards the line. If you move small enough distances, you can follow the line relatively accurately.
The only wrinkle is that you won't be orienting the sensor array to be perpendicular to the line, so you'll need two arrays, at right angles, and you'll need to drive the X and Y axes independently. Obviously, the center sensor will be shared by both arrays.