How can i control a drone using HC-05?

Hello People,

I have been working on this project for a long time. I have built a fully flyable drone this summer using Arduino UNO.

Here is a video of my Drone flying: Arduino Drone - YouTube

When landing, the drone was shaking right and left. That is because the battery was dying. The Arduino UNO consumed lot of the 2200mAh battery. I tried to fly it twice and at the second time the battery died.

Anyway that is not the concerning question. The real question is how to connect a HC-05 module and control the drone using my bluetooth from an android app. I do not want to use the radio transmitter and receiver to control it.

I wanted to know if there are any useful topics or books, which can help me control my drone using the HC-05 Bluetooth module bluetooth?

I attached the code with this post. Honestly, I was not the person who wrote the code. I found it online. However, I am interested in learning about bluetooth. So why not do it on a drone?

First you have to go through those:

  1. setup.ino

  2. esc_calibrate.ino

3 Finally you can download the Flight_controller.ino sketch.

If you have any knowledge on controlling a drone using an android phone please help. I want to learn how to write a code to control stuff using bluetooth. Thank you.

setup.ino (39.6 KB)

esc_calibrate.ino (38.5 KB)

Flight_controller.ino (40.3 KB)

how to connect a HC-05 module and control the drone using my bluetooth from an android app. I do not want to use the radio transmitter and receiver........why not do it on a drone?

An HC-05 has a useful range of 10m. This does not seem very ambitious for use with drone, and could get expensive.

Hello Nick,

Thank you for the good observation. I was thinking of building this drone for kids at home. When I am able to do that then I can add the ultrasonic distance sensor to make the drone safe and not hit any wall and crash.

This video is what motivated me to start working on this: Bluetooth controlled drone quadcopter with Android Smartphone Homemade - YouTube

As you can see the guy is using the phone's internal gyro to control the drone, which is fascinating.

If you want to use Bluetooth to transmit data then the examples in Serial Input Basics should be useful. The technique in the third example will be the most reliable. It would also be wise to send data at a regular interval - perhaps 5 times per second - even if it has not changed. That way if no message comes the drone can tell if there is a problem with the communications.

For a longer range you might like to consider using nRF24L01+ transceivers. They are cheap and very effective. This Simple nRF24L01+ Tutorial may be of interest.

...R