Using an Arduino Nicla Vision as a drone flight controller | Arduino Blog

Drone flight controllers do so much more than simply receive signals and tell the drone which way to move.They’re responsible for constantly tweaking the motor speeds in order to maintain stable flight, even with shifting winds and other unpredictable factors.For that reason, most flight controllers are purpose-built for the job.

But element14’s Milos Rasic was building his own drone from scratch and found that the Arduino Nicla Vision board makes a great flight controller.To perform that critical job of keeping the drone stable, the flight controller needs precises information about the orientation of the drone and any movement in three-dimensional space.Luckily, the Nicla Vision has an integrated six-axis motion sensor that is perfect for the job.

It has also a powerful STM32H7 microcontroller, a built-in camera for machine vision and learning tasks, onboard Wi-Fi and Bluetooth connectivity, and more.And because it is very small (22.86×22.86mm) and very light, it is a good choice for a drone.Rasic designed and made the entire drone from zero, using 8520 brushed DC motors and a 3D-printed frame.

That is cool, but it isn’t uncommon.The Nicla Vision-based flight controller is what stands out the most.Rasic developed a custom PCB for the Nicla Vision that acts like a breakout board and contains a few other useful components, such as for regulating and boosting power.

But it didn’t need much, as the Nicla Vision already has most of the necessary hardware.  While he could have turned to existing flight controller firmware, Rasic chose to develop his own and that is the most impressive part of this project.That necessitated the creation of three PID (proportional-integral-derivative) controller algorithms for balancing pitch, roll, and yaw.Those work with control inputs to let the drone hover and move stably.

The control signals come from a PC over Wi-Fi, with the pilot providing input through a USB flight stick.The drone isn’t yet flying well, as PID tuning is a challenge for even the most experienced drone builders.But the foundation is there for Rasic to build on.


Read More
Related Posts