Questions tagged [pid]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

Extended Kalman Filter and PID controller

I'm trying to build a model based on tracking an object in 2-D using MATLAB (time-varying system). I built the model using an Extended Kalman Filter and a PID controller. I have a doubt regards the ...
  • 1
1 vote
1 answer
43 views

Does PID controller work on every actuator

I am new to PID controller, so I got very confused. I am trying to solve the Cartpole problem. I saw this simple solution for that. I don't understand why that guy used sigmoid to determine which ...
0 votes
2 answers
33 views

Stabilizing water bucket with two retractable cables and motors

I am trying to design a system in which a bucket of water is held by two cables, lifted up/down while remaining stable. The cables can be retracted/detracted by two individual motors, controlled by ...
0 votes
0 answers
38 views

PID controller feasibility

I'm trying to control a hybrid inverter to manage a selfconsumption mode bypassing its native mode - meaning to distribute power coming from solar and into/from battery to home consumption and grid. ...
0 votes
0 answers
23 views

PID controller for slowly varying system [duplicate]

I am making a robot that is required to move in a straight line, but it is slowly turning on the left or right, this error keeps accumulating (eventually resulting in a very large radius turn). So, ...
1 vote
1 answer
120 views

Impact of using PID Output as a Change (Delta) vs Absolute

I am trying to control speed of a motor using PID. It seems like I have two approaches. Using PID to calculate the absolute duty cycle value of the PWM Using PID to calculate the change needed in the ...
1 vote
1 answer
162 views

How to use a PID controller for different kinematics robots

I implement different drive odometry for a robot. Trying to implement (proportional–integral–derivative controller) PID-based coordinate movements x, y, theta: ...
  • 13
0 votes
1 answer
65 views

Cascaded PID controller implementation

For a project I am building and programming my own flight controller. I have seen the implementation of a single loop PID controller. But after doing some more research I've found that a cascading PID ...
2 votes
1 answer
55 views

How to Contol the RPM of a Micro Metal Gearmotor with Encoders (Pololu) using PID?

I use the PID algorithm to control the RPM of a micro Gearmotor. My motor and encoder specifications are given below. Motor: https://www.pololu.com/product/2378 - 6V 29.86:1 gear ratio - please ...
0 votes
1 answer
53 views

How is named a controller that sets a position to reach with a constant velocity?

I looked everywhere I could but didn't find a useful answer, so let me explain here: My controller is giving a position goal, and while this position is not achieved, the linear actuator is controlled ...
1 vote
1 answer
124 views

Differential Drive Control Techniques

I have a mobile robot that has a differential drive technique. I try to control the robot with PID controller. Is the best way for controlling differential drive robots? If I want to compare different ...
  • 21
0 votes
2 answers
61 views

control of a rod attached to a motor

I have a 76 cm, aluminum rod, attached to the shaft of a 12v DC banebot motor. The rod is hanging vertically initially, and rotates in the vertical plane. The task is to control the rod to make it ...
  • 121
1 vote
1 answer
81 views

How to avoid oscillations caused by backlash in position control?

I am working with a ball screw mechanism driven by a brushless dc motor with an encoder mounted on the load side. We are using a PID position controller with tuning settings by optimization however ...
0 votes
1 answer
50 views

Center line steering with differential drive

I’ve got 2 motors that drives my unit and I can easily steer it manually by simply adding more speed to one wheel vs the other. Now I’m automating the rover using image processing to follow a driveway....
0 votes
0 answers
21 views

Detailed resources for control of linear actuators including backlash/friction compansation and controller design?

I am working on a project where I would like to control a linear actuator with a ball screw mechanism. I feel I need a reference book for position/servo control systems for dc motors as there are many ...
4 votes
1 answer
40 views

The math behind minimum controller sample rate compared to actual error frequency spectrum

It seems intuitive to me that, in a digital system, a system sampling the error rate "too slowly" will fail to stabilize the system. Is there a theory/set of metrics/equation I can use to ...
0 votes
2 answers
29 views

Strategies for tuning with low sample rate

I’m designing an arduino robot that’s objective is to find and drive towards a light using a photo resistor mounted on a servo. I want to write my program with PID control to sweep the photo-resistor ...
0 votes
2 answers
170 views

