gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.07k stars 1.61k forks source link

Galvo #532

Open SerkanGuryalcin opened 6 years ago

SerkanGuryalcin commented 6 years ago

Hello dear I'd like to do galvolaser and ı need to read gcode. My project need 2 axis x and y so how can ı use grbl

alflexRH commented 6 years ago

the simple answer is: you cant. GRBL can only do steppers, not galvos.

SerkanGuryalcin commented 5 years ago

I see. Do you know how can ı read gcode for galvo motors ?

langwadt commented 5 years ago

if there is room for the code you could just modify GRBL, leave it mostly as is but instead of step/direction output, just have the galvos follow the resulting position

X3msnake commented 5 years ago

what are galvos btw, some kind of servo motor?

No dia domingo, 20 de janeiro de 2019, langwadt notifications@github.com escreveu:

if there is room for the code you could just modify GRBL, leave it mostly as is but instead of step/direction output, just have the galvos follow the resulting position

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/532#issuecomment-455897146, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-pvklWSV0pY81AsWXeaYLY1ILyl8ks5vFMqYgaJpZM4XL0Aw .

-- Com os melhores cumprimentos, Vinicius Silva

alflexRH commented 5 years ago

Galvos usually take a 0-10V or -10 to +10v input for fully left to right. cant drive little to no load, but are VERY fast. full sweep in 0.05 - 0.1ms !

X3msnake commented 5 years ago

so servo then

No dia segunda-feira, 21 de janeiro de 2019, alflexRH < notifications@github.com> escreveu:

Galvos usually take a 0-10V or -10 to +10v input for fully left to right. cant drive little to no load, but are VERY fast. full sweep in 0.05 - 0.1ms !

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/532#issuecomment-456023942, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-vgcbfhobbYI0JrINuVMXmceFD4bks5vFZX9gaJpZM4XL0Aw .

-- Com os melhores cumprimentos, Vinicius Silva

alflexRH commented 5 years ago

yes, but usually when people talk about servos they mean 3-phase BLDC-type servos, those that can do multiple revolutions, and their controllers take step/direction (or other) pulses.

or the 1-2ms pulse RC hobby servos).

X3msnake commented 5 years ago

so galvos are more like fixed motion rc servos but driven by voltage...

No dia segunda-feira, 21 de janeiro de 2019, alflexRH < notifications@github.com> escreveu:

yes, but usually when people talk about servos they mean 3-phase BLDC-type servos, those that can do multiple revolutions, and their controllers take step/direction (or other) pulses.

or the 1-2ms pulse RC hobby servos).

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/532#issuecomment-456025099, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-irBJzaOv3IbanU4jgbIOfHGKcLCks5vFZbggaJpZM4XL0Aw .

-- Com os melhores cumprimentos, Vinicius Silva

SerkanGuryalcin commented 5 years ago

So can I read g code with galvos ??

X3msnake commented 5 years ago

I think you would need to change the way GRBL sends things to your galvo drivers.

We are talking of going from a looping model where each full tur corresponds to a number of steps that then correspond to a given axel motion to something that is more like controlling a PWM laser from 0-255 where 0 is the minimum position of your set table boundary and 255 is the max.

I don't know enough programming to know what you would have to change or where but i think it might not be as easy as swapping a few lines of code, I may be wrong tho.

SerkanGuryalcin notifications@github.com escreveu no dia segunda, 21/01/2019 à(s) 17:48:

So can I read g code with galvos ??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gnea/grbl/issues/532#issuecomment-456153660, or mute the thread https://github.com/notifications/unsubscribe-auth/AKke-kZfcD8wDa5u93JBWS7dNjLTqh6pks5vFf1UgaJpZM4XL0Aw .

-- Com os melhores cumprimentos, Vinicius Silva

X3msnake commented 5 years ago

some google Fu returned this:


http://www.buildlog.net/blog/2018/02/laser-galvo-control-experiments/


https://photonlexicon.com/forums/archive/index.php/t-27033.html

"According to the specification, all X / Y / Synch control signals should be synchronized with the 2MHz clock signal. In Arduino UNO it is very difficult. "


https://plus.google.com/communities/109609533907401814291/stream/401252fa-796c-4680-afa6-961794b39ac8

image

https://github.com/Blacksheep70/Marlin-OpenSLA

SerkanGuryalcin commented 5 years ago

Thanks a lot I will try all methods

X3msnake commented 5 years ago

@SerkanGuryalcin Keep us posted here on your results i'm curious about this too :)

TehseenHasan commented 3 years ago

What if I make Stepper Motors based Galvo then control it with GRBL.? then is it possible and effective.? For example like this guy done: https://www.youtube.com/watch?v=46jKSFHXgiI