Page 11 of 27

Re: Arduino based Laser Control

Posted: Wed Nov 26, 2014 11:46 am
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: Wed Nov 26, 2014 4:57 pm
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 2:23 am
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 7:26 am
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 9:18 am
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 10:07 am
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 10:58 am
by ArtF
Voltage change on what signal?

Art

Re: Arduino based Laser Control

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

Re: Arduino based Laser Control

Posted: Thu Nov 27, 2014 5:26 pm
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 1:42 am
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


 

Re: Arduino based Laser Control

Posted: Fri Nov 28, 2014 11:31 am
by DanL
its all go cnc mode works it changes out of diags to cnc mode.
diags works.
engrave works.

Re: Arduino based Laser Control

Posted: Fri Nov 28, 2014 11:44 am
by DanL
My set up for arts laser controller

G540 controlling motors, limit switches and estop

MB-06 V2 bob for controlling laser outputs and a kill switches for MB-06

pins used on MB-06 are

step flag pin 14 to pin 3 arduino

serial data pin 16 to pin 11 arduino

serial clock pin 17 to pin pin 2 arduino

pwm output pin 1 to pin 7 arduino

kill switch (NC) for MB-06 pin 10

MB-06 set to active high

Re: Arduino based Laser Control

Posted: Fri Dec 05, 2014 10:32 pm
by tweakie
If it?s any assistance to others that follow with this project I have redrawn Art?s circuit diagram to show the interconnections and pin numbers shown on my Leonardo.

Tweakie.


EDIT Circuit diagram updated to include series resistors for LED's

Re: Arduino based Laser Control

Posted: Sat Dec 06, 2014 1:17 am
by ArtF
Wow.. Thanks Tweakie, that looks awesome...

Art

Re: Arduino based Laser Control

Posted: Sat Dec 06, 2014 1:38 am
by tweakie
Thanks Art.

Well I have built it but I can't get it to work - no laser output pulses (except for the tickle pulse ?)  :'(
It's got to be something really silly that I am doing wrong but so far it is eluding me.  ;D

Tweakie.