nebarnix / img2gco

Image to reprap gcode converter
GNU General Public License v3.0
56 stars 29 forks source link

Laser wiring with your script #2

Open Gruniek opened 7 years ago

Gruniek commented 7 years ago

Hi,

Very interessant script, realy ! Just one question, i have a Arduino CNC Shield V3, where i can cable the ttl connection to the laser drive ?

Thanks ;)

nebarnix commented 7 years ago

Any PWM output will work. It would be whatever output you have mapped to your cooling fan, but you must have a laser driver that can give a constant current for each PWM level. You cannot, for example, just hook a laser diode directly to the TTL pin.

nebarnix commented 7 years ago

If your shield is running GRBL, then you should use the fork here https://github.com/McNugget6750/img2gco

Gruniek commented 7 years ago

Thanks a lot!

I think there are errors in his code, look :

...

G1 X25.1Y25 X25.2S238 X25.3S238 X25.4S238 X25.5S238 X25.6S238 X25.7S238 X25.8S238 X25.9S238 X26S238 X26.1S238 X26.2S238 X26.3S238 X26.4S238 X26.5S238 X26.6S238 X26.7S238 X26.8S238 X26.9S238 X27S238

...

i dont see the laser modulation, or he run with the X travel Speed ?

( and he need a space between the XdataSspeed? -> Xdata Sspeed

cheers

2017-05-17 19:08 GMT+02:00 Nebarnix notifications@github.com:

If your shield is running GRBL, then you should use the fork here https://github.com/McNugget6750/img2gco

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nebarnix/img2gco/issues/2#issuecomment-302157274, or mute the thread https://github.com/notifications/unsubscribe-auth/AV4dDQARFwJQQzry7E9dmOomtFmCh9r4ks5r6ymRgaJpZM4NTP78 .

nebarnix commented 7 years ago

GRBL uses the spindle speed command S to set the laser speed, instead of the M106.

Actually, gcode doesn't care about spaces -- they're just for people :D

Are you using Marlin or GRBL (or some other) firmware?

nebarnix commented 7 years ago

It seems that some gcode tools still need the spaces, so I have not removed the spaces because it breaks previewing tools....

Gruniek commented 7 years ago

Hi

OK for the space, i'm just maniac :p

For the laser, i use only the GRBL with an arduino uno and the CNC Shield V3.

i prefert with the space ;P too clean to read (troubleshooting)

what type of laser you use? I need the laser for print PCB ( https://www.youtube.com/watch?v=4SNkzoOvoD8 ) i look for a simple TTL 2500mW 445nm, what do you think ?

2017-05-18 16:19 GMT+02:00 Nebarnix notifications@github.com:

It seems that some gcode tools still need the spaces, so I have not removed the spaces because it breaks previewing tools....

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nebarnix/img2gco/issues/2#issuecomment-302417774, or mute the thread https://github.com/notifications/unsubscribe-auth/AV4dDRF53qBCfTKcFn8hLh9JVLAsYaIKks5r7FNcgaJpZM4NTP78 .