Engrave Photos with PWM Laser

2»

Comments

  • If I leave in (#define CUSTOM_EVENTS) the host repeater is giving this error (communication timeout - reset send buffer block repeater host)
  • If I leave in (#define CUSTOM_EVENTS) the host repeater is giving this error (communication timeout - reset send buffer block repeater host)
  • that is a sign that the Hardware is not running correct !!!

    so check what i wrote in last two answers

  • Okay, I'll go look
  • I tested the communication between i2c and PCA9685, and all the outputs are working well, I tested with leds and multimeter
  • I'm doing something wrong when putting folders in Repetier-Firmware
  • the error (communication timeout - reset send buffer block repeater host) only appears when I put the (#define CUSTOM_EVENTS) Configuration.h, when I do not put the repeat host works
  • edited June 2018

    so please generate github account and upload your complete Firmware so i´ll take a look a it

    alternatively just post your configuration.h and i´ll try to Setup a package this weekend and post it on my github


    btw, what´s the result of i2c scanner?

  • I2CScanner ready!
    starting scanning of I2C bus from 8 to 119...
    addr: 8       
    addr: 9        addr: 10        addr: 11        addr: 12       
    addr: 13        addr: 14        addr: 15        addr: 16       
    addr: 17        addr: 18        addr: 19        addr: 20       
    addr: 21        addr: 22        addr: 23        addr: 24       
    addr: 25        addr: 26        addr: 27        addr: 28       
    addr: 29        addr: 30        addr: 31        addr: 32       
    addr: 33        addr: 34        addr: 35        addr: 36       
    addr: 37        addr: 38        addr: 39        addr: 40       
    addr: 41        addr: 42        addr: 43        addr: 44       
    addr: 45        addr: 46        addr: 47        addr: 48       
    addr: 49        addr: 50        addr: 51        addr: 52       
    addr: 53        addr: 54        addr: 55        addr: 56       
    addr: 57        addr: 58        addr: 59        addr: 60       
    addr: 61        addr: 62        addr: 63        addr: 64 found!
    addr: 65        addr: 66        addr: 67        addr: 68       
    addr: 69        addr: 70        addr: 71        addr: 72       
    addr: 73        addr: 74        addr: 75        addr: 76       
    addr: 77        addr: 78        addr: 79        addr: 80       
    addr: 81        addr: 82        addr: 83        addr: 84       
    addr: 85        addr: 86        addr: 87        addr: 88       
    addr: 89        addr: 90        addr: 91        addr: 92       
    addr: 93        addr: 94        addr: 95        addr: 96       
    addr: 97        addr: 98        addr: 99        addr: 100       
    addr: 101        addr: 102        addr: 103        addr: 104       
    addr: 105        addr: 106        addr: 107        addr: 108       
    addr: 109        addr: 110        addr: 111        addr: 112 found!
    addr: 113        addr: 114        addr: 115        addr: 116       
    addr: 117        addr: 118        addr: 119       
  • This was the result of the i2c scanner
  • I deleted pwmtest, and PCA9685 worked fine
  • i2c_scanner


    I2C Scanner
    Scanning...
    I2C device found at address 0x40  !
    done

    Scanning...
    I2C device found at address 0x40  !
    done

    Scanning...
    I2C device found at address 0x40  !
    done

    Scanning...
    I2C device found at address 0x40  !
    done
  • edited June 2018
    thats the problem....
    Adress is set to 0x41 in CustomEventsImpl  line 30

    change to 0x40

    the hint with i2c scanner is also written in line 33/34
  • Hi RAWWB, now the repeater host is running smoothly, thanks for the help, now I just can not connect the laser, would you know what it could be?
  • edited June 2018
    what do you mean with cannot connect the laser?
  • The PCA9685 board is not sending PWM signal at output 15, to control the laser, output 0 is all the time with 5v
  • I changed from output 0 to 15 on line 35 of CustomEvents.h, output 15 is set to 5v (#define EXT_LASER_PIN 0 // PIN Number from PCA9685) (#define EXT_LASER_PIN 15 // PIN Number from PCA9685)
  • and what command do you send with repetier host?
  • I used the M03 M05, G1 G0, M452 C1 M452 C0
  • I used the M106 e M107 
  • My X-axis 14,000, Y 19,000, Z 540.00, I 6.050

    X min
    ENDSTOP_PULLUP_X_MIN (Switch on GND, normally closed)

    Y min
    ENDSTOP_PULLUP_Y_MIN (Switch on GND, normally open)

    Z min
    ENDSTOP_PULLUP_Y_MIN (Switch on GND, normally open)

    X max
    ENDSTOP_PULLUP_X_Max (Switch on GND, normally closed)

    Y max
    ENDSTOP_PULLUP_Y_Max (Switch on GND, normally open)

    Z max
    ENDSTOP_PULLUP_Y_Max (Switch on GND, normally open)

    Homing order
    HOMING_ORDER Y, X then Z

  • edited June 2018

    1 . Change configuration.h

    delete the entry in line 22

    #define LASER_PWM_MAX 4095

    (you have to set it in Line 217)

    Change

    #define LASER_PWM_MAX 255  to

    #define LASER_PWM_MAX 4095


    2. Gcode

    M03 Switches laser on , m05 off

    to set PWM value You have to use the M03 followed by S value  (value from 0 to 4095)

    so code can be:

    M452

    M3 S410  // set Pwm about 10%

    G1 X50 Y50 F400

    G0 x0 y0  // Laser off during  G0 move

    M3 S820  // set PWM about 20%

    G1 X0 Y100 F400

    M5  //Laser off

    G1 x0 y0 //(g1 move with laser off)

  • edited June 2018

    BTW : Laser Settings in configuration .h (beginning at Line 213 in your configuration.h)

    #define SUPPORT_LASER 1
    #define LASER_PIN -1  <------   Keep , as pin is set in custom events
    #define LASER_ON_HIGH 1 <----  change to 0 if laser is on with M5
    #define LASER_WARMUP_TIME 0
    #define LASER_PWM_MAX 255 <---- set to 4095
    #define LASER_WATT 2 <---- Change to value of your Laser



    and tip for future :

    READ COMMENTS in  files..... all your Problems with laser were well commented  ;-)



  • Hi RAWWB, I want to thank you, for having patience to help me, now it works right \ o / kkkkkk, I'm sorry to bother you so much, thank you.
Sign In or Register to comment.