This project will share with you how to make an ESP8266 drone (this drone can climb walls) and how it works.
We all know what the function of a drone is, which is to fly. If I tell you that this drone can climb up a wall or go underwater like a submarine, you will find it a bit magical. The author says that the drone introduced below can do it!
A wall climbing project based on NodeMCU flight controller and controlled by Android app. Full details and explanation video.
I believe you will love it.
Drones require a flight controller, but we don’t have much money to buy a flight controller, what can we do? We can make our own flight controller. The author has made a very cheap flight controller using ESP8266, the link is as follows:<span>https://www.diyprojectslab.com/esp8266-drone-controller</span>
Required Parts
(Let’s first look at the main components of a drone)
- ESP8266
- MPU6050 Acc/Gyro Module
- Brushed Motor
- propeller
- 500mAh lipo3.7v
- Si2302 MOSFETs (5x)
- pencil
If you are an electronics enthusiast, you will find that you already have all the parts listed below – 🙂
Tools used
A drone needs to consist of a frame, motor, propeller, electric motor, flight controller, and battery.
Flight Controller
The flight controller (aka FC) is the brains of the aircraft. It’s a circuit board with a series of sensors on it that detect the drone’s movement, as well as the user’s commands. If you tell it to go forward, the flight controller will adjust the speed of the rear motors to make it go forward.
ESP8266 Module
To communicate with the drone we need either Bluetooth or WIFI connection so we use ESP8266 Wi-Fi module as it has built-in Wi-Fi and we can use it for communication.
ESP8266 is an open source, interactive, programmable, low-cost, simple, smart, and lowest-cost Wi-Fi hardware.
As for the drone’s flight range, tests have gotten the range to be about 70 meters, using a Samsung phone acting as a WiFi hotspot and remote controller.
MPU6050
The MPU6050 IMU, a low-cost device that contains a gyroscope and accelerometer.
We will use MPU-6050 and ESP8266 modules to make a drone.
Ironless Motor
Ironless motors are mini motors used in quadcopters and drones, these motors are ironless, that is, there is no metal core in the rotor, ironless motors can reach higher speeds with less load. These motors are suitable for micro drones , quadcopters or mini projects.
propeller
The purpose of the propellers is to generate thrust and torque to keep the drone flying.
Schematic diagram of ESP8266 drone flight controller
Schematic diagram of the receiver control module based on ESP12e (ESP8266).
Circuit Connection
Connect the circuit according to the schematic in the picture above, paying attention to the connection details of each component.
frame
The frame provides structure and rigidity, and it is where all components are mounted.
Here I chose a wooden pencil and gave it the shape of a quadcopter .
If you have a 3D printer you can print a better rack.
Assembling the drone
Here is the drone frame made of pencil, please see the photo.
To connect the motor we need to place the motor on the rack arm.
Install all motors
Two motors spin clockwise and two motors spin counterclockwise (refer to the diagram). If one motor does not spin in the correct direction, simply switch the polarity of the motors.
- Check the battery and voltage
- Check that all propellers are tightly connected.
- Check all motor mountings
Always remember to unplug the battery after flight and reinstall it before flight.
Software
It is recommended to use the Arduino IDE if you want to edit (i.e. the SSID and password of the WiFi network – Android Hotspot)
- Installing Arduino IDE
- Installing the ESP8266 Board
- Installing
<span>ESP8266WiFi.h</span>
the Library
Copy the code and modify your own WIFI SSID and password in the code (the code can be downloaded at the end of the article):
#include<Wire.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
代码太长了,为了方便阅读就不贴上了,可以在文末下载
The above <span>Drone_FInal.ino</span>
files can be downloaded in a package at the end of the article.
Open the Arduino IDE, copy the code <span>Drone_FInal.ino</span>
from it and paste it into the Arduino IDE.
Edit your network’s SSID and password in the code by editing the following two lines.
WiFi.begin("Diyprojectslab", "romeooo");
- In the Arduino IDE, go to “Tools” > ” Development Board ” > select “NODEMCU 1.0 (ESP-12E Module)”
- Go to Tools, select Port
- Change the WI-FI name and password from the above code
- Now click on the Upload button to upload the above code
- If everything goes well, you can see the blue LED on the ESP8266 start blinking every second.
Android APP setup and ESP8266 drone testing
You just need to download the App file attached to this step to your Android phone. (You can download it in a package at the end of the article)
This Android app was developed using Processing for Android App.
Original link: https://www.diyprojectslab.com/make-esp8266-drone-wallclimb-drone/