Skip to content

Working towards a positional control for DC motors with encoders

Notifications You must be signed in to change notification settings

ArsenioDev/DC-motor-positional-control

Repository files navigation

DC-motor-positional-control

Working towards a positional control for DC motors with encoders Requires any DC motor with a quadrature capable encoder, 2 HW interrupts and PWM channels, PID library, potentiometer, and a H bridge.

"THE BEER-WARE LICENSE" (Revision 42): Arsenio Dev wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

  • Basic Bang-Bang control plant
  • Simple untuned PID control plant
  • Multiple kinds of H bridge support
  • PWM input(RC servo control)
  • Remove dependency on other libraries
  • Turn this into a simple library

Updated to drive standard PWM instead of direction and PWM, now works with any standard H bridge

To use TB6612FNG in this manner, connect PWMA/B to VCC and drive INA/B with PWM.

For Bang-Bang control, see the two bang bang files.

Driver Example motor

About

Working towards a positional control for DC motors with encoders

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%