Making A Quad Rotor Drone With WiCard

Thread Starter

MA321

Joined Feb 2, 2018
14
hi MA321.
Many thanks for that update, pleased to hear that the MPU 6050 is working as required.
Looking forward to seeing your drone video.;)
E
Hi,

You're welcome,
And I will post the video here whenever I complete the building and programming of my drone :)
 

Thread Starter

MA321

Joined Feb 2, 2018
14
Hi again,

I tried to use MPU-6050 as the gyroscope. It works pretty well, but only just when all of the motors are turned off. When I turn on the motors, the gyroscope doesn't give me the correct values and is too noisy.

So I tried to use a digital filter, but the sensitivity of gyroscope decreased and also when I increase the duty cycle of the motors, this digital filter doesn't work.

Here's my digital filter formula:
//init values
Alfa = 0.90;
Beta = 0.10;
Filtered_Accel_Y = 0;

//The loop, about 30 samples per second
//MPU6050_Accel_Y = the value in the ACCEL_YOUT register of MPU6050
if(abs(MPU6050_Accel_Y) < 40)
Filtered_Accel_Y = Alfa * Filtered_Accel_Y + Beta * MPU6050_Accel_Y;
 

Thread Starter

MA321

Joined Feb 2, 2018
14
Hi again,

I tried to use MPU-6050 as the gyroscope. It works pretty well, but only just when all of the motors are turned off. When I turn on the motors, the gyroscope doesn't give me the correct values and is too noisy.

So I tried to use a digital filter, but the sensitivity of gyroscope decreased and also when I increase the duty cycle of the motors, this digital filter doesn't work.

Here's my digital filter formula:
//init values
Alfa = 0.90;
Beta = 0.10;
Filtered_Accel_Y = 0;

//The loop, about 30 samples per second
//MPU6050_Accel_Y = the value in the ACCEL_YOUT register of MPU6050
if(abs(MPU6050_Accel_Y) < 40)
Filtered_Accel_Y = Alfa * Filtered_Accel_Y + Beta * MPU6050_Accel_Y;
After studying a lot of useless articles about digital filter of MPU6050 and doing a lot of experiments, I finally solved this problem with MPU6050's internal digital filter (DLPF)...

Btw, I think making a tiny-sized quad-rotor is really harder than a larger one. If I succeed, that means my WiCard is really strong. I hope other engineers understand it. Also I'd like to add a camera to it in the future ;)
 
Top