DSD TECH ML-HM-10

DSD TECH HM-10 Bluetooth 4.0 BLE iBeacon UART Module User Manual

Model: ML-HM-10 | Brand: DSD TECH

1. Pengenalan

This manual provides comprehensive instructions for the DSD TECH HM-10 Bluetooth 4.0 BLE iBeacon UART Module with 4PIN Base Board. This module is designed to add Bluetooth capabilities to your projects, supporting devices like iPhone 4s or later. It is compatible with Arduino UNO R3, Mega 2560, and Nano boards. Please read this manual thoroughly before use to ensure proper setup and operation.

DSD TECH HM-10 Bluetooth module with 4PIN base board

Figure 1: DSD TECH HM-10 Bluetooth 4.0 BLE iBeacon UART Module.

2. Ciri-ciri Produk

  • Low Energy: HM-10 Bluetooth 4.0 module enables Bluetooth features for your project, supporting iPhone 4s or later.
  • DSD TECH Brand 4pin Base Board: Provides convenient connections to VCC, GND, TX, and RX pins, simplifying integration with your Arduino project.
  • Petunjuk Status LED: The onboard LED lights solid when a connection is established and flashes when disconnected.
  • iBeacon Support: The module can be configured into iBeacon mode, allowing you to create your own iBeacon. It also supports Apple Notification Center Service (ANCS).
  • Vol Operasitage: Operates within a voltagjulat e 3.6V hingga 6V.
  • Kadar Baud Lalai: Default communication rate is 9600.
DSD TECH HM-10 module with clear case removed

Figure 2: HM-10 module with its protective clear case removed, showing the internal components and pins.

3. Persediaan dan Pemasangan

3.1 Pinout and Basic Wiring

The HM-10 module features a 4-pin interface for easy integration. These pins are VCC (power), GND (ground), TX (transmit), and RX (receive). When connecting to an Arduino or similar microcontroller, ensure that the TX pin of the HM-10 connects to the RX pin of the microcontroller, and the RX pin of the HM-10 connects to the TX pin of the microcontroller. The module operates between 3.6V and 6V.

DSD TECH HM-10 Bluetooth module pinout diagram

Figure 3: Pinout diagram for the DSD TECH HM-10 module, indicating RXD, TXD, GND, and VCC (3.6V-6V).

Arduino and HM-10 Bluetooth module wiring diagram with resistors

Gambar 4: Cthample wiring diagram showing the HM-10 module connected to an Arduino/MCU, including 1K and 2K ohm resistors for voltage division on the RX line if the Arduino operates at 5V.

3.2 Arduino Code Overview

