Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pid]

A PID controller is a control loop feedback mechanism (controller) commonly used in industrial control systems. Use this tag for discussions about PID algorithms and libraries.

0
votes
0answers
23 views

Ball Balancing Robot [closed]

I'd have to work on ball balancing robot, where a ball of steel is to balance on a flat surface, that surface then attach to two servo motors that would detect the angle and balance to mean position ...
0
votes
0answers
21 views

How to stabilize magnetic levitation system?

I followed everything from this project but still, the magnet is not levitating - https://www.hackster.io/jsirgado/magnet-levitation-with-arduino-eeeee4 The best I can do is to make the magnet jump ...
0
votes
1answer
55 views

How to Simulate and Tune a PID

I've been trying to simulate a PID using Brett Beauregard's PID library in order to understand it better. Here is my code. #include <PID_v1.h> const unsigned int numReadings = 500; double ...
1
vote
1answer
57 views

Cascaded Control loop Arduino [closed]

I am trying to implement cascaded control system, with velocity inner loop and position outer loop. Separately and without cascaded control, I have implemented position control and velocity control ...
0
votes
0answers
23 views

Quadcopter oscillation using PID

I am building an Arduino based flight controller for a quadcopter and have got it flying but it is not performing how I want it to. The drone is flying but when I release the sticks the drone does ...
1
vote
1answer
72 views

SIlly PID question using the PID library

I'm new to PID. My goal: control the motor to get it to run a given RPM by a potmeter (which is setpoint). Sensor is optical (detects white line, reflections), counts 100 round in x amount of time. ...
0
votes
1answer
129 views

Frequent ON OFF in SSR

I am working on a project on Arduino OLED MAX6675 thermocouple and SSR for my oven. My problem is when my SSR goes in LOW or HIGH state it turn ON and OFF several times before going to permanent HIGH ...
0
votes
1answer
154 views

What is better approach for non blocking pid algorithm?

I'm developing software side for 3 axes robot where are 360° continuous rotating servos used Documentation here these servos have its own feedback system so it's possible to control it's position ...
0
votes
0answers
188 views

Use of a logic level converter with Arduino Due PWM

Maybe I am way over my head here, but here it is: I am trying to regulate a spindle RPM. The tachymeter part is now working flawlessly. Now I am on the PID part, to control and regulate that speed. ...
0
votes
1answer
141 views

P I D AND GY80 10 DOF

