Arduino drone

A drone has no rudder and no wings: it climbs, turns and balances only by changing the speed of its four motors. Arduino drives each motor through a speed controller (ESC).

The mini drone is fixed to a stand, so it rises, tilts and turns but cannot fly away. Turn with diagonal motor pairs, read the tilt from the gyroscope and hold balance with a P-controller.

In this lab

  • brushless motor and ESC
  • climbing and turning
  • the gyroscope
  • balance with a P-controller

What you learn

A drone is a flying robot with four motors. The Arduino drives it: it sets each motor's speed through a speed controller (ESC) and reads the drone's tilt from a gyroscope. A drone has no rudder and no wings — it climbs, turns and balances only by changing motor speeds. For safety the mini drone is fixed to a test stand: it can rise 4.5 cm, tilt and turn, but cannot fly away.

Tasks

  1. Control a brushless motor through a speed controller
  2. Lift off and land on four motors
  3. Turn with diagonal pairs
  4. Read the tilt from a gyroscope
  5. Keep balance with a P-controller

What you can build

  • Auto landing — Press a button and the motors slow gently so the drone lands softly.
  • Potentiometer throttle — Turning the pot changes all four motor speeds together.
  • Tilt alarm — If the tilt goes over 15° the buzzer sounds.
  • Two-axis balance — Add a P-controller for forward-back tilt too.

Virtual Lab › Robotics

Related labs

  • Robotics basics
  • Arduino
  • Arduino LED
  • Arduino sensors
  • Arduino servo
  • Arduino thermometer