Laser connection #241
Replies: 16 comments 13 replies
-
Hi @jodougie2812, Ground and Positive must be connected to any available GND & "+" connection of the RAMPS board: Search for "laser pwm" on grbl-Mega-5X / issues / discussions / wiki and you should find some already answered similar questions: If it's not enough, ask a specific question explaining what you did, the result obtained, as well as the expected result. @++; |
Beta Was this translation helpful? Give feedback.
-
The laser is connected to 12v pos and negative on the board. It fires continuously. If I connect PWM to the negative terminal on P6 the laser switches off. Breaking that connection fires the laser. |
Beta Was this translation helpful? Give feedback.
-
Hi @jodougie2812, To change the spindle output from the standard 12V PWM output on D8 to the 5V PWM output on D6, you don't need to change anything in the cpu_map.h file. You simply have to comment the Then, the PWM signal on D6 will be drived with standard spindle speed GCode command:
@++; |
Beta Was this translation helpful? Give feedback.
-
Good morning
Well. I've taken a fresh download of your software. Changed the code in
configuration.h and reconnected the laser.
The pwm wire when connected to D6 negative turns off the laser. If I break
the connection the laser fires.
However. I'm not getting any control of the laser in my software. I'm using
laser grbl where $32=1
Thanks for your continuing assistance.
John
…On Mon, 24 Jan 2022, 19:22 Gauthier Brière, ***@***.***> wrote:
Hi @jodougie2812 <https://github.com/jodougie2812>,
To change the spindle output from the standard 12V PWM output on D8 to the
5V PWM output on D6, you don't need to change anything in the cpu_map.h
file.
You simply have to comment the //#define SPINDLE_PWM_ON_D8 and uncomment
the #define SPINDLE_PWM_ON_D6 like you did without anything else. The #if
defined(SPINDLE_PWM_ON_D8) and #elif defined (SPINDLE_PWM_ON_D6)
preprocessor compilation lines in cpu_map.h will take care of taking the
right parameters.
Then, the PWM signal on D6 will be drived with standard spindle speed
GCode command:
- S<value> with value between 0 to 255,
- M3 to start the Spindle Laser,
- M5 to stop the Spindle Laser.
@++;
Gauthier.
—
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG43CCA6IXJPOYLJ6PGTUXWRIHANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Good morning @jodougie2812, Can you tell me more about your laser module?... Reference, link to documentation / datasheet, ... @++; |
Beta Was this translation helpful? Give feedback.
-
Here you go. The laser is a cheap Chinese thing supplied with my 3018
machine. It works fine on that machine.
I have put my multimeter across D6 with various settings and there is no
voltage showing on any settings.
My 12 volt supply from the ramps powers up the laser. If I ground the PWM
it switches the laser off. Is that correct?. Should the PWM signal be on
the positive side 🤔
…On Tue, 25 Jan 2022, 08:50 Gauthier Brière, ***@***.***> wrote:
Good morning @jodougie2812 <https://github.com/jodougie2812>,
Can you tell me more about your laser module?... Reference, link to
documentation / datasheet, ...
I don't know a lot of thing about lasergrbl, but I know it use the M5/M3S
to drive the power of the laser. So, it should work fine with grbl-Mega-5X.
I rather suspect a hardware problem.
Are you able to check the voltage on PWM pin D6 with a multimeter with
differents values of M3S?
@++;
Gauthier.
—
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG44KBO4XJJUGVSQZBN3UXZP65ANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I will try those settings. Thank you
…On Tue, 25 Jan 2022, 16:23 Gauthier Brière, ***@***.***> wrote:
I have put my multimeter across D6 with various settings and there is no
voltage showing on any settings.
It's not normal. You should have positive voltage on D6, depending of the
value of the S parameter.
The S (Spindle speed) parameter value can be between the "Minimum spindle
speed" value ($31) and the "Maximum spindle speed" value ($30).
If you don't change them, by default, $31=550 and $30=12000.
So:
- M3S12000 => will give about 5V on D6,
- M3S550 => will give few millivolts on D6,
- M3S6275 => will give about 2.5V on D6 (6250 is the middle between
550 and 12000).
@++;
Gauthier.
—
Reply to this email directly, view it on GitHub
<#241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG42DGTC4252RHDZPKCDUX3FALANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Am I connecting the PWM from the laser to D6 positive and the earth to
earth with the 12v positive to 12 volts please 🙏
…On Tue, 25 Jan 2022, 16:25 Jo Dougie, ***@***.***> wrote:
I will try those settings. Thank you
On Tue, 25 Jan 2022, 16:23 Gauthier Brière, ***@***.***>
wrote:
> I have put my multimeter across D6 with various settings and there is no
> voltage showing on any settings.
>
> It's not normal. You should have positive voltage on D6, depending of the
> value of the S parameter.
> The S (Spindle speed) parameter value can be between the "Minimum spindle
> speed" value ($31) and the "Maximum spindle speed" value ($30).
> If you don't change them, by default, $31=550 and $30=12000.
> So:
>
> - M3S12000 => will give about 5V on D6,
> - M3S550 => will give few millivolts on D6,
> - M3S6275 => will give about 2.5V on D6 (6250 is the middle between
> 550 and 12000).
>
> @++;
> Gauthier.
>
> —
> Reply to this email directly, view it on GitHub
> <#241 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQPQG42DGTC4252RHDZPKCDUX3FALANCNFSM5MNOYEZA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Thank you that is most helpful.
…On Tue, 25 Jan 2022, 16:44 Gauthier Brière, ***@***.***> wrote:
I don't know about the exact laser you have, but I find this with Google:
https://wiki.nejetool.com/doku.php?id=laser_module_308020w
This mean that you have to connect 12V positive to 12V POWER, GND to
Grbl's GND and SIGNAL to the D6 PWM Grbl's output.
@++;
Gauthier.
—
Reply to this email directly, view it on GitHub
<#241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG43TPMLI5QWV374S6OTUX3HNLANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I don't suggested any values for $30 & $31... I just tell you what are their default values. |
Beta Was this translation helpful? Give feedback.
-
Ok, I will do that.
…On Thu, 27 Jan 2022, 09:58 Gauthier Brière, ***@***.***> wrote:
I don't suggested any values for $30 & $31... I just tell you what are
their default values.
Then, I suggested to use a terminal or software that can send direct
Grbl's commands to send the command: M3S<value of $30>
If you send this command, you should have the full voltage of PWM.
Have you read the Lasergrbl's documentations about the PWM power laser
configuration?
https://lasergrbl.com/configuration/
https://lasergrbl.com/wp-content/uploads/2020/05/Grbl-Configuration-ENG.pdf
Do you what are the S values send by your software when you try to measure
the PWM voltage?
—
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG45FQIVHU2TYUJIHW3TUYEJL5ANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Wow this is strange....
When I use the fire button in Lightburn with a value of 1000. I get a
voltage of 1.17 volts...
When I increase the value to 1500 I get a voltage of .42 volts
When I increase the value to 2000. I get a negative on the multimeter.
It looks like that if I increase the power in all software (lightburn,
laserGRBL and UGS). The power goes down not up.
Do I need to invert something please.
…On Thu, 27 Jan 2022, 09:58 Gauthier Brière, ***@***.***> wrote:
I don't suggested any values for $30 & $31... I just tell you what are
their default values.
Then, I suggested to use a terminal or software that can send direct
Grbl's commands to send the command: M3S<value of $30>
If you send this command, you should have the full voltage of PWM.
Have you read the Lasergrbl's documentations about the PWM power laser
configuration?
https://lasergrbl.com/configuration/
https://lasergrbl.com/wp-content/uploads/2020/05/Grbl-Configuration-ENG.pdf
Do you what are the S values send by your software when you try to measure
the PWM voltage?
—
Reply to this email directly, view it on GitHub
<#241 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG45FQIVHU2TYUJIHW3TUYEJL5ANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
$30 =12000
$31=500
…On Thu, 27 Jan 2022, 10:56 Gauthier Brière, ***@***.***> wrote:
What are your $30 & $31 values ?
—
Reply to this email directly, view it on GitHub
<#241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG42IE3GCRPEW7BPBBJ3UYEQGVANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
😊 Thank you . That has worked..
I now need to discover which pins to use for a probe.
Your help in this community is so very much appreciated
…On Thu, 27 Jan 2022, 11:20 Gauthier Brière, ***@***.***> wrote:
Try the same values in Lightburn with $30=2000 and $31=0
—
Reply to this email directly, view it on GitHub
<#241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG4YXYSYC7K3HAQ7WCALUYES6RANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I spoke too soon. I suspect either a dodgy ramps or laser?...I am replacing
both
Thankyou
…On Thu, 27 Jan 2022, 11:52 Jo Dougie, ***@***.***> wrote:
😊 Thank you . That has worked..
I now need to discover which pins to use for a probe.
Your help in this community is so very much appreciated
On Thu, 27 Jan 2022, 11:20 Gauthier Brière, ***@***.***>
wrote:
> Try the same values in Lightburn with $30=2000 and $31=0
>
> —
> Reply to this email directly, view it on GitHub
> <#241 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AQPQG4YXYSYC7K3HAQ7WCALUYES6RANCNFSM5MNOYEZA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Thank you.
…On Fri, 28 Jan 2022, 06:38 Gauthier Brière, ***@***.***> wrote:
I now need to discover which pins to use for a probe.
Please, read the doc: https://github.com/fra589/grbl-Mega-5X/wiki
More precisely:
https://github.com/fra589/grbl-Mega-5X/wiki/grbl-Mega-5X-pinout
@++;
Gauthier
—
Reply to this email directly, view it on GitHub
<#241 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQPQG4YWNZD26NAO2TFOXB3UYI2YDANCNFSM5MNOYEZA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi. I'm using a ramps1.4 board with my Arduino Mega.
I've got 4 axis working using GRBL GRU so that's good.
My question is how do I connect a laser with 3 wires.
Ground Positive and PWM.. where do these go on the ramps 1.4.
I've tried connecting to D8 but don't have any power showing on D8 D9 or D10
Do I need to alter any settings in GRBL to make it work under PWM
Any advice appreciated
Beta Was this translation helpful? Give feedback.
All reactions