0% found this document useful (0 votes)
49 views

Arduino Lab Manual - Expt5

Uploaded by

prajwalgowda697
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

Arduino Lab Manual - Expt5

Uploaded by

prajwalgowda697
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Arduino & Raspberry PI Based Project – BEEL456D

THE OXFORD COLLEGE OF


ENGINEERING

LAB MANUAL
(2023 – 2024)
BEEL456D
ARDUINO AND RASPBERRY
PI BASED PROJECT
IV Semester
E&E Engineering
Name: _____________________________________________
U S N: _____________________________________________

1
Arduino & Raspberry PI Based Project – BEEL456D

Expt 5: Bluetooth Interfacing with Arduino to send Data

Aim:

To interface Bluetooth with Arduino and write a program to send sensor data to Smartphone
using Bluetooth.

Apparatus Required:

S.No Components Required Quantity


1 Arduino UNO 1
2 Bluetooth 1
3 Sensor – DHT11 1

Theory:

Arduino:
Arduino is an open-source, board that has a Microchip ATmega328P microcontroller on it.
This microcontroller has a set of Digital & Analog input and output pins. The operating voltage
of the board is 5V. It has 14 digital I/O pins & 6 Analog input pins. The clock frequency of the
microcontroller is 16 MHz’s
Bluetooth Module HC – 05:
HC-05 is a Bluetooth module which is designed for wireless communication. This module can
be used in a master or slave configuration.

Bluetooth serial modules allow all serial enabled devices to communicate with each other
using Bluetooth.

It has 6 pins,

1. Key/EN: It is used to bring Bluetooth module in AT commands mode. If Key/EN pin is


set to high, then this module will work in command mode. Otherwise by default it is in data
mode. The default baud rate of HC-05 in command mode is 38400bps and 9600 in data
mode.

HC-05 module has two modes,

1. Data mode: Exchange of data between devices.

2. Command mode: It uses AT commands which are used to change setting of


HC-05. To send these commands to module serial (USART)
port is used.

2. VCC: Connect 5 V or 3.3 V to this Pin.

3. GND: Ground Pin of module.

2
Arduino & Raspberry PI Based Project – BEEL456D

4. TXD: Transmit Serial data (wirelessly received data by Bluetooth module transmitted out
serially on TXD pin)

5. RXD: Receive data serially (received data will be transmitted wirelessly by Bluetooth
module).

6. State: It tells whether module is connected or not.


DHT11:

The DHT11 is a basic, low cost digital temperature and humidity sensor.

 DHT11 is a single wire digital humidity and temperature sensor, which provides
humidity and temperature values serially with one-wire protocol.
 DHT11 sensor provides relative humidity value in percentage (20 to 90% RH) and
temperature values in degree Celsius (0 to 50 °C).
 DHT11 sensor uses resistive humidity measurement component, and NTC
temperature measurement component.

Block Diagram:

Sensor Arduino
DHT11 Bluetooth Smart Phone

Hardware Connections:

Bluetooth Vcc to Arduino 5V pin


Bluetooth Gnd to Arduino Gnd pin
Bluetooth TXD to Arduino RXD pin
Bluetooth RXD to Arduino TXD pin
DHT11 sensor Data pin to Arduino A0 Pin
DHT11 Sensor Vcc Pin to Arduino 3.3 V pin
DHT11 Sensor Gnd Pin to Arduino Gnd Pin

3
Arduino & Raspberry PI Based Project – BEEL456D

Program:
#include <dht.h>
#define dhtpin A0
dht DHT;
void setup() {
Serial.begin(9600);
}
void loop() {
delay(2000);
DHT.read11(dhtpin);
Serial.println("Humidity:");
Serial.print(DHT.humidity);
Serial.println("Temperature:");
Serial.print(DHT.temperature);
delay(2000);
}
Conclusion:

The Arduino Bluetooth project provides a hands-on introduction to microcontrollers, hardware


interfaces, and programming ideas. It serves as a foundation for more sophisticated projects
and allows you to experiment with numerous Arduino features and capabilities.

You might also like