Blog > HMC33926 H-Bridge and a proto board

Home Forums 12Blocks HMC33926 H-Bridge and a proto board

This topic contains 1 reply, has 2 voices, and was last updated by  Hanno .

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12192

    Anonymous

    I am only three days into the 30 day trial period and I am very impressed.

    I do have some newbie questions about how to make things work in 12Blocks.
    What is the best strategy to use an HMC33926 Dual H-bridge driver?
    I would like to use the existing motion blocks, but am not sure how to change pin assignments.
    Can I change the motor pin definitions in the definition file for “Demo board” and/or
    make my own definition file for a “Tommy board”? How do I go about doing this?

    This is the Motor logic and Pin assignments for the motors on my robot…
    HMC33926 Dual H-bridge driver.
    Operates the 3 pins x2** (Fwd, Rev, and Ena* for Pulse Width Modulation) of two H-bridge’s.
    Using on board jumpers set for high speed PWM,
    Plus a Chip Enable pin (High := on, Low := low power sleep mode.)

    Movement Logic for each motor **
    Fwd Rev Ena* use PWM on Ena pin to control motor speed.

    1 0 0 motor forward

    1 0 1 PWM motor forward

    1 1 0 motor brake

    1 1 1 PWM motor brake

    0 1 0 motor reverse

    0 1 1 PWM motor reverse

    0 0 0 motor coast

    0 0 1 PWM motor coast

    ‘************************** Motors and Rudder Pin assignments *****************************

    ‘Rudder = 9 ‘ Rudder Servo connected to servo header #4

    ‘H_Bridge Pins
    MtrAPWM = 10 ‘ MotorA PWM/Enable
    MtrArev = 11 ‘ MotorA Reverse
    MtrAfwd = 12 ‘ MotorA Forward

    MtrBPWM = 13 ‘ MotorB PWM/Enable
    MtrBrev = 14 ‘ MotorB Reverse
    MtrBfwd = 15 ‘ MotorB Forward

    MtrEnabl = 16 ‘ H-Bridge chip Enable Pin(High to Enable, Low to Sleep)

    ‘*********************************** Wheel encoders *********************************

    ‘RTicker = 17 ‘ Right side MLX 90217 “tick” input Pin
    ‘LTicker = 18 ‘ Left side MLX 90217 “tick” input Pin

    Teeth = 36 ‘ Number of Teeth on wheel or sprocket to make One Revolution

    ‘***************************************************************************************

    Thanks in advance.
    Tommy

    #12196

    Hanno
    Keymaster

    Hi Tommy,
    I’m just about to add an H-bridge driver option that ties into the existing move/turn blocks. There will be a configuration option in the library selector to indicate what pins you’re using.
    H

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

You must be logged in to reply to this topic.