Arduino based Laser Control

A forum for the Arduino based Mach4/Darwin Laser Control Panel
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post 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
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post 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
Last edited by DanL on Wed Nov 26, 2014 5:58 pm, edited 1 time in total.
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post 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
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post 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
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post 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
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post 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
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Voltage change on what signal?

Art
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

pin 9 laser output
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post 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
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post 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


 
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

its all go cnc mode works it changes out of diags to cnc mode.
diags works.
engrave works.
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post 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
User avatar
tweakie
Old Timer
Posts: 170
Joined: Wed Dec 01, 2010 12:58 am

Re: Arduino based Laser Control

Post 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
Attachments
ard1.jpg
Last edited by tweakie on Sat Dec 06, 2014 11:44 pm, edited 1 time in total.
User avatar
ArtF
Global Moderator
Global Moderator
Posts: 4586
Joined: Sun Sep 05, 2010 6:14 am
Contact:

Re: Arduino based Laser Control

Post by ArtF »

Wow.. Thanks Tweakie, that looks awesome...

Art
User avatar
tweakie
Old Timer
Posts: 170
Joined: Wed Dec 01, 2010 12:58 am

Re: Arduino based Laser Control

Post 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.

Attachments
DSC01791a.jpg
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests