Skip to content

Added : Implementation for HBridge Control of Motor#4

Merged
Witty-Wizard merged 2 commits intomainfrom
3-feature-implement-motor-control-logic-for-h-bridge
Oct 5, 2024
Merged

Added : Implementation for HBridge Control of Motor#4
Witty-Wizard merged 2 commits intomainfrom
3-feature-implement-motor-control-logic-for-h-bridge

Conversation

@Witty-Wizard
Copy link
Owner

Description:

This PR introduces a motor control logic for the HBridge, allowing the motor to be controlled using signed 8-bit values (int16_t) ranging from -255 to 255. The goal of this implementation is to handle both forward and reverse motor control in a smooth manner based on the input value.

Testing Result:

  • Forward Movement: Verified that positive values set the motor direction to forward and apply the correct PWM signal, ranging from slow speed to full speed at 255.
  • Reverse Movement: Verified that negative values set the motor direction to reverse and apply the correct PWM, capping the speed at -255.
  • Zero Handling: Verified that when 0 is passed, the motor stops as expected.

@Witty-Wizard Witty-Wizard added the enhancement 🪄 New feature or request label Oct 5, 2024
@Witty-Wizard Witty-Wizard self-assigned this Oct 5, 2024
@Witty-Wizard Witty-Wizard linked an issue Oct 5, 2024 that may be closed by this pull request
@Witty-Wizard Witty-Wizard merged commit 89682a5 into main Oct 5, 2024
@Witty-Wizard Witty-Wizard deleted the 3-feature-implement-motor-control-logic-for-h-bridge branch August 1, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

✨[FEATURE]: Implement Motor Control Logic for H-Bridge

1 participant