Go Down

Topic: Code review bicopter (Read 439 times) previous topic - next topic

rossi86m

Hello!!!

For more than a year I have been building a bicopter from scratch.

I have advanced pretty well by now and I really appreciate if someone can review my code and give me some advice to make the bicopter as stable as possible

Thanks in advance!!!
Marco

jremington

Do you think it might be helpful to inform forum members whether your bicopter can even fly?
If so, how well does it perform?

rossi86m

Thanks for the answer

It can but it is vary unstable. I am playing with the pid values

jremington

#3
Nov 22, 2018, 05:32 pm Last Edit: Nov 22, 2018, 05:33 pm by jremington
Give the details of the copter behavior, your efforts and the results of those efforts.

Then, perhaps someone can help.

rossi86m

I am trying to find the proper pid variables por p,i,d but i get oscilation

I implemented a dual pid loop for the motor axis but I am not 100% sure that I am doing that right.

Any comment is more than welcome

Cheers,
Marco

rossi86m

Hey guys,


I am working on a project and I really do not know if I am getting some kind of interference between the different sensors I am using

I am using the following
- mpu6050
- hcsr04 ultrasonic sensor
- 2 brushless motors
- 2 servos
- arduino nano

I tried everything timers for the motors, the servo library. the mpu library, raw reading the mpu values.

I do not know why at some momento the mpu readings get crazy

I appreciate your comments.

Cheers,
Marco 

rossi86m

I open a new topic with more info
https://forum.arduino.cc/index.php?topic=581062.0

jremington

With 121 posts, you should realize that this is an unneccesary cross post, and contains far too little information for anyone to help.

rossi86m

With 121 posts, you should realize that this is an unneccesary cross post, and contains far too little information for anyone to help.
Thanks man for the suggestion!

If you only have complains just do not waste your Time

Cheers!
Marco

AWOL

Thanks man for the suggestion!

If you only have complains just do not waste your Time

Cheers!
Marco
If all you can do is waste time, DON'T CROSS-POST.
"Pete, it's a fool (who) looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.
I speak for myself, not Arduino.

Go Up