Page 16 of 21

Re: Arduino based Laser Control

Posted: Wed Nov 26, 2014 10:46 pm
by DanL
I found what was wrong with the bob I am using there are two ways to enable it enable hi and enable low, enable hi is for when you have a nc estop and enable low is for a no estop had it set to enable hi with a no switch.
I am not at the machine at the moment will change later and report back and give a exploitation of how to use a mb06-v2 bob from homann to run the laser

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 3:57 am
by DanL
cant get cnc mode to work tried m3s100
                                           g1x100f400
                                           g1x0f400
                                           m3
nothing happens.

engrave mode works well

I was correct about the switch being the wrong type changed to a nc/no switch and it works fine
I wont do a write up to I can get it all working.

I don't need to add in a lcd.print for pwm state as the bob is on the back of the box for the laser controller and I can see if pwm`s working

thanks for the help I will try the new code later and change it to Leonardo only code

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 1:23 pm
by ArtF
Hi Dan:

  If your in Diags, the state should change to cnc mode as soon as it see's a PWM pulse on the PWM input line.. Its an interrupt,
so it will trigger a switch to cnc mode immediately.. so the pin number coudl be wrong, or perhaps Darwin isnt putting it out on the
rigth pin due to config.

  Set it up for PWM, than issue a M3S50 when you have a Spindle raneg of  0 ,100 set in m4. That shoudl turn on the pwm.. which should then switch the panel from diags to cnc mode..

art

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 6:26 pm
by DanL
What the problem is, with it changing from diags to cnc mode is that the scale is way of with the g540 when I had the spindle connected I had to set it to 12000 rpm more than was need so if I called for 5000 rpm I had to call 17000rpm for it to do 5000rpm.

I will change it over to the mb-06 that hopefully will fix it the signals are going out in engrave, cncmode and diag.

everything is working as it should it just the scale problem with cncmode.

I will load the new version first the change all the spindle pins over

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 8:18 pm
by ArtF
Dan:

  Ive found mine is acting up, Ill have to open it up tomorrow, its running fine in NGrave mode, but CNCMode isnt
working and Diags is intermittant.. Im pretty sure its a wire loose in the buttons.. All else is running, but CNC mode
wont burn. NGrave mode burns fine though, so check the laser mode, then use NGrave mode and your fine for all usage, photos as well as normal m3/m5 cutting..

  Ill get mine fixed up so we can compare when your firing..

Art

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 9:07 pm
by DanL
yer it may be a M4 problem causing it Ill see what happens when I change it over to the mb-06.
but first I might change the spindle to 0 - 1000, and 0 - 10000. see what happens.

if it works its a M4 fault as I was getting a voltage change of only 0.001 at 1% and 0.003 at 75% in cncmode

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 9:58 pm
by ArtF
Voltage change on what signal?

Art

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 11:20 pm
by DanL
pin 9 laser output

Re: Arduino based Laser Control

Posted: Fri Nov 28, 2014 4:26 am
by DanL
I just read over yesterdays post I wired everything up according to the drawing you did so I do not have a pwm input might pay to add that to the drawing.

I will put one in to night a see if it changes anything

Re: Arduino based Laser Control

Posted: Fri Nov 28, 2014 12:42 pm
by ArtF
Hi Dan:

  Thanks, I'll add the PWM input, though its opitional, its only used in the CNC mode.. not NGrave which
is the normal mode for CNC usage. It is handy though to see if the PWM input makes the box
switch to CNCMode from diags.

  I took mine apart last night and it had a loose 5vdc wire, so it seems to be running well again..

Let me know when your operational and well run some tests to see whats up. In Engrave mode you should
be able to see Darwin send power commands to the box with just a simp[le test or two..

Art