Foreword:
I used to want to own a drone and thought it was cool. After I came into contact with OpenHarmony, I always wanted to build an OpenHarmony drone.
However, I have always been procrastinating, from 21 to 23, hahaha~~ I
spent some time on the weekend recently to adapt the drone to OpenHarmony to see the effect.
OpenHarmony open source Hongmeng drone project is here
1. First find a drone hardware
The one I'm looking for is an STM32 chip platform, with batteries and sensors. I searched online for a long time, and my eyes were dazzled. I was afraid that the one I bought would not be used, or that it would not be able to adapt to it all the time.
2. Based on OpenHarmony system adaptation
It took a little time to debug the transplantation of drone-related algorithms and codes on the OpenHarmony system, but it was still relatively smooth.
3 Compile the drone project
4 Burn firmware
Burn using DAP:
You can watch the effect video here: Effect video