Firmware Marlin laser setting

New Home Forum Software Development Firmware Marlin laser setting

This topic contains 14 replies, has 3 voices, and was last updated by Profile photo of ManuCNC ManuCNC 6 months, 3 weeks ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #16511
    Profile photo of ManuCNC
    ManuCNC
    Participant

    Hi,
    I bought this laser for about a month

    It has a control driver and the TTL function I got to test it by connecting it to an Arduino Mega only.

    void setup() {
      // put your setup code here, to run once:
     pinMode(69,OUTPUT);
    digitalWrite(69,HIGH);
    digitalWrite(69,HIGH);
    digitalWrite(64,HIGH);
    
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    
    }

    pay no attention to the pin number because I used them a different card from ramps
    But now I want to use it to engraving and I understand you need the fw with Marlin declared LASERBEAM function Marlin + Ramps + Arduino.

    Does anyone have a way to tell me how should I proceed?

    Is there a fw Marlin already with LASERBEAM function so that they only have to declare that the laser 12v are by headtbed mosfet and TTL pin is one of the LCD?
    Thank you

    #16541
    Profile photo of vicious1
    vicious1
    Keymaster

    Everything you need should be here in Leo69’s instructions, including firmware changes. https://www.vicious1.com/the-2-8-watt-100-laser/

    #16622
    Profile photo of ManuCNC
    ManuCNC
    Participant

    Hi Vicious1,
    thanks for the link that you indicated to me if I understand (having a different laser from that of Leo but Chinese) I have to start from step 5 ..

    leo essentially uses the fan control pretending to be the laser? 0.0

    but when you need to make a path for the laser tool … there will be no fan controls … or not?

    Thanks for your help 🙂

    #16624
    Profile photo of ManuCNC
    ManuCNC
    Participant

    One thing I do not understand is the negative lead of TTL.
    After you check the output voltages on remapped pin shows the connection of the two TTL + and with a TTL- amid resistance ..

    In my laser I have only one cable for the signal to 5v and not 2 …

    As I do in this thing?

    #16634
    Profile photo of vicious1
    vicious1
    Keymaster

    I can’t say for sure, I have no idea how your laser driver is set.

    I would assume the ttl pin is the same, just using a common ground.

    Yes the fan is remapped, You do not need a print fan with a laser, your laser fan should always be on hardwired to power. When you want to print flash the other firmware back.

    #16638
    Profile photo of ManuCNC
    ManuCNC
    Participant

    I will agree that the fan does not serve ..
    Obviously the fan laser cooling will connect to the main power as Leo60 said in the tutorial.

    According to the images in fact thought that the negative take him to the ramps because common … but … correct me if I’m wrong … if the power of the laser (12v) I take the ramps from the town is the same so you do not need the second wire TTL-

    I’m wrong? 🙂

    #16642
    Profile photo of vicious1
    vicious1
    Keymaster

    I don’t know I don’t have that laser, I don’t know how to wire it. Sorry

    #16647
    Profile photo of Leo69
    Leo69
    Participant

    The guide is a reference for a couple of specific drivers and diodes and doesn’t really apply to your laser driver and diode. Did it not come with any documentation?

    #16660
    Profile photo of ManuCNC
    ManuCNC
    Participant

    unfortunately nn. I asked banggood but have no datasheet or anything. I though in the past days I tested the TTL connecting it to the Arduino.

    I wanted to However understand how to use it with ramps in order to achieve images or cuts as in photographs that you have shown.

    I configured the fw as though in ..ora guide I wanted to understand the configuration and connections

    #16662
    Profile photo of ManuCNC
    ManuCNC
    Participant

    I have this details

    Description:
    Heatsink Material	aircraft aluminum
    Output Power	5500mW(5.5W)
    Wavelength	445nm(blue laser)
    Voltage	DC 12V
    Current	3A
    Beam Shape	dot(focusable)
    Life Time	>10,000 hours
    Working Temperature	-40-75℃
    Feature:
    445nm 5.5W focusable blue laser module
    DC 5.5*2.1 power port
    

    I wrote this line of code to control the laser with TTL alimetandolo externally, bringing a negative sull’arduino (common wire) and wire the door TTL PWM 3 of the mega 2560.
    and it works…

    void setup() {
      // put your setup code here, to run once:
      
    pinMode(3,OUTPUT);
      analogWrite(3,127);
    }
    
    void loop() {
      // put your main code here, to run repeatedly:
    
    }

    in this image you can see the point that I TTL modulated with Arduino (alone) to understand if they actually worked with a signal to 5v.

    Attachments:
    #16682
    Profile photo of Leo69
    Leo69
    Participant

    What is that white connector for the TTL? Can you take a picture from the opposite side, looking in to the connector? It looks like a JST connector which should have positive and negative pin.

    #16684
    Profile photo of ManuCNC
    ManuCNC
    Participant

    Sorry Leo in the picture, at the top next to the white button you may notice the individual contact of TTL.
    The 12v white button in the upper left allows, by feeding the laser to exchange between pointing mode and cutting mode
    The first is to place it at the desired point and the second burning at full power (as if it were 255)

    the part below the card is all empty, ie there are no tracks or visible components, and even connector of any kind.

    #16803
    Profile photo of ManuCNC
    ManuCNC
    Participant

    I was able to modulate the laser as I thought. Work!
    Firmware to say to heat the hotend and in place of the resistance is the 12v power of the laser driver.

    To TTL cable to connect the modulation pin 44 after remapped as by Leo69 guide.

    #16810
    Profile photo of Leo69
    Leo69
    Participant

    Excellent! Glad you figured it out.

    #16811
    Profile photo of ManuCNC
    ManuCNC
    Participant

    https://www.youtube.com/watch?v=hqFrkCgYYBI

    https://www.youtube.com/watch?v=cBcNS8ZCc2k

    here are two simple video;)

    I await your consideration

    thank you again

Viewing 15 posts - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.