ablab

Hello Readers, welcome to my Blog - A Blog For Bloggers By A Blogger. I'm Arun, an entrepreneur Blogger from India.

HC-05 Bluetooth Module Interfacing with ATmega32

41825
9
Mark as Favourite

In this project, we will learn How to interface a HC-05 Bluetooth Module with AVR ATmega32 microcontroller. Here, we will connect the HC-05 Bluetooth and Android Mobile through Bluetooth and we will send data from HC-05 Bluetooth to Android Mobile.

The communication between HC-05 Bluetooth Module and ATmega32 microcontroller takes place through UART serial communication protocol. The ATmega32 microcontroller will send the string “ABLab Solutions” first and then “www.ablab.in” to the HC-05 Bluetooth Module. The HC-05 Bluetooth Module transmits the received strings to the Android Mobile through bluetooth and the Android mobile displays the received strings in the Bluetooth Terminal App window. After sending each string, the microcontroller sends the carriage return and new line character to HC-05 Bluetooth Module. The carriage return and new line are sent to display “ABLab Solutions” and “www.ablab.in” in two different lines in the Bluetooth Terminal App. The ASCII value of carriage return is 0X0D and new line is 0x0A.

Softwares Required

Hardwares Required

Name Quantity
AVR Trainer Board-100 with ATmega32 1pc
AVR USB Programmer 1pc
12V, 1A DC SMPS Adaptor 1pc
HC-05 Bluetooth Board 1pc
1 to 1 Connector-Female to Female 4pc
10 to 10 FRC Female to Female Connector 1pc

Circuit Diagram

Video

Connection Guide

The step-by-step connection guide for HC-05 Bluetooth Module Interfacing with ATmega32 is as follows

  • Steps - 1 ( 0f 11 )

    Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

  • Steps - 2 ( 0f 11 )

    Connect the VCC and GND pins of HC-05 Bluetooth Module with the 5V(VCC) and GND header pins of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

  • Steps - 3 ( 0f 11 )

    Connect the TXD and RXD pins of HC-05 Bluetooth Module with PD0 and PD1 pins of PortD header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

  • Steps - 4 ( 0f 11 )

    Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

  • Steps - 5 ( 0f 11 )

    Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

  • Steps - 6 ( 0f 11 )

    Download the HC-05 Bluetooth Module Interfacing ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

  • Steps - 7 ( 0f 11 )

    Switch on the power with the help of Power Switch of AVR Trainer Board-100.

  • Steps - 8 ( 0f 11 )

    Pair the HC-05 Bluetooth Module with Android Mobile. Default PIN of HC-05 is 1234.

  • Steps - 9 ( 0f 11 )

    Open the Bluetooth Terminal App in the Mobile and Connect the HC-05 Bluetooth Module with it.

  • Steps - 10 ( 0f 11 )

    Reset the AVR Trainer Board-100 using its Reset switch.

  • Steps - 11 ( 0f 11 )

    See the output in the Bluetooth Terminal Window.

  • Insert the DC Pin of 12V, 1A DC Adapter to the DC Socket of AVR Trainer Board-100.

    Steps - 1 ( 0f 11 )

  • Connect the VCC and GND pins of HC-05 Bluetooth Module with the 5V(VCC) and GND header pins of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

    Steps - 2 ( 0f 11 )

  • Connect the TXD and RXD pins of HC-05 Bluetooth Module with PD0 and PD1 pins of PortD header of AVR Trainer Board-100 respectively with 1 to 1 Connectors.

    Steps - 3 ( 0f 11 )

  • Connect the ISP header of AVR Trainer Board-100 with AVR USB Programmer header of AVR USB Programmer with a 10 to 10 FRC Female Connector.

    Steps - 4 ( 0f 11 )

  • Connect the AVR USB Programmer to the PC/Laptop's USB Port directly or with the help of USB AM-FM Cable.

    Steps - 5 ( 0f 11 )

  • Download the HC-05 Bluetooth Module Interfacing ATmega32 Hex file to AVR Trainer Board-100 with the help of SinaProg Hex downloader and AVR USB Programmer.

    Steps - 6 ( 0f 11 )

  • Switch on the power with the help of Power Switch of AVR Trainer Board-100.

    Steps - 7 ( 0f 11 )

  • Pair the HC-05 Bluetooth Module with Android Mobile. Default PIN of HC-05 is 1234.

    Steps - 8 ( 0f 11 )

  • Open the Bluetooth Terminal App in the Mobile and Connect the HC-05 Bluetooth Module with it.

    Steps - 9 ( 0f 11 )

  • Reset the AVR Trainer Board-100 using its Reset switch.

    Steps - 10 ( 0f 11 )

  • See the output in the Bluetooth Terminal Window.

    Steps - 11 ( 0f 11 )

Downloads

HC-05 Bluetooth Module Interfacing with ATmega32
  • 919 downloads 0 Kb

Post a Comment

    • SagorSaha
      did you add any library file (ex. .c .h file ) in this project?
      2017-09-29 09:21:15
      Reply
      • Arun Kumar Garg

        no library file is added in the project

        2017-10-01 12:15:41
        Reply
    • pankajlade
      can u send the code of above project
      2017-09-05 11:46:56
      Reply
      • Arun Kumar Garg

        The code is now available for download.

        2017-09-07 11:58:14
        Reply
        • ALTHAF
          Not getting the code file.
          2017-09-13 16:02:26
          Reply
          • Arun Kumar Garg

            Go to My downloads under My Account, there all your donloads are there.

            2017-09-13 19:01:28
            Reply
    • SanjeevanSingha
      How to download it?
      2017-12-16 15:26:24
      Reply
      • Arun Kumar Garg

        Register in the website and then download the code. Then go to my download under your profile page. there u will find all your downloads.

        2017-12-16 15:45:22
        Reply
    • AkashSurana
      will it also work for HC 06?
      2018-02-02 14:36:58
      Reply