Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Smart Drones with ESP8266 and Arduino

You're reading from   Building Smart Drones with ESP8266 and Arduino Build exciting drones by leveraging the capabilities of Arduino and ESP8266

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781788477512
Length 212 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Syed Omar Faruk Towaha Syed Omar Faruk Towaha
Author Profile Icon Syed Omar Faruk Towaha
Syed Omar Faruk Towaha
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Things to Know Before You Build a Drone FREE CHAPTER 2. Assembling Your Drone 3. Preparing Your Drone for Flying 4. Building a Follow Me Drone 5. Building a Mission Control Drone 6. Building a Drone to Take Selfies and Record Videos 7. Building Prototype Drones – Gliding Drones 8. Building Prototype Drones – Racing Drones 9. Maintaining and Troubleshooting Your Drone 10. Other Books You May Enjoy

Controlling the camera gimbal using ESP8266

In this section, we will make a custom gimbal with two-servo motors that can be controlled remotely. You need to buy a Servo bracket to install the servos. You can buy a cheap one like this: https://www.aliexpress.com/item/Servo-bracket-PT-Pan-Tilt-Camera-Platform-Anti-Vibration-Camera-Mount-for-Aircraft-FPV-dedicated-nylon/32697306736.html. You will need the following things:

  • ESP8266 or NodeMCU
  • Two-servo motors (SG90 mini gear micro servo preferred)
  • 5V power supply
  • Smart phone
  • Router (for Wi-Fi connection)

Let's see how this is done:

  1. Firstly, attach the servos to the bracket. Connect the servos to the ESP8266, as follows:
  1. From the diagram, you can see that the servos are connected to the GPIO pins of the ESP8266. GPIO 0 and GPIO 2 or D3 and D4, respectively. Now you need to write code for our ESP8266 but, before that, open...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime