Help needed to set PID gain values

Started by veergamer, March 26, 2017, 06:09:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

veergamer

I've been building my quad using an Arduino as a FC and the thing is that I am not able to set the PID gain values correctly thus whenever I try to start lifting it, it goes out of balance and starts spinning or turns upside down on one side. Also, I've noticed that mostly one motor spins much faster than the rest, what should I do? does anybody know how to set these values correctly in one go?
The code I'm using is from www.brokking.net

veergamer

Guys now s a new problem more intensified push from one motor, seems like it wants to do all the work by itself thus turning a hell lot faster than the rest of them. What could be the problem and solution?

sankhasubhra11

It will be hard for a beginner to build a drone with arduino as Fc.I recommend you to use kk2.1.5 flight controller.It is very easy to configure.

veergamer


sankhasubhra11

Check your motor bearings.Bad bearings may reduce the performance.It will consume more power.which motor you are using

sankhasubhra11


veergamer


saikat

i have not looked at the code in detail - but why not use multiwii ?

it is a mature project and lot of us can advise. your existing setup should be fine

veergamer

Yes i was thinking about giving that a shot now, will do it tonight and  post updates here

sankhasubhra11

Obstacle avoidance system can be made with arduino.

sankhasubhra11


veergamer

Multiwii is getting too complicated, cant be done now
Why do you think 2 motors are running faster than the other two.

veergamer

I need your help in setting values of throttle range
my throttle , roll pitch and yaw axes of transmitter do not go from 1000 to 2000 so i need some help about how to set the multiwii code according to it?

Balakrishna Reddy

In stall position there would gyro drift in sensor which could be reason for your problem. Try to fly the quad. During flight it wont effect that much.
I think two oppsite motors are spinning trying to yaw the quad. If that is the case try lowering "I" constant for yaw which is also a reason for yaw.