Skip to content

Arduino BT Module

Florian edited this page Feb 27, 2019 · 10 revisions

Arduino + W5100 - HM10 Bluetooth Module

Prerequisites

Note: Gateways can be used separately. Follow this Link for a quick overview about all Modules and possible Combinations.

Hardware

  • Arduino UNO (tested), Mega (tested), Duelmilanove Atmega328(tested)
  • W5100 shield (tested) or other ethernet module

Tested Modules for the BT Addon:

Module Purpose Where to Buy
HM 10 Keyes bluetooth module Bluetooth parts list

Software

  • Arduino IDE 1.8.1 or higher with board manager Arduino AVR boards 1.6.17 or higher
  • An MQTT broker (like mosquitto)

For the libraries take the version linked into Lib folder

If you want to use this gateway uncomment in user_config

#define ZgatewayBT

For your first tests comment the others Zgateway.

Hardware setup:

Module Pin Arduino RX Pin Arduino TX Pin
HM10 Bluetooth Module D6 D5

Vcc pin of the Arduino and the HM10 Module to a 5V supply source Ground pins of the Arduino and the HM10 Module to the ground of the supply source.

IR

Software setup

Set the BLE gateway parameters in config_BT.h

Define the time you want between Bluetooth beacons/Mi flora scans in ms: #define TimeBtw_Read 10000 //define the time between 2 scans

The HM10/11 firmware version must be >= v601

Clone this wiki locally
You can’t perform that action at this time.