To communicate with the HM-10 module from your Arduino, you will typically use the SoftwareSerial library. This allows you to use any digital pins on your Arduino as serial communication pins, which is useful if the hardware serial pins (0 and 1) are already in use or needed for other purposes (like USB communication). The code will involve:

  • Including the SoftwareSerial.h perpustakaan.
  • Defining a SoftwareSerial object, specifying the TX and RX pins (e.g., SoftwareSerial BT(3, 4); where 3 is RX and 4 is TX for the Arduino, connecting to HM-10's TX and RX respectively).
  • Setting the baud rate for the Bluetooth module (default is 9600) using BT.begin(9600); dalam persediaan() fungsi.
  • Dalam gelung() function, checking for available data from the Bluetooth module (if (BT.available())) and reading it (BT.read()).
  • Sending data to the Bluetooth module using BT.print() or BT.println().

Untuk example, you can program your Arduino to turn on an LED when it receives a specific character (e.g., '1') from the Bluetooth module and turn it off for any other character. This demonstrates basic two-way communication.

3.3 Menyambung ke PC (Windows)

To connect your HM-10 module to a Windows PC, ensure your Bluetooth module is powered up and its LED is blinking (indicating it's not yet connected). You may need to adjust your Bluetooth device discovery settings to "Advanced" instead of "Default" for the module to appear. Then, follow these steps:

  1. Pergi ke Tetapan Windows > Bluetooth & peranti.
  2. Click "Add device" and select "Bluetooth".
  3. Your HM-10 module (often appearing as "HC-06" or "HM-10") should appear in the list. Select it.
  4. If prompted for a PIN, the default PIN for HC-06 is typically "1234". For HM-10, it might be "000000" or "123456".
  5. Once connected, the LED on your HM-10 module should turn solid red.
  6. To verify the connection and identify the COM port, open Device Manager (search for it in Windows). Under "Ports (COM & LPT)", you should see "Standard Serial over Bluetooth link (COMx)" where 'x' is your assigned COM port number.
  7. In the Arduino IDE, go to Tools > Port and select the COM port identified in Device Manager. Then open the Serial Monitor. It should connect and be ready to receive commands.

3.4 Connecting to Mobile Devices (iOS & Android)

DSD TECH provides a dedicated application for testing and using the module with mobile devices. Cari untuk "DSD TECH Bluetooth" in your device's app store.

Once the app is installed and your HM-10 module is powered on (LED blinking), open the DSD TECH Bluetooth app. The app should automatically scan and display available DSD TECH devices. Select your module to connect. Upon successful connection, the module's LED will turn solid, and you can begin sending and receiving data through the app's interface.

Screenshot of DSD TECH Bluetooth app on AndroidScreenshot of DSD TECH Bluetooth app on iOS

Figure 5: Screenshots of the DSD TECH Bluetooth application interface for Android (left) and iOS (right).

4. Operasi

The DSD TECH HM-10 module operates as a UART (Universal Asynchronous Receiver-Transmitter) serial port. This means it can send and receive data serially, similar to how your Arduino communicates with a computer via USB. Once connected via PC serial monitor or the mobile app, you can send AT commands to configure the module or send custom data for your project's needs.

4.1 Arahan AT

The HM-10 module supports a set of AT commands for configuration. These commands allow you to change parameters such as the module's name, baud rate, role (master/slave), and enable features like iBeacon or ANCS. Commands are typically sent in uppercase, followed by a carriage return and newline. Some common AT commands include:

  • PADA: Tests the connection. Should return "OK".
  • AT+NAME[name]: Sets the module's name. E.g., AT+NAMEArduinoBLE.
  • AT+BAUD[value]: Sets the baud rate. E.g., AT + BAUD4 untuk 9600.
  • AT+ROLE[value]: Sets the module's role (0 for slave, 1 for master).
  • AT+ANCS1: Enables Apple Notification Center Service.
  • AT+RESET: Resets the module.

Refer to the official HM-10 datasheet for a complete list of AT commands and their parameters.

5. Penyelenggaraan

The DSD TECH HM-10 module is a low-maintenance electronic component. To ensure its longevity and optimal performance:

  • Keringkan: Avoid exposure to moisture or liquids, which can damage the electronic components.
  • Bersihkan Perlahan-lahan: If cleaning is necessary, use a dry, soft cloth. Do not use harsh chemicals or abrasive materials.
  • Tangani dengan Berhati-hati: Avoid dropping the module or subjecting it to strong impacts.
  • Storan yang Betul: Store the module in a cool, dry environment when not in use, preferably in its original packaging or an anti-static bag.
  • Voltage Pematuhan: Always ensure the operating voltage is within the specified 3.3V to 6V range to prevent damage.

6. Penyelesaian masalah

If you encounter issues with your DSD TECH HM-10 module, consider the following troubleshooting steps:

  • Module LED Not Blinking:
    • Ensure proper power supply (3.3V to 6V) to the VCC and GND pins.
    • Check for correct wiring and secure connections.
  • Tidak Boleh Bersambung/Berpasangan:
    • Verify the module is powered on and its LED is blinking (indicating discoverable mode).
    • For PC connections, ensure Bluetooth discovery settings are set to "Advanced" or "Show all devices".
    • Check the default PIN (e.g., "1234" or "000000") if prompted.
    • Ensure no other device is currently connected to the HM-10 module.
    • Try resetting the module by power cycling it or sending the AT+SET SEMULA perintah.
  • Perintah AT Tidak Memberi Balasan:
    • Confirm the correct TX/RX wiring (TX of HM-10 to RX of Arduino/USB-TTL, RX of HM-10 to TX of Arduino/USB-TTL).
    • Ensure the baud rate in your serial monitor/code matches the module's baud rate (default 9600).
    • In Arduino Serial Monitor, ensure "No line ending" is selected for AT commands.
    • Commands must be in uppercase (e.g., AT, bukan at).
  • Data Transmission Issues:
    • Double-check the baud rate settings on both the module and the communicating device.
    • Verify the logic levels. If your Arduino is 5V, you might need a voltage divider on the HM-10's RX pin (from Arduino's TX) as the HM-10 typically operates at 3.3V logic.
    • Ensure the module is within range of the connected device.

7. Spesifikasi

AtributNilai
Dimensi Produk1.2 x 0.6 x 0.1 inci
Berat Barang0.18 auns
PengeluarDSD TECH
Nombor Model ItemML-HM-10
Negara AsalChina
Versi Bluetooth4.0 BLE
Vol Operasitage3.3V hingga 6V
Kadar Baud Lalai9600

8. Waranti dan Sokongan

DSD TECH provides a WARANTI SATU TAHUN for this HM-10 Bluetooth 4.0 BLE module. If you encounter any questions or issues during setup, operation, or troubleshooting, please do not hesitate to contact DSD TECH customer support. They are committed to resolving your issues within 24 hours.

DSD TECH is a trusted provider of industrial-grade USB/Serial/Wireless solutions, with over 100,000 global installations and support from major companies. Every device comes with lifetime support and a 1-year product replacement service.

© 2024 DSD TECH. All rights reserved.

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.