How do I find the transfer function for my quadcopter altitude system?

This is not so much of a how but if I am right so far. I am looking at the z-axis now only. The linearized equation of motion for the thrust in the z-direction is: $$ T=m\cdot \ddot{z}+mg, $$ where $m$...
0 votes
0 answers
88 views

Outer Position Loop to Control Inner Velocity Loop

I'm trying to control the position of a brushless DC gearmotor. To drive the motor, I have a controller box that provides a velocity that is proportional to a 0 to 5 V input. The motor has it's own ...
  • 109
1 vote
0 answers
58 views

PID control for robotic manipulator servoing

I'm trying to enable robotic manipulator servoing using MoveIt servo implementation. However, I'm having some questions regarding reference following and error compensation. The thing is, I roughly ...
5 votes
1 answer
411 views

Self balancing bike using a flywheel: ROS implementation

I have a bike with two stands and a flywheel like this: The stands can be adjusted so that they don't touch the ground. Now, the task is to implement a self balancing mechanism: when I run the script,...
  • 121
1 vote
1 answer
400 views

Implementing PID on a line following bot using turtlebot

I am using ROS melodic,turtlebot 2 on Ubuntu 18.04. The idea is to create an environment consisting of lines as a path (slightly curved), and to program the turtlebot to follow the lines. Basically, a ...
  • 121
0 votes
1 answer
67 views

Mapping Joystick Inputs to Quadcopter

hope you are all doing well. We are doing a project where a quadcopter is controlled by an ordinary joystick. We have constructed the Control Algorithm and the joystick to move the quadcopter in ...
  • 308
0 votes
1 answer
86 views

Bug in code of Self-Balancing Bot

I am making a Self balancing bot as my project in which I am using MPU6050, Arduino Uno, motor driver l298n and DC motors. I am making this using data from accelerometer and gyroscope and combining ...
0 votes
1 answer
54 views

Identifying active PID-Controller parameters

A metric of a physical system is being controlled by a PID controller (in this case a valve controls the temperature of a liquid by mixing hot liquid into a stream of cold liquid). All measurement ...
  • 101
0 votes
1 answer
144 views

Rotate a certain angle using PID and mpu6050

Currently I'm working with a 4 wheel robot and I'm trying to rotate a certain amount of angle. I used PID_V1 library to rotate this. But when I upload and test the code Robot rotate continously. ...
0 votes
1 answer
85 views

How to design a PID controller for boat?

I have a boat with two trusters and a trajectory planner which is based on the bicycle model. In order to control the boat, the linear velocity of each truster has to be provided. The following ...
  • 125
0 votes
1 answer
69 views

Robots Following Robots with Safety Distance Planning and Coordination

I have two robots, I wish for the second robot to follow the first one while keeping a constant distance d_safe between them. I am trying to implement a PID ...
  • 115
0 votes
0 answers
59 views

Find viscous friction for DC motor transfer function

How do I find the viscous friction for my DC motor without measuring the input current and output torque. I have to do a theoretical model on simulink and can't find any answers on how to find it
  • 1
1 vote
0 answers
121 views

How to implement PID position control for 4wheel mecanum robot?

I want to implement PID control on my 4 wheel mecanun robot. I want to give a position instruction to my robot and that it follow the following curves of velocity and position. The only feedback that ...
  • 11
3 votes
2 answers
93 views

Inner current controller benefits

I am currently working on a system with a BLDC motor attached to a non linear spring on which a user can apply a force. Meaning the torque applied on the motor's output is most of the time unknown. ...
1 vote
1 answer
95 views

How to choose closest angle when crossing -180 degrees

I'm applying a PID for position control on a diff drive robot, got the angles (orientation )between -pi and pi. It works fine until it needs to change its orientation from (let's say) -170 degrees to ...
0 votes
2 answers
331 views

PID controller for motor speed control and distance control

I am building a robot rover comprised of dual DC motors each with hall sensors to obtain rotaional speed. I currently have a PID controller for each DC motor that is able to control the speed of the ...
  • 91
0 votes
0 answers
38 views

How to prove the stability of trajectory tracking with PD control using Lyapunov method?

