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

interface hc-05 with pic controller

The document outlines a laboratory exercise focused on interfacing the HC-05 Bluetooth module with the PIC16F877A microcontroller in both Data and Command modes. It provides an overview of the HC-05's features, applications, and operational theory, emphasizing its role in wireless communication for embedded systems and IoT projects. The conclusion highlights the HC-05's effectiveness and versatility in various applications, including remote control and data exchange.

Uploaded by

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

interface hc-05 with pic controller

The document outlines a laboratory exercise focused on interfacing the HC-05 Bluetooth module with the PIC16F877A microcontroller in both Data and Command modes. It provides an overview of the HC-05's features, applications, and operational theory, emphasizing its role in wireless communication for embedded systems and IoT projects. The conclusion highlights the HC-05's effectiveness and versatility in various applications, including remote control and data exchange.

Uploaded by

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

MTE-433L Embedded Systems Lab 09/01/25

Lab#13

Interface HC-05 with PIC16F877A


Objective:
To interface HC-05 with PIC16F877A in Data mode and Command mode.
Components:
 PIC16F877A
 HC-05
Theory:
Introduction to HC-05:

Overview of the HC-05: The HC-05 serves as a widely utilized Bluetooth module for
untethered communication within embedded frameworks and Internet of Things (IoT) projects.
Compliant with Bluetooth version 2.0, it accommodates both master and slave roles, offering
flexibility across various applications. This module interfaces with microcontrollers via a UART
(Universal Asynchronous Receiver/Transmitter) connection, ensuring effortless integration with
devices like Arduino, PIC, and STM32. Operating at a standard baud rate of 9600 bps, it
provides a communication span of up to 10 meters in open environments. With user-friendly AT
commands, the HC-05 can be configured for wireless data exchanges, device synchronization,
and establishing serial connections between Bluetooth-compatible devices, making it ideal for
areas such as home automation, robotics, and wireless monitoring systems.

Distinctive Features of HC-05:

 Bluetooth V2.0+EDR (Enhanced Data Rate): The HC-05 adheres to Bluetooth V2.0
with EDR, allowing more rapid data transmission compared to previous Bluetooth
iterations.
 Master/Slave Flexibility: It operates in either master or slave mode. As a master, it
initiates connections with other Bluetooth devices; as a slave, it responds to connection
inquiries.
 Operational Range: Typically, the HC-05 covers a range of up to 10 meters, influenced
by environmental conditions and obstructions.
 Serial Communication (UART): Communicates with microcontrollers using UART,
requiring only two wires (TX and RX) for data transmission.
 Energy Efficiency: Designed for low power usage, making it suitable for battery-
powered gadgets.
 Support for SPP (Serial Port Profile): Facilitates establishing a serial link with other
Bluetooth devices, such as smartphones or other microcontrollers.
 Configurable Baud Rate: Users can set various baud rates (default is 9600) depending
on the specific requirements.

1 UW-21-MTS-BSC-007
MTE-433L Embedded Systems Lab 09/01/25

Applications of HC-05:

 Remote Control Systems: Used for remote management of devices such as motors,
robots, or home appliances via Bluetooth from a smartphone or microcontroller.
 Wireless Data Exchange: Enables data communication between microcontrollers,
sensors, and computers for diverse IoT and automation projects.
 Bluetooth-Based Communication: Employed in setups requiring wireless interaction
between embedded devices or for interfacing microcontrollers with smartphones or
tablets.
 Robot Communication: Utilized in robotics for the remote control of robots and
vehicles, facilitating wireless commands and feedback.
 Home Automation: Integral to smart home systems, managing lights, security systems,
and other household devices via Bluetooth control.

Task#01 (Code):

Write a code to interface the HC-05 Bluetooth Module to PIC16F877A in Data mode and
Command mode.

2 UW-21-MTS-BSC-007
MTE-433L Embedded Systems Lab 09/01/25

3 UW-21-MTS-BSC-007
MTE-433L Embedded Systems Lab 09/01/25

Proteus Simulations:

4 UW-21-MTS-BSC-007
MTE-433L Embedded Systems Lab 09/01/25

Conclusion:
During this laboratory session, we examined the integration of the HC-05 module with the
PIC16F877A microcontroller. The HC-05 stands out as an effective component for incorporating
wireless communication into various projects, attributed to its small size, Bluetooth capability,
and UART interface. Its adaptability opens up a wide array of applications, including sensor
networks, IoT initiatives, data exchange, and remote-control operations.

5 UW-21-MTS-BSC-007

You might also like