RC India

RC Models => Multirotors => Topic started by: veergamer on March 26, 2017, 06:09:25 PM



Title: Help needed to set PID gain values
Post by: veergamer on March 26, 2017, 06:09:25 PM
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


Title: Re: Help needed to set PID gain values
Post by: veergamer on March 26, 2017, 07:46:13 PM
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?


Title: Re: Help needed to set PID gain values
Post by: sankhasubhra11 on March 26, 2017, 07:55:39 PM
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.


Title: Re: Help needed to set PID gain values
Post by: veergamer on March 26, 2017, 08:01:30 PM
Well that's not an option i have


Title: Re: Help needed to set PID gain values
Post by: sankhasubhra11 on March 26, 2017, 08:05:21 PM
Check your motor bearings.Bad bearings may reduce the performance.It will consume more power.which motor you are using


Title: Re: Help needed to set PID gain values
Post by: sankhasubhra11 on March 26, 2017, 08:17:09 PM
Which arduino you are using?


Title: Re: Help needed to set PID gain values
Post by: veergamer on March 26, 2017, 08:25:05 PM
Uno


Title: Re: Help needed to set PID gain values
Post by: saikat on March 26, 2017, 08:42:03 PM
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


Title: Re: Help needed to set PID gain values
Post by: veergamer on March 26, 2017, 08:50:23 PM
Yes i was thinking about giving that a shot now, will do it tonight and  post updates here


Title: Re: Help needed to set PID gain values
Post by: sankhasubhra11 on March 26, 2017, 08:51:43 PM
Obstacle avoidance system can be made with arduino.


Title: Re: Help needed to set PID gain values
Post by: sankhasubhra11 on March 26, 2017, 08:59:35 PM
I have the code


Title: Re: Help needed to set PID gain values
Post by: veergamer on March 27, 2017, 02:40:08 PM
Multiwii is getting too complicated, cant be done now
Why do you think 2 motors are running faster than the other two.


Title: Re: Help needed to set PID gain values
Post by: veergamer on April 11, 2017, 10:22:10 PM
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?


Title: Re: Help needed to set PID gain values
Post by: Balakrishna Reddy on April 11, 2017, 11:58:16 PM
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.