Hi Guys.
This may be one for Greg - I have used Greg's script to turn a laser cross-hair on/off.
However - I am having some teething problems.
The laser runs beautifully from two 1.5v batteries, and from the 5v outlet of a computer power-supply - just somewhat brighter.
I concluded that the wiring is therefore OK.
However, when I try to run it from my B.O.B. (CNC10, - pin 17, - set for output5, Mist Control), as suggested by Greg, it either triggers a 'reset', just like a limit switch, or gives a message in Mach3 saying çompile error'. I am running two B.O.B's and get the same result from both.
I have double-checked the code from Greg and it is definitely correct.
I also tried running it direct from the 5v outlet on the power supply for my machine (an un-regulated toroid supply which has three outlets: 64vdc, 12vdc, and 5vdc).
When I hook the laser leads to the 5v outlet, the lights go out on both my B.O.B.;'s, there is a çlunk' noise from somewhere inside the works, and the laser does not work.
When I then try it again with either the batteries or the computer-supply, it works fine.
I have tried several different pins on both B.O.B's, and with the pins set to both áctive high', and áctive low', but still no joy.
I guess I could simply wire the laser into a battery box and run a manual swith for it, but would like to get it running áutomatically'if possible.
I have consulted a friend who is wise in the ways of electronics, but even he is baffled. - Any suggestions would be greatly appreciatted.
Cheers
Noel :?:?:?