Questions tagged [pid]

Proportional Integral Derivative Controller. A type of control algorithm used in many control situations, especially servo systems.

48 questions
Filter by
Sorted by
Tagged with
329k views

What are good strategies for tuning PID loops?

Tuning controller gains can be difficult, what general strategies work well to get a stable system that converges to the right solution?
• 1,307
7k views

Line Follower optimization

I'm working on building a line follower robot and want to optimize its performance. It was suggested that I use a PID algorithm. I read a lot about PID but am confused a bit regarding following: I've ...
• 221
1k views

understanding the PID controller

I am trying to understand the effects of P, I and D constants in a PID controller on a system. As far I've understood, P and I make the system 'faster', and D makes it 'slower'(which I read in books),...
• 345
21k views

How can I use the Arduino PID library to drive a robot in a straight line?

I would like to create an Arduino based robot with 2 wheels, quadrature encoders on each wheel, a H-bridge driver chip (or motor controller) and a caster. I want to use the PID library to ensure the ...
• 361
8k views

• 2,453
552 views

Good method for Retuning a PID After Detecting Oscillation

Given a PID controller with an anti-windup, what are some practical ways to retune the controller once oscillation has been caused and detected? I have access to the magnitude and period of the ...
• 141
479 views

Dealing with position inaccuracy and latency in PID Loop

Background: I am new to PID, for my first PID project I am using a simple P-Loop and 300 degree linear potentiometers for position feedback. I am using the roboclaw 2x60A motor controller. The motor ...
• 155
504 views

I am building a quadcopter for my school project. I am trying to program my own flight controller using PID algorithm. I'll try to make my question simple using as an example below only two motors <...
726 views

Quadcopter PID output and duty cycle conversion

I'm trying to design two PD controllers to control the roll and pitch angle of my quadcopter and a P controller to control the yaw rate. I give to the system the reference roll, pitch and yaw rate ...
• 115
3k views

Tuning PD for line follower

I am trying to make line following robot. I am using atmega328p mcu, pololu 10:1 motors, pololu qtr6-rc sensor, 2s li-po. Here is my code: ...
• 31
2k views

PID Tuning for an Unbalanced Quadcopter: When do I know if the I-gain I've set is too high?

Good day, I am working on an autonomous flight controller for a quadcopter ('X' configuration) using only angles as inputs for the setpoints used in a single loop PID controller running at 200Hz (PID ...
1k views

Python PID tuning - Parrot Bebop 2 - Target follower - ROS

I'm developing a PID controller for making the drone follow a detected object. I used as reference these topics: Ttracking-objects-from-camera-pid-controlling-parrot-ar-drone Tracking-objects-...
• 53
1k views

PID Controller Output Mapping for Motor Speed Control

Hi, I want to control the speed of a conveyor belt. I can measure the linear velocity of the belt using a encoder mounted at the roller of the belt. My confusion is not with the PID but only the ...
585 views

Raspberry Pi quadcopter thrashes at high speeds

I am attempting to build a Raspberry Pi based quadcopter. So far I have succeeded in interfacing with all the hardware, and I have written a PID controller that is fairly stable at low throttle. The ...
3k views

Length and Width of a Line Following Robot

I'm building a line following robot. I have made different chassis designs. The main prototype I'm using is a rectangle base. At one side motors are placed. On the other side of the rectangle caster ...
• 192
403 views

P gain tuning for quadcopter (Is my perception for a P-gain too high correct?)

Good day, I am currently working on a project using Complementary filter for Sensor fusion and PID algorithm for motor control. I viewed a lot of videos in youtube as well as consulted various blogs ...
1 vote
131 views

How do i use the Nicolas ziegel approach if my system never becomes unstable?

How do i use the Nicolas Ziegel approach when the root locus plot of my system never becomes marginally stable , for any gain (unless it is negative).. ?? How do i estimate my ultimate gain value????
• 345
928 views

...
• 101