I'm having a problem to prove the stability of PD control in trajectory tracking. Let say we have a system with double integrator dynamics and we what to minimalize the tracking error $\tilde{x} $. ...
0 votes
1 answer
51 views

Quadcopter descends when rolled or pitched

I'm currently working on a quadcopter using f450 frame and YMF32 code. I was able to successfully build the quadcopter and It flies without having any vibrations or wobbles. Also, I tuned the PID ...
0 votes
1 answer
200 views

How can I improve DC Motors rise time?

...
3 votes
2 answers
155 views

PID Control: Is adding a delay before the next loop a good idea?

I am implementing PID control in c++ to make a differential drive robot turn an accurate number of degrees, but I am having many issues. Exiting control loop early due to fast loop runtime If the ...
2 votes
1 answer
118 views

Can I measure torque from this motor by only measuring the current?

I am new to robotics, please forgive/correct any errors. My Project Plan I want to use a PID controlled motor in a human-interface device where I need to measure the user's exerted force on an end ...
  • 123
2 votes
1 answer
1k views

PID controller that targets a set rotation and a set velocity at that rotation?

I have a 3d physics simulation where I use a PID controller to reach a set orientation (orientation error drives a torque output). Which works well enough some cases, but in others it's not working ...
  • 123
1 vote
1 answer
173 views

pid tuning the wheel velocity

I am using diff drive controller to control the wheels of my robot. Here i am trying to use the control toolbox pid class for making the input velocity and velocity measured from wheel encoder to be ...
0 votes
2 answers
100 views

High derivative gain in PD control

Why does high derivative gain in PD control results in motor noise or chatter? The graph that I see on MATLAB simulation is smooth enough, so following that it should not make noise..
0 votes
1 answer
60 views

What is the difference between The state-space equation and The configuration-space equation

The craig(p.180) states that equations can be made to represent the dynamic equations. The first one being the state space equation. $\tau=M(\Theta)\cdot\ddot{\Theta} + V(\Theta,\dot{\Theta}) + G(\...
0 votes
2 answers
81 views

Reliably enabling/disabling a PID loop via FSM in a microcontroller

I have a PID loop for a small vehicle implemented in a microcontroller. Currently the PID loop is implemented in a timer interrupt. I want to implement an FSM that will have states that enable or ...
  • 101
3 votes
1 answer
238 views

Motion profile and Motion control scheme, how do they interact?

I'm studying motion control and I start with the simplest case, I have to go from A to B in a straight line using a trapezoidal motion profile. I understand that in a real case, due to the fact that ...
1 vote
2 answers
479 views

To calculate roll,pitch and yaw

How do I calculate roll,pitch and yaw value from the position co ordinates of the drone, that is x,y and z from the gps sensor??? Using the x,y and z co ordinates I have to calculate roll,pitch and ...
1 vote
1 answer
42 views

How to compensate for back drive caused by gravity

I have a 24v DC motor with a planetary gear box, Hbridge, and encoder feedback that drives an arduino robot similar to a winch that moves a weight by spooling a strap up and down. The problem I am ...
1 vote
3 answers
270 views

Quadcopter PID Controller for distance

I am trying to use a PID controller to stop a quadcopter at a specific location while travelling horizontally, however currently it overshoots/undershoots depending on the max velocity. I have tried ...
0 votes
1 answer
67 views

Res-Scaling method beats PID controller. How?

Scenario: I have a robotic arm that has a (1D) lidar on its end, to orient itself with respect to the slant table in front of it. The lidar returns pretty accurate distance values in mm. The motor ...
  • 133
0 votes
1 answer
124 views

Imaginary part in result of inverse laplace transform

I am working with a system(closed-loop feedback control) that has a transfer function like this F = 20*(s+5)/(s^4+13.5s^3+41s^2+80*s+100) this one is in the s-domain but for the response analysis, I ...
0 votes
2 answers
100 views

Finding the right PD values for a quadcopter simulator

I am working on this short assignment where I have to find the right PD values for a simulated quadcopter. I have to reach 0.9 meters under 1 second with an overshoot of less than 5%. This is my ...
  • 111

1
2 3 4 5
7