Skip to content

HBridge - motor control #12083

@IhorNehrutsa

Description

@IhorNehrutsa

This means that HBridge is built from discrete components and requires two pairs of complementary PWMs to drive it (ie. 4 PWM outputs).
image
Note: H-bridges integrated circuits not discussed in this issue!
One HBridge allows connect one DC motor:
image
Two HBridges allows connect one stepper motor:
image
Three half-HBridges allows connect one BLDC motor:
image

A minimal API is:

motor = HBridge(a=Pin(), _a=Pin(), b=Pin(), _b=Pin(), c=Pin(), _c=Pin(), freq=, duty=, deadtime=)

a, _a - required, complementary PWM outputs (usually center-aligned with max deadtime as default)
b, _b - optional, complementary PWM outputs
c, _c - optional, complementary PWM outputs
freq - Hz, frequency for all PWM's
duty - load current - 0..100%
deadtime - Dead-time is a blanking time period (upper & lower transistors in off-state simultaneously) of half-bridge power stage. Both transistors are switched off for short period of time to prevent both transistors conducting simultaneously thus causing a short circuit from supply to ground.

motor.duty() change load current
motor.deinit() close all switches, free internal modules

The ESP32 port allows to use MCPWM to build an HBridge.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, new feature implementations

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy