top of page

Ranch Family Chat

Public·10 Ranch Family

How to Configure Arduino with HC-05 (ZS-040) Bluetooth Module in AT Mode



How to Configure Arduino with HC-05 (ZS-040) Bluetooth Module in AT Mode




In this tutorial, we will learn how to use the HC-05 (ZS-040) Bluetooth module with Arduino to communicate wirelessly with other devices. The HC-05 module is a popular and low-cost Bluetooth device that can operate in two modes: data mode and AT mode. Data mode is the default mode, where the module acts as a serial bridge between the Arduino and another Bluetooth device. AT mode is a special mode, where the module can receive commands to change its settings, such as the name, password, baud rate, etc.


To enter AT mode, we need to connect the HC-05 module to the Arduino in a specific way and send some commands through the serial monitor. In this tutorial, we will use a breadboard, some jumper wires, a 5V power supply, and a voltage divider circuit to connect the HC-05 module to the Arduino. We will also use the SoftwareSerial library to create a virtual serial port for the module.


Arduino with HC-05 (ZS-040) Bluetooth module – AT MODE


Download Zip: https://www.google.com/url?q=https%3A%2F%2Fbytlly.com%2F2tHfAg&sa=D&sntz=1&usg=AOvVaw0aRQcrn7zb9cRznpP-hYXV



Step 1: Connect the HC-05 Module to the Arduino




The HC-05 module has four pins: VCC, GND, TXD, and RXD. VCC and GND are used to power the module with 5V. TXD and RXD are used to transmit and receive data between the module and the Arduino. However, there is a problem: the HC-05 module uses 3.3V logic levels for its TXD and RXD pins, while the Arduino uses 5V logic levels for its digital pins. This means that we cannot directly connect the TXD pin of the module to the RX pin of the Arduino, or vice versa, because it may damage the module or the Arduino.


To solve this problem, we need to use a voltage divider circuit to lower the voltage from 5V to 3.3V on the TX pin of the Arduino. A voltage divider circuit consists of two resistors connected in series between two voltage sources. The output voltage is taken from the junction of the two resistors. The formula for calculating the output voltage is:


In our case, we want Vout to be 3.3V and Vin to be 5V. We can use any two resistors that satisfy this equation, but a common choice is to use a 1kÎ resistor for R1 and a 2kÎ resistor for R2. This gives us:


This is close enough to 3.3V for our purpose.


Now that we have our voltage divider circuit ready, we can connect it to the TX pin of the Arduino and the RXD pin of the HC-05 module. We also need to connect the RX pin of the Arduino to the TXD pin of the HC-05 module directly, since we don't need to lower the voltage from 3.3V to 5V. Finally, we need to connect the VCC and GND pins of the HC-05 module to a 5V power supply.


The following diagram shows how to connect everything on a breadboard:


Note that we are using pins 10 and 11 on the Arduino as our virtual serial port for the HC-05 module. You can use any other two pins that support SoftwareSerial, but make sure to change them in your code accordingly.


Step 2: Upload Code to Arduino




The next step is 0efd9a6b88


https://www.goredstatebystate.com/forum/untitled-category-1/soal-soal-tes-masuk-kedokteran-umy-tips-dan-trik-sukses-lolos-seleksi

https://www.scooterlock.ch/group/mysite-200-group/discussion/f15146fd-d060-44d9-b817-35f38cfb1c9b

https://www.fitcityclub.com/group/gear-accessories/discussion/b431bc8f-e8e5-46ac-8e1e-8febe39bc0e2

  • About

    This is a place to connect with all of the Ranch Family! Mak...

    bottom of page