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 »

ok just let me know when you have something to try
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

art I did a trucken nob thing I forgot to connect up the common wire to the bob.

it does work in PWM mode and for some reason the MB-06 is running the at 12Hz.

its pulsing so fast you can`t see the change on the screen but I can see it on the scope.

I will change over to using the G540 for the pwm and see if that makes it run at 50Hz.

sorry for being a nob
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:

  Funny thing is I did the same early on, forgot to hook up the 0vdc, so the signals were very noisy.
I had figured last night something must be up since you switch from diags to PWM when you turn on the spindle,
this means the PWM interupt must work.If the PWM is truly too low a freq, just tell it to go a bit faster in the
Darwin Diags menu under PWM frequency. ( Dont enter the frequency in Darin itself, just in Mach4, Darwin uses a differign formula and will report 25hz on a 50hz PWM system.

  If the PWM is only at 12hz.. thats slow, not fast. It should make a PWM waveform at 50hz, which is 200us per PWM pulse cycle. Anyway, with the ground wire hooked up you should be seeing that REM:50 in the top of the screen in CNC mode if you select S50M3.
  If so, I think your good to go.

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

Re: Arduino based Laser Control

Post by DanL »

yer seeing rem 50 at s50m3, rem 100 at s100m3,
so its Defiantly all go.
so make me fell like a nob forgetting to connect 0v up to bob from arduino
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 »

lol.. dont feel too bad, I forgot to do it as well when I hooked up, and I spent
25 years as an electronics guy... :)

Art
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 All:

  Just a note. Im playing with my laser today to see the differences between modes of the panel
to ensure its working as I wanted. Ive modfiied it a bit in Darwin. Heres a definition of how each mode
works.


Diags Mode:

  Used ony for testing, nice to see how many shots and at what power it takes to piece
  a particular material.
 
CNC ModE:

  In this mode, if the PWM spindle is on, during any motion the laser shoots. The power is
  set by the S word, ( S(SpindleMax) is equal to max power. BUT, the power is distance/time corrected.
  Let me explain that last term. Lets say you have a feedrate of 4000mm/min. Thats 66.6mm/sec.
  My laser shoots 5000hz, so 5000 times a second it can shoot. SO if Im moving at 66mm/sec, thats
  5000 shots over 66mm at top speed or about 75 shots per mm. My system has 250 steps/mm so thats
  75 shots over 250 motor steps..  so I only get about 30% of each fullpower shot over any 1 step
  of the motor.
    But what if Im still accelerating ? I may be moving much slower than 66mm/sec as I speed up, so the
  CNC mode takes account of how many steps Im currrently taking this second, compares it to the fastest
  I will go as determined by the F word, and scales all outpu8t to that max. This way, you dont get more
  energy per mm at acceleration or deceleration. This is very handy at smoothing out acceleration articfacts
  and stopping burning in corners.
    Its important to understand this as you must try to set a feedrate that isnt higher than you can go.
  For example setting a feedrate of F25000 when the fastest your drawing can get to is 250 will mean you
  will always have no more than 1% of your expected power.
 
Engrave Mode

  My favorite mode. In this mode the laser will NOT shoot unless a) its moving and b) its a G1 move.
  This means once you turn on the spindle, you can jog and it wont cut, run a Gcode program that uses a spindle,
  and the G1's will cut, while the G0's wont. this means you dont need a bunch of M3 and M5 to slow
  you down or have to edit to get that. A normal Gcode program for mill will cut on a laser fine with
  no editing. Also, in this mode you can link a photo for photo engraving, the laser will then vary power in
  realtime as a ratio fo Photo density.
    I have found though, that I wanted the distance/time fix as mode CNC above. So today I added that to the
  Engrave mode. Im testing it and all seems very good in all three modes. (Im cutting a XMas card for my wife
  as a test. ( Christ Im cheap.. or perhaps I just hate shopping that much... :-)
 
    So I used VCarve to vector a Card graphic, posted for mill, and its cutting it fine from Bristol board.
  Gotta love lasers. So this latest update makes the Laser cut fine from Milling GCode. Love it..
 
 
  Anyay, just a Laser update.. Enjoy the holidays.
 
  Art
DanL
Old Timer
Posts: 362
Joined: Wed Sep 10, 2014 1:35 pm

Re: Arduino based Laser Control

Post by DanL »

thanks art merry xmas
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests