Help implementing PID speed control with encoders on FRDM-KL…

Im working on a small embedded systems robotics project using the FRDM-KL46Z microcontroller board programmed in C with MCUXpresso IDE.

The robot uses:

  • Two DC motors
  • TB6612FNG motor driver
  • Wheel encoders
  • PWM motor speed control
  • GPIO interrupts
  • My goal is to implement a PID controller to maintain constant motor speed while the robot moves forward. The encoder signals should be used to measure speed, and the PWM duty cycle should be adjusted based on the PID output.

WRITE MY PAPER


Comments

Leave a Reply