Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added : Implementation for HBridge Control of Motor #4

Merged

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
2 checks passed
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