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.
1
vote
1answer
47 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
2answers
45 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 ...
0
votes
1answer
34 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 ...
0
votes
0answers
95 views
Stepper motor PID control Loop
So I am writing a code that takes a tilt and Pan value from an external source and the moves two stepper motors. I have written this simple code:
#include <AccelStepper.h>
AccelStepper ...
1
vote
1answer
59 views
What is the proper way to implenet 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
205 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 ...
0
votes
0answers
54 views
General How-To: Arduino Based PID for Saeco Aroma Espresso Machine
I have 2 spare Arduino R3 Unos lying around and have heard a lot of positive results from folks who have PID'ed their Silvias, Via Venezias, etc. How would I go about PIDing my Saeco Aroma with my R3 ...
4
votes
1answer
744 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
105 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
222 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
84 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
161 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
39 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 ...
0
votes
1answer
431 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
96 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
778 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
1answer
907 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 ...
2
votes
2answers
12k 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
653 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
131 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 ...
1
vote
2answers
1k 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
1k 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
1k 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 ...