• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Duet2 wifi and PWM laser

Scheduled Pinned Locked Moved
Laser Cutters
4
6
322
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    morokolli
    last edited by morokolli 10 Sept 2019, 14:24 9 Oct 2019, 14:23

    Hi all,
    I'm building a cnc laser with Duet2 Wifi.
    All other thigs are already working but laser fights back.

    Laser Pwm is connected to fan2 output, and jumper is set to 5V setting, and in config.g fans section is:
    M106 P2 H-1 F200.
    It seems that laser is always on with full power.
    While measuring fan2 output voltage with multimeter, it is between 0-5V.
    Firmware is latest.

    Any tips how to proceed?

    1 Reply Last reply Reply Quote 0
    • undefined
      droftarts administrators
      last edited by 9 Oct 2019, 15:47

      This doesn't sound like the normal way of hooking up a laser. Have you seen https://duet3d.dozuki.com/Wiki/Gcode#Section_M452_Select_Laser_Printer_Mode and https://duet3d.dozuki.com/Wiki/Laser_PWM_control ?

      Which exact firmware version are you using? The most recent (2.04RC3 released yesterday) has some changes specifically for laser:

      Upgrade notes:
      If using this release to control a laser cutter/engraver, see the notes below on changed handling of the G1 S parameter
      ...
      In Laser mode, if sticky laser power mode is selected, the power set by the S parameter in a G1 command is remembered across G0 moves to the next G1 move

      Send M115 to check the firmware version.

      Ian

      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

      1 Reply Last reply Reply Quote 0
      • undefined
        morokolli
        last edited by 9 Oct 2019, 16:59

        Thanks for reply Ian!

        Version what I'm running at moment is
        FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.0beta10 ELECTRONICS: Duet WiFi 1.02 or later FIRMWARE_DATE: 2019-09-12b1

        I'll update to latest rc and check the Laser mode.
        Report will come later.

        1 Reply Last reply Reply Quote 0
        • undefined
          T3P3Tony administrators
          last edited by 9 Oct 2019, 19:30

          as you are running RRF3 you need to check your pin polarity id correst for that fan vs what you want. pins can be set to inverted using a "!" in front of them.

          www.duet3d.com

          1 Reply Last reply Reply Quote 0
          • undefined
            morokolli
            last edited by 10 Oct 2019, 09:04

            Problem solved!
            NOR gate did the trick. Although I was too lazy to visit electric shop, I used arduino to flip the signal.

            int buttonPin1 = 2;
            int Laseron = 8;
            int buttonStatus1 = 0;
            void setup() {
            pinMode(Laseron, OUTPUT);
            pinMode(buttonPin1, INPUT);
            }
            void loop(){
            buttonStatus1 = digitalRead(buttonPin1);
            if (buttonStatus1 == HIGH )
            { digitalWrite(Laseron, LOW);
            } else { digitalWrite(Laseron, HIGH); }
            }

            1 Reply Last reply Reply Quote 0
            • undefined
              grizewald
              last edited by 10 Oct 2019, 09:14

              That's an inverter, not a NOR gate! A NOR gate would have two inputs (Not OR).

              1 Reply Last reply Reply Quote 0
              1 out of 6
              • First post
                1/6
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA