BLTouch + Expansion Breakout Board



  • @t3p3tony Thanks.

    I tryied do map the X as a driver 5 just to see if the motor would move, but nothing hapened, I entered this at the top of the code:

    M584 X5 Y1 Z2 U0 E4

    I dont know what I'm doing wrong to test the external motor


  • administrators

    If it's a DRV8825 then those drivers are slow so you need to increase the step pulse timing to 2.5us in the M569 command.



  • @dc42

    Hi again @dc42 ,
    Now I got it working with some guidance it was driver 11 not 5, but there's a glitch... the motor connected is getting hotter and hotter without any use... any idea? Thanks


  • administrators

    @3dealo said in BLTouch + Expansion Breakout Board:

    @dc42

    Hi again @dc42 ,
    Now I got it working with some guidance it was driver 11 not 5, but there's a glitch... the motor connected is getting hotter and hotter without any use... any idea? Thanks

    Turn down the motor current using the potentiometer on the driver.



  • @dc42 I will try, but the current is not high, at least not for the setup we used to have with the MKSs, I don't know if with this setup the current must be lower than before. Let's try it! Thanks


  • administrators

    The other possibility is that the driver is faulty or there is a short. Does the motor move normally when commanded?



  • @dc42 The motor runs correctly, the thing is that in stand by it's getting hot. The cables and the driver are not getting hot. And I think the motor only gets hot after the first move I make with it.



  • @dc42 Just tested , more than an hour with the board ON and the motor is cold, the problem comes with the 1st signal that activates the motor.


  • administrators

    @3dealo said in BLTouch + Expansion Breakout Board:

    @dc42 Just tested , more than an hour with the board ON and the motor is cold, the problem comes with the 1st signal that activates the motor.

    That's normal. Motor drivers are not enabled until they are first used. For the internal drivers on the Duet, the motor current is reduced to the idle setting (default 30%) when the printer has been idle for 30 seconds. But the Diet can't reduce the current of external drivers. You can use M18 or M84 to disable external drivers at the end of a print.

    Plug-in stepper driver modules invariable have totally inadequate heatsinking (the PCBs are far too small), so unless you use them at very low currents, you should use a fan to cool them.



  • Hi there ,
    Back to BL Touch, please help...
    I believe I tried every tutorial, forum post and variation (maybe that's the problem... I probabbly did a mess)

    And here is how my Bl Touch is behaving on each setup:

    SETUP 1 (connected to the expansion pins on Duet wifi using heater 3)

    1 - It does the self test
    2 - Stays with the probe retracted and the red light on
    3 - I can command it with M401 to lower the pin
    4 - If I do a M402 or a G30 to start a probing pass it goes looping on deplying and retracting thr pin with the red light on.

    SETUP 2 (connected to the expansion breakout board on heater 7)

    1 - It does the self test
    2 - Stays with the probe deployed and the very low blue light on
    3 - I can command it with M280 P7 S90 to retract the pin (red light turns on)
    4 - I can command it with M280 P7 S10 to deploy the pin
    5 - If I do a M402 or a G30 to start a probing pass it goes looping on deplying and retracting thr pin with the red light on.

    I already tried other unit , same results.

    PS: a part from coding mess up, the only phisical thing that happened was that the 1st time (and some others) I connected the bl touch to star testing I did not used the resistor to low from 5v to 3.3v... hope that didn't dammaged the Duet.

    thanks



  • Does your deployprobe.g file contain : M280 P7 S10 ?



  • @scachi yes it does... Is that correct?
    Thanks



  • @3dealo said in BLTouch + Expansion Breakout Board:

    @scachi yes it does... Is that correct?
    Thanks

    Yes, thats correct.
    The looping of pin deploy/retract sound just like the test mode,so I was wondering if there is this command somewhere put in a config file by accident.
    This shouldn't be in any file: M280 P7 S120
    When you issue this selftest command, does it excatly do the same pin-in/out cycle with the same timing as you are observing ?
    As M402 is for retracting, check your retract command file retractprobe.g, it should contain: M280 P7 S90


  • administrators

    1. Which firmware version are you using?

    2. Please post the contents of your config.g, deployprobe.g and retractprobe.g files. Also bed.g if you are doing G32 bed probing



  • Hello there,
    I'm using 1.21 (2018-03-21)

    I noticed that posting the firmware here with the comments inside it creates a mess... if you prefer I can clean all the comments so it will be easier to read. let me know, please an thanks!

    Files:

    CONFIG.G

    ; Configuration file for Duet WiFi (firmware version 1.20 or newer)
    ; executed by the firmware on start-up
    ;
    ; generated by RepRapFirmware Configuration Tool on Mon May 07 2018 16:11:49 GMT+0200 (Hora de verano romance)

    ; General preferences
    M584 X0 U1 Y2 Z11 E3:4 ; Create U axis for second X carriage before we try to configure it (EDITADO POR 3DEALO - U DRIVE)
    G90 ; Send absolute coordinates...
    M83 ; ...but relative extruder moves

    ; Network
    M550 PDuettest ; Set machine name
    M552 S1 ; Enable network
    M587 S"------" P"-----" ; Configure access point. You can delete this line once connected
    M586 P0 S1 ; Enable HTTP
    M586 P1 S0 ; Disable FTP
    M586 P2 S0 ; Disable Telnet

    ; Drives
    M569 P0 S1 ; Drive 0 goes forwards
    M569 P1 S1 ; Drive 1 goes forwards
    M569 P2 S0 ; Drive 2 goes BACKWARDS
    M569 P3 S1 ; Drive 3 goes forwards
    M569 P4 S1 ; Drive 4 goes forwards (EDITADO POR 3DEALO - U DRIVE)
    M569 P11 S0 ; Drive 11 goes forwards (EDITADO POR 3DEALO - U DRIVE)
    M350 X32 Y32 U16 Z32 E32 I0 ; Configure microstepping without interpolation (EDITADO POR 3DEALO - U DRIVE COM 16 PASSOS)
    M92 X320 Y320 U320 Z800 E1668 ; Set steps per mm (EDITADO POR 3DEALO - U DRIVE)
    M566 X900 Y900 U900 Z12 E120 ; Set maximum instantaneous speed changes (mm/min) (EDITADO POR 3DEALO - U DRIVE)
    M203 X6000 Y6000 U900 Z180 E1200 ; Set maximum speeds (mm/min) (EDITADO POR 3DEALO - U DRIVE)
    M201 X1000 Y500 U1000 Z50 E250 ; Set accelerations (mm/s^2) (EDITADO POR 3DEALO - U DRIVE)
    M906 X800 Y1200 U800 E800 I30 ; Set motor currents (mA) and motor idle factor in per cent (EDITADO POR 3DEALO - U DRIVE SETAGEM MANUTAL NO PROPRIO DRIVE DRV)
    G21 ; Work in millimetres (EDITADO POR 3DEALO - U DRIVE)
    G90 ; Send absolute coordinates... (EDITADO POR 3DEALO - U DRIVE)
    M83 ; ...but relative extruder moves (EDITADO POR 3DEALO - U DRIVE)
    M84 S30 ; Set idle timeout

    ; Axis Limits
    M208 X-50 Y0 U0 Z0 S1 ; Set axis minima (EDITADO POR 3DEALO - U DRIVE)
    M208 X630 Y430 U680 Z400 S0 ; Set axis maxima - ALTERADO POR 3DEALO ADICIONADO EIXO U (POSSUI 50 UNIDADES ADICIONAIS PARA GARANTIR ESPACO DE ESTACIONAMENTO DO CARRO)

    ; Endstops
    M574 X0 Y0 U2 S0 ; Set active LOW endstops (EDITADO POR 3DEALO - U DRIVE com endstop high end)
    M574 Z1 S2 ; Set endstops controlled by probe

    ; Z-Probe (BL Touch)
    M307 H7 A-1 C-1 D-1
    M558 P9 H5 F500 T4000 X0 Y0 Z1 ; Set Z probe type/mode 9. H=Dive Height. F=Speed the bed moves
    G31 P25 X-33 Y18 Z2.5 ; Set Z probe trigger value, offset and trigger height
    M557 X15:775 Y15:385 S20 ; Define mesh grid

    ; Heaters
    M301 H0 S1.00 P10 I0.1 D200 T0.4 W180 B30 ; Use PID on bed heater (may require further tuning)
    M305 P0 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 0
    M143 H0 S100 ; Set temperature limit for heater 0 to 100C
    M305 P1 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 1
    M143 H1 S270 ; Set temperature limit for heater 1 to 270C
    M305 P2 T100000 B3950 C0 R4700 ; Set thermistor + ADC parameters for heater 2
    M143 H2 S270 ; Set temperature limit for heater 2 to 270C

    ; Fans
    M106 P0 S0 I0 F500 H-1 ; Set fan 0 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P1 S0 I0 F500 H-1 ; Set fan 1 value, PWM signal inversion and frequency. Thermostatic control is turned off
    M106 P2 S0 I0 F500 H-1 ; Set fan 2 value, PWM signal inversion and frequency. Thermostatic control is turned off

    ; Tools
    ;M563 P0 D0 H1 ; Define tool 0 - ORIGINAL
    ;G10 P0 X0 Y0 Z0 ; Set tool 0 axis offsets - ORIGINAL
    ;G10 P0 R0 S0 ; Set initial tool 0 active and standby temperatures to 0C - ORIGINAL

    ;''' Tool configuration section'''

    ;''' Create a tool that uses the low end (X) carriage'''
    M563 P0 D0 H1 F0 ; tool 0 uses extruder 0, heater 1 and fan 0
    G10 P0 X0 Y0 Z0 S0 R0 ; set tool 0 offsets and temperatures

    ;''' Create a tool that uses the high end (U) carriage'''
    M563 P1 D1 H2 X3 F2 ; tool 1 uses extruder 1, heater 2, fan 2, and maps X to U
    G10 P1 Y0 U0 Z0 S0 R0 ; set tool 1 offsets and temperatures

    ;''' Create a tool that prints 2 copies of the object using both carriages'''
    M563 P2 D0:1 H1:2 X0:3 F0:2 ; tool 2 uses both extruders, hot end heaters and fans, and maps X to both X and U
    G10 P2 X50 Y0 U-50 S0 R0 ; set tool offsets and temperatures
    M567 P2 E1:1 ; set mix ratio 100% on both extruders

    ; Automatic power saving
    M911 S10 R11 P"M913 X0 Y0 G91 M83 G1 Z3 E-5 F1000" ; Set voltage thresholds and actions to run on power loss

    ; Custom settings are not configured

    DEPLOYPROBE.G

    M280 P7 S10 I1

    RETRACTPROBE.G

    M280 P7 S120 I1

    BED.G

    ; bed.g
    ; called to perform automatic bed compensation via G32

    M561 ; clear any bed transform
    ; Probe the bed at 4 points
    G30 P0 X15 Y15 H0 Z-99999
    G30 P1 X15 Y415 H0 Z-99999
    G30 P2 X615 Y415 H0 Z-99999
    G30 P3 X615 Y15 H0 Z-99999 S

    HOMEZ.G

    ; homez.g
    ; called to home the Z axis
    ;
    ; generated by RepRapFirmware Configuration Tool on Mon May 07 2018 16:11:49 GMT+0200 (Hora de verano romance)

    T0 ; select first hot end (BL TOUCH FROM E3D FORUM)

    G91 ; relative positioning
    G1 Z5 F6000 S2 ; lift Z relative to current position

    G28 U
    G1 U615 F3000 S1 ; EDITADO 3DEALO DRIVE U
    G1 U-4 F600 S2 ; EDITADO 3DEALO DRIVE U
    G1 U10 S1 ; EDITADO 3DEALO DRIVE U

    G90 ; absolute positioning
    G1 X15 Y15 F6000 ; go to first probe point
    M401 ; Lower Z probe (BLTouch)
    G30 ; home Z by probing the bed
    M402 ; Retract Probe
    G1 Z5 F200 ; Raise bed to 5mm.



  • @3dealo said in BLTouch + Expansion Breakout Board:

    RETRACTPROBE.G
    M280 P7 S120 I1

    This is the test mode you are seeing, it is wrong.
    retractprobe.g has to be: M280 P7 S90 I1



  • Ok... I noticed that my retract probe had s120 instead of s90...



  • @scachi Yes.. i just noticed that... ☺ thanks I lot, it was your post "this shouldn't be in any file" that made me realize that... now I must try a probe process to see if it works, I will let you now in a few minutes



  • Yes! it did the probing...I used the G32 to test... Now I need to get familiar with G32, G30 know the differencies between them and the G29 ...and ofcourse calbrate it well.

    thanks!!!


Locked
 

Looks like your connection to Duet3D was lost, please wait while we try to reconnect.