Welcome to Our Community

Some features disabled for guests. Register Today.

Blackbox x32 Servo connection

Discussion in 'Controller Boards' started by lizard, May 2, 2023.

  1. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    I am just testing the new blackbox and can't get it to activate the servo. I have tried a few different servos. I hear a faint click but get no action on pen up/pen down or trying to calibrate it in OpenBuilds control. What could I be doing wrong?

    $33 is set to 50
     
  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,870
    Likes Received:
    4,283
    Please post a Grbl Settings backup, lets just make sure all the other settings are correct too
     
  3. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    Here they are:
     
  4. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    $0=10.0 ; Step pulse time, microseconds
    $1=255 ; Step idle delay, milliseconds
    $2=0 ; Step pulse invert, mask
    $3=1 ; Step direction invert, mask
    $4=0 ; Invert step enable pin, boolean
    $5=7 ; Invert limit pins, boolean/mask
    $6=1 ; Invert probe pin, boolean
    $7=0 ; Disable spindle with 0 speed, boolean
    $8=0 ; Ganged axes direction invert as bitfield
    $10=511 ; Status report options, mask
    $11=0.010 ; Junction deviation, millimeters
    $12=0.002 ; Arc tolerance, millimeters
    $13=0 ; Report in inches, boolean
    $14=0 ; Limit pins invert, mask
    $15=0 ; Coolant pins invert, mask
    $16=0 ; Spindle pins invert, mask
    $17=0 ; Control pins pullup disable, mask
    $18=0 ; Limit pins pullup disable, mask
    $19=0 ; Probe pin pullup disable, boolean
    $20=0 ; Soft limits enable, boolean
    $21=0 ; Hard limits enable, boolean
    $22=0 ; Homing cycle enable, boolean (Grbl) / mask (GrblHAL)
    $23=7 ; Homing direction invert, mask
    $24=100.0 ; Homing locate feed rate, mm/min
    $25=1000.0 ; Homing search seek rate, mm/min
    $26=250 ; Homing switch debounce delay, milliseconds
    $27=5.000 ; Homing switch pull-off distance, millimeters
    $28=0.100 ; G73 retract distance, in mm
    $29=0.0 ; Step pulse delay (ms)
    $30=255.000 ; Maximum spindle speed, RPM
    $31=0.000 ; Minimum spindle speed, RPM
    $32=0 ; Laser-mode enable, boolean
    $33=50.0 ; Spindle PWM frequency
    $34=0.0 ; Spindle off Value
    $35=0.0 ; Spindle min value
    $36=100.0 ; Spindle max value
    $37=0 ; Stepper deenergize mask
    $39=1 ; Enable printable realtime command characters, boolean
    $40=0 ; Apply soft limits for jog commands, boolean
    $43=1 ; Homing passes
    $44=3 ; Homing cycle 1
    $45=0 ; Homing cycle 2
    $46=0 ; Homing cycle 3
    $62=0 ; Sleep Enable
    $63=2 ; Feed Hold Actions
    $64=0 ; Force Init Alarm
    $65=0 ; Require homing sequence to be executed at startup
    $70=7 ; Network Services
    $73=1 ; Wifi Mode
    $74=creacluster.at ; Wifi network SSID
    $75=REDACTED ; Wifi network PSK
    $100=57.143 ; X-axis steps per millimeter
    $101=57.143 ; Y-axis steps per millimeter
    $102=57.143 ; Z-axis steps per millimeter
    $110=5000.000 ; X-axis maximum rate, mm/min
    $111=5000.000 ; Y-axis maximum rate, mm/min
    $112=5000.000 ; Z-axis maximum rate, mm/min
    $120=500.000 ; X-axis acceleration, mm/sec^2
    $121=500.000 ; Y-axis acceleration, mm/sec^2
    $122=500.000 ; Z-axis acceleration, mm/sec^2
    $130=1300.000 ; X-axis maximum travel, millimeters
    $131=1300.000 ; Y-axis maximum travel, millimeters
    $132=70.000 ; Z-axis maximum travel, millimeters
    $300=Grbl ; Hostname
    $302=192.168.5.1 ; IP Address
    $303=192.168.5.1 ; Gateway
    $304=255.255.255.0 ; Netmask
    $305=23 ; Telnet Port
    $306=80 ; HTTP Port
    $307=81 ; Websocket Port
    $341=0 ; Tool Change Mode
    $342=30.0 ; Tool Change probing distance
    $343=25.0 ; Tool Change Locate Feed rate
    $344=200.0 ; Tool Change Search Seek rate
    $345=100.0 ; Tool Change Probe Pull Off rate
    $370=0 ; Invert I/O Port Inputs (mask)
    $384=0 ; Disable G92 Persistence
    $I=acro1515pen
     

    Attached Files:

  5. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    Just wanted to check in again. I haven't got it to work yet. Steppers working great though
     
  6. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    I am getting a little bit of action in the low part of the range (0-20) but otherwise it is acting strange. I'll keep playing.
     
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,870
    Likes Received:
    4,283
  8. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    It works only in a very low range (13-30) on a variety of my crappy and not so crappy servos, 9g micro servos. Couldn't be a setting issue? Would it be a problem to run it just in this low range? I would prefer not for control issues
     
  9. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,870
    Likes Received:
    4,283
  10. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    Okay wired it with additional PSU option, plugged in with 5v and tried 6v, and the servo is still limited. After around 31, it stops responding....

    I have tried with three different servos. Each has the same problem.
     
  11. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    I have been playing around with $30 and it seems that as I raise it the range expands but is still limited (although less so)

    Above 1800, I get action from 44-255

    At 1000, I had action from 26-133 approx

    when it was the default 255, this is when I was getting only action really between 8-33

    But it still seems strange, does this point to a complete solution? I am quite out of my depth
     
  12. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    14,870
    Likes Received:
    4,283
    Please contact the store via Support > New Ticket - including a link to this thread and they'd be happy to help you sort it out
     
  13. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    59
    Likes Received:
    60
  14. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    Thanks, this is interesting!

    Footnote 13 says:

    13 Set $33=50 (PWM frequency), $34=5, $35=5 and $36=10 to generate a "standard" PWM signal: 20ms repetition rate, 1 - 2ms pulse length range.

    If I change my settings to:

    $30 = 255
    $33 = 50
    $34 = 5
    $35 = 5
    $36 = 10

    Then I get action at all 1-255 positions. The only problem now is that the range of motion is only 90 degrees. Ideas?
     
  15. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    59
    Likes Received:
    60
    Motor spec is?

    I've checked the generated pulse train and the pulse widths are between 1 and 2ms as they should.

    You may decrease $34 and $35 to output a shorter pulse than 1ms at min, and increase $36 to get a longer pulse than 2ms at max.
    FYI the servo I have moves 180 degrees when $34 and $35 are set to 2 and $36 to 15 - resulting in a 0.4 - 3ms pulse witdh range.
     
  16. David the swarfer

    David the swarfer OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Aug 6, 2013
    Messages:
    3,430
    Likes Received:
    1,907
    that is normal for some RC servos, though nearly 180 is a bit more common.
     
  17. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    Pulse width is 900-2100μs, so then it would be 4.5 and 10.5 for the range I think? When I do this maybe I get 100 degrees, but also if that is normal that is okay and it will work for me, although servo specs say 180 degrees
     
  18. lizard

    lizard New
    Builder

    Joined:
    Oct 23, 2022
    Messages:
    24
    Likes Received:
    4
    Okay when I use these numbers:

    I get pretty much 180 degrees. Is this okay to continuously run if my pulse width is 900-2100μs for the servo?

    sorry, most of this is gibberish to me, but also seems like we are almost at the solution
     
  19. terjeio

    terjeio Well-Known
    Builder

    Joined:
    Oct 18, 2020
    Messages:
    59
    Likes Received:
    60
    I guess so, ask the servo supplier or manufacturer if in doubt.

    > sorry, most of this is gibberish to me

    $33 = 50Hz = 20ms (1/50s) repetion rate, $34-$36 are percentages of this.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice