Drone with Raspberry Pi Pico W and arduino ide

Hi

I made the quadcopter drone below for my sons :
https://picow-copter-docs.readthedocs.io/en/latest/

Code : https://github.com/anish-natekar/PicoW_ ... roller.ino
(I thank a lot the author)
Using the android app udpjoystick, the drone does not take off properly when I increase the throttle ... it always ends up turning around.
I used no smd version of the components (resistors, diodes and mosfet). I use an external power supply (same problem with a 3.7V 150 mAh lipo).
I checked that the propellers are at their good places (1 CW propeller for CW, 1 CCW propeller for CCW, ...). The direction of the motors is ok.
In the code, I have just changed the GPIOs.
I am out of ideas to check things ... and I am not an expert of drone.



Thanks for any advice.

Karim

The video shows the copter rolling left if the wires are considered the rear.

Either the MPU is not reporting the roll correctly or the PID is configured "backwards" (mixing up roll-left and roll-right) or a million things in between.

Thanks !
The front is where the usb port of the RP pico is.
I will try to change the MPU but I see values coming from it changing

Changing values is good while under power.

But, if "dave" is changing and your program thinks "sam" is changing... pi turnover. Verify your code knows which way is + which way is - on all axes (axis plural).

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.