Articles

Affichage des articles du juillet, 2017

Arduino Test

Image
After few days thinking why my quadcopter python algorithm does not work during real test, I finally suspect the pwm pigpio libray does not do the job. So I decided to test my algorithm using Arduino beacuse it has 4 hardware pwm pins. I bought Arduino Uno. So I started to rewrite my python algorithm in C/C++. During rewiting my code in C/C++, I feel to go back 20 years ago...in the 1990s....Use basic functions, keep care low usage memory... Using Arduino is very very different from Raspberry, Logs are basics, you must use serial communication using an usb cable. It is not so easy....But I finally ended my code. MPU6050 code is finished. I read it and compute roll/pitch. PID and speeds motors are compute too. Now I have to test my code again as I did with Raspberry I have not yet tested pwm harware pins. I should have do this first but I got a basic problem. In fact, my usb cable between my computer and my arduino/quadcopter is too short ! So I have to w...

Mini quadcopter Eachine e55

Image
Few weeks ago I got an mini quadcopter Eachine e55 for the Father Day. After few flies, I bought 5 batteries on banggood. Now i can play with my quadcopter for 1 hour. It is fine. I use my smartphone to control it over wifi. It is easiest to control than the rc control (I am still a beginner) But two days ago I broke a motor... I found no help on the web how to repair it. So I decided to disassemble myself my Eachine e55. And I made my first youtube video to explain how to :  Some pictures Now I am waiting my motor order from banggood. I will receive it at the end of july

Quadcopter - What is wrong ?

Last 2 days I made few tests with motors ON All tests confirm my previous vitual tests . But reality is not virtual and the quadcopter does not do what I thought ! As in my    previous vitual tests , fo r the first test, I tilted  my platform  in front and start the quadcopter with motors ON. I  thought the lower side will raise to go and stay in horizontal position. In fact, the lower side raised as expected but it did not stop to raise when it got horizontal position. It raised again and then the quadcopter turn over the other side.... Considering another little problem which is sometimes at startup only 3 of 4 motors starts normally. I suspect pigpio library not to do the job. Is this libray able to send PWM signal for all 4 motors ? Just remimber this is not a hardware PWM signal.... So today,.I don't know where to search...  I am a little desperate...

Indoor Test - Pitch and Roll computation

Image
I have written my first algorithm to compute pitch and roll. So I made few tests to check it. Pitch shows if quadcopter tilt front (pitch is positive) or tilt back (pitch is negative) Roll shows if quadcopter tilt left (roll is positive) or tilt right (roll is negative) Determining pitch and roll is very important to control motors and get a stable flying quadcopter. For example, if quadcopter tilt front pitch will be positive. So, to get a stable quadcopter, we will need to increase front motors speed and decrease back motors speeds To do this, I found help on this page . It use acceleration in the computation.to correct read values from the sensor MPU-6050. All tests were virtual test with motors OFF For the first test, I tilted my platform in front, then I raise it to horizontal and then let it down Here is values read and used to compute pitch qay quadcopter acceleration Y read from sensor MPU-6050 qrx quadcopter ...