Pololu Robotics & Electronics
Menu
My account Comments or questions? About Pololu Contact Ordering information Distributors

Pololu Forum

PID code


#1

Sir please send pid codes
I’m Using qtr8a sensor and drv 8835 motor driver and arduino nano etc


QTR-8A PID line follower
#2

I moved your post into its own thread.

We do not have any example code that would work directly with your custom setup, but you can probably get started with writing the code for PID control for your line following robot by reviewing the code in the main loop of our LineFollowing example sketch for the Zumo robot, and reading about the PID concept in the Advanced Line Following with 3pi: PID Control section of the 3pi’s user’s guide.

-Jon