Devices & Components
Arduino Uno Rev3
flight controller (CC3D)
Drone frames,ESC ,battery 11.1V ,Brushless DC motor
DHT11 Temperature & Humidity Sensor (4 pins)
Bluetooth Low Energy (BLE) Module (Generic)
Software & Tools
drone
Arduino IDE
Project description
Code
interface of Bluetooth module
arduino
this program will show simple led on and off operation using Arduino Uno and Bluetooth
1/* simple program to control a LED on pin 13 of arduino using a bluetooth module 2*/ 3char data = 0; //Variable for storing received data 4void setup() 5{ 6 Serial.begin(9600); //Sets the baud for serial data transmission 7 pinMode(13, OUTPUT); //Sets digital pin 13 as output pin 8} 9void loop() 10{ 11 if(Serial.available() > 0) // Send data only when you receive data: 12 { 13 data = Serial.read(); //Read the incoming data & store into data 14 Serial.print(data); //Print Value inside data in Serial monitor 15 Serial.print("\ 16"); 17 if(data == '1') 18 digitalWrite(13, HIGH); //If value is 1 then LED turns ON 19 else if(data == '0') 20 digitalWrite(13, LOW); //If value is 0 then LED turns OFF 21 } 22}
Main Code link
Full Code contains complete information ( updated link 21-07-2022 )
interface of Sensors DHT11
arduino
using this program we can display humidity and temperature in the Serial Monitor
1#include<Servo.h> 2#include <dht.h> 3dht DHT; 4#define DHT11_PIN 5 10 6String voice; 7void setup() 8{ 9Serial.begin(9600); 10} 11void loop() 12 13{ 14int chk =DHT.read11(DHT11_PIN); 15Serial.print("Temperature = "); 16Serial.println(DHT.temperature); 17Serial.print("Humidity 18 ="); 19Serial.println(DHT.humidity); 20delay(1000); 21}
interface of Sensors DHT11
arduino
using this program we can display humidity and temperature in the Serial Monitor
1#include<Servo.h> 2#include <dht.h> 3dht DHT; 4#define DHT11_PIN 10 5String voice; 6void setup() 7{ 8Serial.begin(9600); 9} 10void loop() 11{ 12int chk =DHT.read11(DHT11_PIN); 13Serial.print("Temperature = "); 14Serial.println(DHT.temperature); 15Serial.print("Humidity ="); 16Serial.println(DHT.humidity); 17delay(1000); 18}
Downloadable files
interface of Sensors
The DHT11 measures relative humidity. Relative humidity is the amount of water vapor in air vs. the saturation point of water vapor in air. At the saturation point, water vapor starts to condense and accumulate on surfaces forming dew.The DHT11 uses just one signal wire to transmit data to the Arduino interface diagram is shown in above fig. Using DHTLib library. It has all the functions needed to get the humidity and temperature readings from the sensor which is shown below program.
interface of Sensors

Android App
An App to Control the Drone Using Bluetooth ( updated 21-07-2022 )
Android App
interface of Bluetooth module
here we use a Bluetooth module (HC-05) for bidirectional communication purpose, for turn ON the drone and to receive the sensor data's. two resistors are used as a voltage divider to step down the 5 volts to 3.3 volts so that Bluetooth can receive the data from the Arduino Uno. The circuit is so simple and small , there is only few connection to be made Arduino Pins Bluetooth Pins RX (Pin 0) ———-> TX TX (Pin 1) ———-> RX 5V ———-> VCC GND ———-> GND
interface of Bluetooth module

Android App
An App to Control the Drone Using Bluetooth ( updated 21-07-2022 )
Android App
Interface of Arduino Uno with flight controller
The flight controller (Cc3d) will provides 5 input control pins which gives the 4 movement actions to the drone they are throttle, roll, yaw, and pitch. These pins need a PWM signal to work, so we will generate the PWM signal using Arduino Uno. By proper planning and sketch of a particular are we can program the Arduino by calling function with delay.
Interface of Arduino Uno with flight controller

interface of Bluetooth module
here we use a Bluetooth module (HC-05) for bidirectional communication purpose, for turn ON the drone and to receive the sensor data's. two resistors are used as a voltage divider to step down the 5 volts to 3.3 volts so that Bluetooth can receive the data from the Arduino Uno. The circuit is so simple and small , there is only few connection to be made Arduino Pins Bluetooth Pins RX (Pin 0) ———-> TX TX (Pin 1) ———-> RX 5V ———-> VCC GND ———-> GND
interface of Bluetooth module

interface of Bluetooth module
here we use a Bluetooth module (HC-05) for bidirectional communication purpose, for turn ON the drone and to receive the sensor data's. two resistors are used as a voltage divider to step down the 5 volts to 3.3 volts so that Bluetooth can receive the data from the Arduino Uno. The circuit is so simple and small , there is only few connection to be made Arduino Pins Bluetooth Pins RX (Pin 0) ———-> TX TX (Pin 1) ———-> RX 5V ———-> VCC GND ———-> GND
interface of Bluetooth module

Interface of Arduino Uno with flight controller
The flight controller (Cc3d) will provides 5 input control pins which gives the 4 movement actions to the drone they are throttle, roll, yaw, and pitch. These pins need a PWM signal to work, so we will generate the PWM signal using Arduino Uno. By proper planning and sketch of a particular are we can program the Arduino by calling function with delay.
Interface of Arduino Uno with flight controller

interface of Sensors
The DHT11 measures relative humidity. Relative humidity is the amount of water vapor in air vs. the saturation point of water vapor in air. At the saturation point, water vapor starts to condense and accumulate on surfaces forming dew.The DHT11 uses just one signal wire to transmit data to the Arduino interface diagram is shown in above fig. Using DHTLib library. It has all the functions needed to get the humidity and temperature readings from the sensor which is shown below program.
interface of Sensors

Comments
Only logged in users can leave comments