Re: Arduino based Laser Control
Posted: Sat Dec 06, 2014 2:02 am
Tweakie:
Wow, thats looking good. Ok, lets debug it one step at a time and see where
Ive screwed you up..
Lets get diosga running, its the easiest test just so we know all else is running..
Test 1 for any panel: Does it fire in Diags mode?
1) Set to Diags, set count to 1000, ( 1/5th second).
2) Run button LED should now flash ( if box has one.. :)
3) Pressing fire should count down , PWM should go to power set by the pot.. 100% for test
4) did laser fire during count?
Ok course, being Tweakie you may already know the pwm firing section works, I ask the above
only so future new users will see an initial test responce..
Second test, NGrave mode. For this Darwin and Mach4 must be setup correctly.
This you will know if the following is true.
StepFlag pulses everytime any motor does a step. Doesnt matter what motor..
Serial Flag also pulses every time motion occurs. This doesnt match step by step,
when a waypoint is sent to Darwin, the serial clock will pulse 16 times each time
changing the state of the Serial data on each pulse...
Test: Set Darwin to Laser mode in the diags menu of mach4 under darwin. This turns on
the Laser outputs. Ensure Serial clk, serial data and Step flag are enabled and on proper pins.
Setup a PWM spindle in Mach3 and darwin, set it to frequency controlled in Darwins config at 25hz
what you set the frequency to doesnt actually matter in Darwins config, the diags setup in Mach4 will also
ask a frequency and Darwin will fill in the rigth hardware frequency then.
So in MAch4's diags menu setup for Darwin turn on PWM Spindle. Set it to 50hz. In Mach4, set the spindle range
to 0 min and 100max. Set Motor max rev at bottom of tab to 100. (all this is for power scaling).
Execute a S100F1000 in the MDI, then press the SpindleOn button on the screen or execture an M3.
The lcd in the panel should now show 100 in the REM: in the upper rigth corner indicating its getting
a spindle power of 100 currently. It wont shoot till it moves, but the power should show up as 100%
Lets trouble shoot from there.. :)
Art
Wow, thats looking good. Ok, lets debug it one step at a time and see where
Ive screwed you up..
Lets get diosga running, its the easiest test just so we know all else is running..
Test 1 for any panel: Does it fire in Diags mode?
1) Set to Diags, set count to 1000, ( 1/5th second).
2) Run button LED should now flash ( if box has one.. :)
3) Pressing fire should count down , PWM should go to power set by the pot.. 100% for test
4) did laser fire during count?
Ok course, being Tweakie you may already know the pwm firing section works, I ask the above
only so future new users will see an initial test responce..
Second test, NGrave mode. For this Darwin and Mach4 must be setup correctly.
This you will know if the following is true.
StepFlag pulses everytime any motor does a step. Doesnt matter what motor..
Serial Flag also pulses every time motion occurs. This doesnt match step by step,
when a waypoint is sent to Darwin, the serial clock will pulse 16 times each time
changing the state of the Serial data on each pulse...
Test: Set Darwin to Laser mode in the diags menu of mach4 under darwin. This turns on
the Laser outputs. Ensure Serial clk, serial data and Step flag are enabled and on proper pins.
Setup a PWM spindle in Mach3 and darwin, set it to frequency controlled in Darwins config at 25hz
what you set the frequency to doesnt actually matter in Darwins config, the diags setup in Mach4 will also
ask a frequency and Darwin will fill in the rigth hardware frequency then.
So in MAch4's diags menu setup for Darwin turn on PWM Spindle. Set it to 50hz. In Mach4, set the spindle range
to 0 min and 100max. Set Motor max rev at bottom of tab to 100. (all this is for power scaling).
Execute a S100F1000 in the MDI, then press the SpindleOn button on the screen or execture an M3.
The lcd in the panel should now show 100 in the REM: in the upper rigth corner indicating its getting
a spindle power of 100 currently. It wont shoot till it moves, but the power should show up as 100%
Lets trouble shoot from there.. :)
Art