Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. Muhammed
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 35
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Muhammed

    • RE: Energizing a relay using the expansion header

      @infiniteloop said in Energizing a relay using the expansion header:

      @Muhammed

      Can I use the E1 heater output for coil pins?

      That depends. The E1 heater output switches to GND, but provides VIN on the other pin by default. So return to the data sheet and assure that your relay’s version has a matching ”Coil code”: ”24” for a VIN of 12V, ”25” for a VIN of 24V.

      A note of caution from the documentation:

      There are no on-board flyback diodes on these outputs, so if you connect a high-current inductive load, you must use an external flyback diode.

      I forgot for a second that the E1 heater output doesn't match the coil requirements for this relay, which operates at 5V. Are there any suitable pins on the board that I could use instead? If not, I'll need to consider using a different relay.

      Thanks for the note as well.

      posted in Third-party add-ons
      Muhammedundefined
      Muhammed
    • RE: Energizing a relay using the expansion header

      @infiniteloop Yes, its a 400mW coil, sorry for not mentioning that.

      I need to turn it on and off multiple times within a short period of time. Can I use the E1 heater output for coil pins?

      Thanks

      posted in Third-party add-ons
      Muhammedundefined
      Muhammed
    • Energizing a relay using the expansion header

      Hi,
      I want to control an MT2 Relay that has this datasheet using the 50-pin expansion header on my Duet 2 board. The relay works fine when directly connected to a 3.3V output. However, when I try to control it using a heater output, such as exp.heater3 it does not get energized. Any ways to control it?

      Thanks for your help.

      posted in Third-party add-ons
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @droftarts I really appreciate your support and thanks a lot 🙏 . This solved the issue perfectly.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @Muhammed This is the current output while the above code is implemented during the printing process.! Is there anything I can do for improvements?
      WhatssApp Image 2024-07-22 at 2.13.37 PM.jpeg

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      Hello everyone, Thank you all for your support up to this point. It seems that putting the slicer in relative extrusion mode is giving better results, and the code below is working just fine:

      G1 E-5                       ;Retract the filament slightly
      G4 S0.3                      ;Wait for 3 millisecond
      G0 F5000 X20.0 Y117.5 Z40.0  ;Move to a reference starting point
      G4 S0.1                      ;Wait for 1 millisecond
      G1 F9000 X200                ; Move the X-axis to the endpoint
      G1 E5
      

      However, after this code executes, the printer’s head returns from the Z40 height to start the next layer, but during this, a bit of filament is melting from the nozzle and affecting the print. Is there any way to adjust this?

      Thanks!

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @oliof Thanks a lot for the valuable feedback, I will try that carefully and see how the printer will response.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: USB Camera Integration

      @droftarts Thanks a lot, I had this in mind but wanted to see if there are other way to go around this. Using any output on the 50 pin expansion header would be fine, right?

      posted in Accessories and Add-ons
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @Phaedrux I understand now.

      I don't have specific speed requirement for now, but definitely not 3mm/s. This was the recommended speed by Creality for this printer. Would it be ok for the printer if I increased it to 600?
      Thank you all.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • USB Camera Integration

      Hello!

      I am wondering if it is possible to have some sort of communication or control of a USB camera through a Duet 2 board. Specifically, I need the camera to take photos at specific times. I believe I can initiate a specific output for that, but I haven't been able to figure out if there is a way to communicate with the camera to take photos automatically.

      Its a nozzle camera just like this: https://www.aliexpress.com/item/4000182981338.html

      Any input on this would be greatly appreciated. Thanks!

      posted in Accessories and Add-ons
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @Phaedrux I have the following values in my config.g file:

      M566 X1200.00 Y1200.00 Z24.00 E300.00              ; set maximum instantaneous speed changes (mm/min)
      M203 X6000.00 Y6000.00 Z180.00 E1500.00            ; set maximum speeds (mm/min)
      M201 X500.00 Y500.00 Z100.00 E1000.00              ; set accelerations (mm/s^2)
      

      I see M203 Z180 ?!
      I chose these values for Ender 3 printer from its Github page! do I need to modify them?

      Thanks!

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @gloomyandy Many thanks for your reply. Actually, I tried to split the Z move before X and Y but the speed still stays slow no matter what the F value is. Also, yes I am considering Z=30 as the max height of any print. I will give it a try again as you mentioned.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @droftarts Hi, this is the config file attached config.g.

      And this is the gcode file that I prepared with Cura default settings then I implemented my code inside it. I haven't tried adding G91 and G90 yet. gmodified_CE3E3V2_20mm_calibration_cube.gcode

      I am a newbie here and might be struggling with some basic points. Thank you for your support, it is really appreciated.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @dc42 @droftarts Thanks everyone for your feedback.

      Yeah, I understand now that Cura slices in absolute extrusion mode by default and there is an option for relative extrusion mode.

      @droftarts Do you recommend changing the setting in Cura to relative mode? or just adding G91 before and G90 after the two extruder moves.

      Also, is the speed issue related to this settings?

      Thanks alot.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: Implementing a custom code in the G code

      @dc42 I am using Cura slicer to generate the g code, but not to add that code because as far as I know, I can only change the start and end g code on Cura from machine settings.

      After generating the g code using Cura, I am manipulating the file with a python program to add my code block after each layer.

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • Implementing a custom code in the G code

      Hi,
      I have an Ender 3 3D printer with Duet 2 board and latest firmware, and I want to implement a specific sequence of G-code commands at the end of each layer. I am using Python to modify the G-code file and insert my commands after the code of printing each layer. I am trying to perform a specific movement before continuing the print with the next layer. (recording a video to make some quality control image processing on the current layer)

      Here is the G-code I am trying to implement after the completion of each layer:

      G1 E-0.2                    ; Retract the filament slightly to prevent melted drops on the print
      G4 S0.1                     ; Wait for 1 millisecond
      G0 F9000 X50.0 Y117.5 Z30.0 ; Move to a reference starting point
      G1 F9000 X200               ; Move the X-axis to the endpoint
      G1 E0.2
      

      However, I am encountering a couple of issues:

      1. Filament is being retracted a lot and after 20 or 30 layers its shifted back from the nozzle and not pushed enough.
      2. The movement speed for G0 F9000 X50.0 Y117.5 Z30.0 remains slow regardless of the feed rate I set.
      3. After about 30 layers, issues with returning to the correct layer height, causing the nozzle to collide with the print.
        4-Sometimes a bit of melted filament sticks on the print and damaging the print if happens continually.

      I am ensuring that this code is added before the printer prepares for the next layer, but I am still facing these problems.

      Any thoughts or suggestions on whether the code is correct and how to improve the implementation process would be highly appreciated! Thanks!

      posted in Gcode meta commands
      Muhammedundefined
      Muhammed
    • RE: PWM Controlled Laser Diode

      @jay_s_uk said in PWM Controlled Laser Diode:

      @Muhammed correct. the paneldue port can provide more current than required for your diode

      Great!. Thank you, I will give it a try

      posted in Duet Hardware and wiring
      Muhammedundefined
      Muhammed
    • RE: PWM Controlled Laser Diode

      @dc42 said in PWM Controlled Laser Diode:

      @Muhammed connect the diode between the OUT_NEG pin of the fan port and +5V which you can pick up from the PanelDue port.

      So the +5V will come from the PanelDue port and the other wire will be on the ( FAN- )negative of the PWM fan port and I will still use the same code to control it through the PWM port. I hope that I understood right? will the current be enough in this case?

      Thanks alot

      posted in Duet Hardware and wiring
      Muhammedundefined
      Muhammed
    • PWM Controlled Laser Diode

      Hello,

      I would like to install a laser diode, that has two wires and a requirements of 5V and 25mA (https://thepihut.com/products/line-laser-diode-5mw-650nm-red), on my Duet 2 Ethernet card.

      My plan was to control this laser diode using the PWM fan2 outputs. The PWM are fed with Vin=24V because I need to use them for fans.

      Is there a way to control the output voltage and set it to 5V so I can control and power the laser diode?

      My initial code as I followed through the documentation will be like:

      M950 P0 C"fan2" Q500   ; Define the PWM output on fan0
      M42 P0 S0.5            ; Turn the PWM output on with a 50% duty cycle
      .
      ..
      ...
      M42 P0 S0              ; Turn the PWM output off
      

      Can I just use the M42 command to set the PWM percentage at the corresponding value to the voltage I need? do I need to use other codes?

      Sorry but I am new to these stuff and any suggestion or recommendation will be highly appreciated. Thanks!

      posted in Duet Hardware and wiring
      Muhammedundefined
      Muhammed