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

    Controlling a BTS7960 Driver/H-Bridge

    Scheduled Pinned Locked Moved Unsolved
    General Discussion
    2
    3
    170
    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.
    • JRCLundefined
      JRCL
      last edited by JRCL

      Struggling to control this BTS7960 DC Motor Driver. Hoping someone can help me figure out what I have done wrong. This is just a test bench for a full machine and I know the Duex will have to be used so just trying to match those conditions.

      I've switched the Duex V_FAN jumper to 5V AUX. Here is my wiring diagram (Duet-Duex ribbon connector not shown):
      d87738dd-7d14-4d2c-bf77-f25a507063ea-image.png

      My Config.G

      ; General preferences
      G90                                            ; send absolute coordinates...
      M83                                            ; ...but relative extruder moves
      M550 P"RL1 V3"                        ; set printer name
      
      ; Network
      M552 S1                                        ; enable network
      M586 P0 S1                                     ; enable HTTP
      M586 P1 S0                                     ; disable FTP
      M586 P2 S0                                     ; disable Telnet
      
      ;Relay Control
      M950 P1 C"!duex.gp1"			;declare port 1 to GPIO Pin 1; R_PWM
      M950 P2 C"!duex.gp2"			;declare port 2 to GPIO Pin 2; L_PWM		
      M950 P3 C"!duex.fan6" 			;declare port 3 to fan 6; R_EN & L_EN 
      
      

      Macro I'm using to test it

      M42 P3 S255	 ;set L_EN & R_EN to PWM of 255=HIGH		
      M42 P1 S1.0	;Set R_PWM to HIGH	
      M42 P2 S0 	;Set L_PWM to LOW
      
      o_lampeundefined 1 Reply Last reply Reply Quote 0
      • JRCLundefined JRCL marked this topic as a question
      • o_lampeundefined
        o_lampe @JRCL
        last edited by

        @JRCL said in Controlling a BTS7960 Driver/H-Bridge:

        M42 P1 S1 ;Set R_PWM to HIGH
        M42 P2 S0 ;Set L_PWM to LOW

        I always wondered how RRF knows when I set P1 S1, that it means 100% PWM and not 1/256 dutycycle fractions?
        Isn't it mandatory to use P1 S1.0 to make it clear?

        JRCLundefined 1 Reply Last reply Reply Quote 0
        • JRCLundefined
          JRCL @o_lampe
          last edited by

          @o_lampe I gave that a try, unfortunately, no improvements

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