laser logic reversed #1215
-
Purchased generic PWM laser that fits 3018 Pro machine to get more power. Laser is on at power up, on during travel, off during burn. Using LaserGRBL 1.1. Set $32 =1 . No option M4. Marking on original laser uses Low=on, High=off. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
Hi If I remember you should build a modified version of grbl firmware and flash to your board. In any case, also if you are able to invert the controller board logic to keep the pin HIGH when off and low when ON, there will always be a few milliseconds during board power up, in which grbl has not been loaded, that the pin is low and laser will continue to light up at maximum power. It would be better if you build a small electronic circuit to reverse the logic of your laser module. Any NPN transistor is ok (2N3904, BC547, 2N2222...) an resistor value are not critical (but 1K is ok). PS: It's your module that has the logic reversed, not LaserGRBL nor GRBL!!! |
Beta Was this translation helpful? Give feedback.
-
Not with a program (lasergrbl) change, but with a firmware change it can be done. However, for your safety, a logic where 0 mean "ON" is not a safe logic. |
Beta Was this translation helpful? Give feedback.
-
Apart from the laser not working correctly it looks like your Z axis bearings have started to slide up the rods out of the plastic housing. Thats a common fault with the 3018 machines. Have a look on the Sainsmart facebook group, there are several ways to stop it happening. |
Beta Was this translation helpful? Give feedback.
-
Diffinite type "O". I knew better. Original Logic in my opinion is backwards. Transistor did not solve problem as laser still on during travel. Switching laser to different control board and will test.
Sent from Yahoo Mail on Android
On Mon, Dec 28, 2020 at 9:27 AM, arkypita<[email protected]> wrote:
Original laser on 3018 Pro marked 1=on, 0= off, which is the reversed general logic.
Maybe a typo? You mean "marked 0=on, 1= off" (this show the pictures)
Not fully working yet as PWM pin on new laser has to go to full ground before it turns off
A transistor working in saturation has about 0.2V between collector and emitter.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
Hi
This is a firmware issue, LaserGRBL cannot change this behaviour.
Google "grbl invert pwm" or "grbl invert spindle" you can find some results.
If I remember you should build a modified version of grbl firmware and flash to your board. In any case, also if you are able to invert the controller board logic to keep the pin HIGH when off and low when ON, there will always be a few milliseconds during board power up, in which grbl has not been loaded, that the pin is low and laser will continue to light up at maximum power.
It would be better if you build a small electronic circuit to reverse the logic of your laser module.
Any NPN transistor is ok (2N3904, BC547, 2N2222...) an resistor va…