Book Image

Building Smart Drones with ESP8266 and Arduino

By : Syed Omar Faruk Towaha
Book Image

Building Smart Drones with ESP8266 and Arduino

By: Syed Omar Faruk Towaha

Overview of this book

With the use of drones, DIY projects have taken off. Programmers are rapidly moving from traditional application programming to developing exciting multi-utility projects. This book will teach you to build industry-level drones with Arduino and ESP8266 and their modified versions of hardware. With this book, you will explore techniques for leveraging the tiny WiFi chip to enhance your drone and control it over a mobile phone. This book will start with teaching you how to solve problems while building your own WiFi controlled Arduino based drone. You will also learn how to build a Quadcopter and a mission critical drone. Moving on you will learn how to build a prototype drone that will be given a mission to complete which it will do it itself. You will also learn to build various exciting projects such as gliding and racing drones. By the end of this book you will learn how to maintain and troubleshoot your drone. By the end of this book, you will have learned to build drones using ESP8266 and Arduino and leverage their functionalities to the fullest.
Table of Contents (11 chapters)

Types of motors used for drones

There are a few types of motors that are use to build drones. But as the drone needs to be thrust in the air to float, we should use some powerful motors. The cheap, lightweight, small, and powerful motors used in drones are Brushless DC motors (BLDC). For small drones, we do not use BLDC motors, but instead use small DC gear motors.

Several types of speed controllers

You cannot control the speed of motors of your drone unless you use speed controllers. They enable you to control the voltage and current of the motors and hence control the speed, which is the first priority to move the drone one place to another, after floating in the air. You need to increase and decrease the speed of motor(s) to move the drone forward, backward, left, or right.

The connection between the controller board of the drone and ESC and the battery/power distribution board will be shown in Chapter 2, Assembling Your Drone:

Refer to the following circuit diagram:

Flight control board

This is one of the most important things to control the drone from the ground. There are a number of flight control boards on the market. Some of them are open source and some of them are not. The following list has the most famous and top-rated flight controllers:

  • KK 2.0
  • CC3D
  • Naze32
  • KISS
  • ArduPilot
  • Vector
  • 3DR Pixhawk
  • DJI Nava M
  • LUX flight controller
  • DJI A3

In this book, we will use ArduPilot, as it is cheap and it is best for copters. It also covers our book title. The following picture of some flight controllers.

The ArduPilot is one of the best flight controllers for drones because of the following reasons:

  • It has a free, open source autopilot framework supporting different types of drones
  • It supports hundreds of 3D waypoints
  • It allows you to do the autonomous take-off, landing, and camera control
  • It has 4 MB onboard data-logging memory
  • It has a built-in hardware fail-safe processor
  • It has full mission scripting
  • It is really simple to set up

The following picture is an ArduPilot:

We will discuss more about the ArduPilot later.