Arduino Test





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.

Résultat de recherche d'images pour "arracher cheveu"


So I decided to test my algorithm using Arduino beacuse it has 4 hardware pwm pins.
I bought Arduino Uno.


Résultat de recherche d'images pour "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 wait for a longer cable to test motors.



Commentaires

Posts les plus consultés de ce blog

Attiny13A sleep mode

Sensor Si7021 - Humidity and Temperature