GearHeads Corner
June 02, 2020, 03:24:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: 1 ... 12 13 [14]
  Print  
Author Topic: Arduino based Laser Control  (Read 61406 times)
0 Members and 1 Guest are viewing this topic.
DanL
Sr. Member
****
Posts: 362


View Profile
« Reply #195 on: December 13, 2014, 01:15:59 AM »

ok just let me know when you have something to try
Logged
DanL
Sr. Member
****
Posts: 362


View Profile
« Reply #196 on: December 13, 2014, 02:38:44 AM »

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
Logged
ArtF
Administrator
Hero Member
*****
Posts: 5634



View Profile
« Reply #197 on: December 13, 2014, 08:23:27 AM »

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
Logged
DanL
Sr. Member
****
Posts: 362


View Profile
« Reply #198 on: December 13, 2014, 04:07:06 PM »

yer seeing rem 50 at s50m3, rem 100 at s100m3,
so its Defiantly all go.
so make me fell like a nob forgettin g to connect 0v up to bob from arduino
Logged
ArtF
Administrator
Hero Member
*****
Posts: 5634



View Profile
« Reply #199 on: December 13, 2014, 07:23:31 PM »

lol.. dont feel too bad, I forgot to do it as well when I hooked up, and I spent
25 years as an electroni cs guy... Smiley

Art
Logged
ArtF
Administrator
Hero Member
*****
Posts: 5634



View Profile
« Reply #200 on: December 22, 2014, 08:46:46 AM »

Hi All:

  Just a note. Im playing with my laser today to see the differenc es between modes of the panel
to ensure its working as I wanted. Ive modfiied it a bit in Darwin. Heres a definitio n 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 particula r 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(SpindleMa x) 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 accelerat ing ? I may be moving much slower than 66mm/sec as I speed up, so the
   CNC mode takes account of how many steps Im currrentl y taking this second, compares it to the fastest
   I will go as determine d by the F word, and scales all outpu8t to that max. This way, you dont get more
   energy per mm at accelerat ion or decelerat ion. This is very handy at smoothing out accelerat ion articfact s
   and stopping burning in corners.
     Its important to understan d 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
Logged
DanL
Sr. Member
****
Posts: 362


View Profile
« Reply #201 on: December 22, 2014, 03:29:06 PM »

thanks art merry xmas
Logged
Pages: 1 ... 12 13 [14]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!