Model Scenery Tutorials

A Comprenshive Modeler's And Model Railroader's Guide

model scenery center

How To Change An HC-05 Bluetooth Module Name & And MAC Address

How To Change An HC-05 Bluetooth Module Name And MAC Address Using An Arduino Board

change bluetoothname

What’s In This Page

Instructions in video and text showing how to change the name in a Bluetooth Module HC-05 using an Arduino Board.

Page update in progress.

This is a necessary process that must be followed to use an android phone or table to control multiple circuits and, in particular, digitally control multiple DC locomotives using the BlueTrax DC control system. The system components are here and you can read about the BlueTrax system here.

If you are using a phone, at the bottom of the page there are links to many  supplies for modelers. Otherwise those links are in the sidebar to the right. You can also find other information  by using the search function that is in the navigation bar above.

The Latest Information

Anything new and page updates are posted on Twitter (now X) and Facebook.

It is easy to keep up with the latest by following us on either of them.

 

AT Command Summary

AT – Returns OK to confirm in AT mode

AT+NAME – Returns current name

AT+NAME=DESIREDNAME  – Changes name

AT+RESET – removes HC-05 from AT mode

ATT+ADDR? – Returns Current Address

Att+ADDR=DESIREDADDRESS – Must be in format ____.__.______

Step By Step Procedure

Make the following connections:

VCC pin of the Bluetooth module with the 3.3 volt pin of  the Arduino board.

Ground pin of the Bluetooth module with the ground pin of the Arduino board.

RX pin of the HC-05 module with the RX pin of the Arduino board.

TX pin of the HC-05 module with the TX pin of the Arduino board.

Establish Communication Between The Hc-05 And The Arduino board.

But before connecting the Arduino to the computer, press the button on the Bluetooth module and continue pressing it while you connect the Arduino to the computer. The button enables the the module and it enters the AT mode.

When connected to the computer the Led on HC-05 module will  first blink rapidly and then slowly. When it slows, release the button.

Open the Arduino IDE.

Open the serial monitor.

Change the baud rate to “38400”.

Select the “both NL & CR”.

NOTE

All commands must be in Capital Letters.

Confirm that the  HC-05 module is in AT mode and ready to accept commands, write “AT” and press enter.

If you see “OK” on the screen, the module is in AT mode.

But if you do not see “OK”, the module is not in AT mode and you have to disconnect from the computer and go through the connection routine again.

Changing The Name

To check the current name of the module write, “AT+NAME” and then press enter.

The current name of the module will be displayed.

To Change The Name

Type AT+NAME = THENAMETHATYOUWANT and press Enter  – No spaces

To Check What You Have Done

Type “AT+NAME” and then press enter.

The new name should be displayed.

To Exit The AT Mode

Type “AT+RESET” and press enter.

HC-05 Is Ready To Use

Disconnect all the wires.  The module is ready to use with the new name.

Video Showing This Done

Video in Editing

 

Feedback

Your questions and comments help us clarify and upgrade the information presented.  Even if you find this helpful, please tell us.

Please let us know if this page has been helpful  And if you have questions or suggestions, use this spam free system.

Or use the green WhatsApp button that is to the right.

 

Scroll to top