I am running the program for GY80 10 DOF , and runs fine . Date is printed on the serial monitor How ever I have failed to use this program for my WalkerBot (walker bot is a Robotic suit that I want ...
1
vote
2answers
101 views

Can removing lines of code destroy a motor driver and make it catch fire?

I am making a pid line follower robot. So I was tinkering with code to optimize my line follower when i removed two lines of code unknowingly. As soon as I uploaded my code and started the line ...
1
vote
2answers
2k views

How can an Arduino-Quadcopter be stabilized?

I have built an arduino quad-copter and I am using an MPU6050 to read the rotational position and velocity of the aircraft. The problem is that I cannot get the thing to stabilize. Watch this video ...
0
votes
1answer
248 views

How to calibrate a PID?

I'm working on a pid-controlled levitating magnet device. It uses a hall-sensor to turn on and off an electro magnet in ordet to achieve levitation. When I hold a magnet close to the hallsensor, I ...
1
vote
1answer
358 views

Float to integer conversion for control program crashes arduino

I have a program which estimates battery capacity, range as well as runs different control loops on an arduino MEGA2560 to control an eBike. I was using floating points which gave me quite a slow ...
0
votes
3answers
80 views

Need help modelling and coding a feedback scenario

Above illustration is the basic setup for the question. The scenario will be the following: A potentiometer(providing 0 to 5V) is an analog input to A0. This potentiometer voltage is converted to ...
-1
votes
2answers
200 views

How can I convert PID correction values to an PWM brushless command?

Please I'm working on a quadcopter, and I have to made my own flight controller based on arduino uno. First of all please how can I get a filtred angular velocity and linear acceleration from the ...
4
votes
2answers
426 views

What is the proper way to implement PID?

I'm having some trouble conceptualizing how to go about implementing PID into my drone. There are a few ways I'm thinking about implementing the pipeline: Having one PID Object for each of the six ...
0
votes
1answer
1k views

PID control arduino

I am hooking up an accelerometer to an arduino uno and running it through this pid controller. However the output isnt going to my setpoint. When i move the accelerometer back and forth the data goes ...
4
votes
1answer
5k views

QuadCopter PID using MPU6050

I am using Arduino Uno, with PID library and Jeff Rowberg library for MPU6050 i.e I2Cdev.h, MPU6050_6Axis_MotionApps20.h. There is one PID for each axis i.e Pitch and Roll, I am getting output that ...
0
votes
2answers
798 views

MPU 6050 stuck on same values

I'm having a problem with my MPU6050. I'm using PID to speed up a motor with the MPU values. What could the problem be? Here is a link to a previous question that I asked concerning a problem with ...
1
vote
2answers
1k views

PID not working correctly

I'm currently working on a project where I need to use PID to get the correct speed for a motor when it is angled a certain amount. The problem is that I'm only getting 0.00 and 255.00 as the speed. ...
1
vote
0answers
233 views

Quadricopter+PID+Arduino+MPU6050 [closed]

so I'm trying to creat a quadricopter with an arduino and gyroscope mp6050 and this with PID algorithme (using arduino PID,mpu library) so I make everything work separately but when it comes to use ...
1
vote
2answers
517 views

How does the PID controller actually work?

Preferably PID functions on an Arduino uno or any other examples. I have been researching but many of the the websites really do not explain it. P.S is there an algorithm for a PID? Thanks
-2
votes
1answer
52 views

Is there any realy working setup for multicopter with codes

I'm searching pc controlled quadrotor code projects. I tried to do strangedev's project but not works for me. Is any one test this project. PID commands works like relays. suddenley speeds up and ...
1
vote
1answer
5k views

Regulation of the temperature using PID

I'm making a control system for the heating of a plate using a PID control. the goal is to regulate the temperature of the plate by changing the power dissipated by the resistance. By using a sensor ...
1
vote
0answers
174 views

Why doesn't PWM work on arduino in this code?

I am trying to control dc motor speed with PWM. When I test it with simple program like spin in one direction with set PWM value it works. If PWM>70 the motor will start spinning and max is 255. But ...
1
vote
2answers
3k views

How to read RC receiver channels without using pulsein() command with arduino

I am building a quad-copter, the problem is of stability and for better stability lesser sampling time is required. For lesser sampling time I need to have faster loop() function. But the Pulsein() ...
0
votes
2answers
9k views

PID control for Motor Speed control

I was trying to apply PI controller to a motor using Arduino. I have somewhat achieved the task but the problem is that it oscillates too much. Also i couldn't figure out what to do when pwm signal ...
3
votes
4answers
30k views

Control Speed of DC FAN Using Arduino PID Library

I want to make a circuit that control speed of DC fan Using Arduino PID Library to get thing at specific temperature. The circuit looks like this but can be changed, The dc fan motor connected to PWM ...
1
vote
0answers
884 views

Arduino PID setup for Quadcopter

I am currently working on a quadcopter in which I want help in setting up my PID. I am trying to get output from the PID loop by giving input from MPU6050's (accelerometer and gyro) pitch value. The ...
0
votes
1answer
197 views

Trouble reading from multiple analog ports

So I'm trying to read 4 different analog values and store each one to a variable. I imagine doing this by first initializing the ADC registers and each time it enters the ADC ISR checking which port ...
2
votes
2answers
2k views

Using arduino mega with linear encoder to control movement of dispenser

My goal is to deliver very small quantities (100 microliters) of fluid to the (approximate) center of a 25mm x 75mm surface. My first idea was to repurpose an old inkjet printer for the project. I ...
1
vote
2answers
2k views

How to map PID output to actuator control?

I'm building a control system for the heating of a house. A sensor reads the temperature inside and is then used as the input in the PID control. The temperature is then controlled by a servo which ...
9
votes
3answers
3k views

Controlling water temperature accurately

I have following setup: Arduino Duemilanove Small water heater connected with optical relay (PWM is ok) Waterproof DS18B20 temperature sensor Unknown amount of water (but temperature sensor and ...