HM10control gives you the ability to do some basic controls of the quite affordable HM-10 bluetooth module (tested firmware version 540) without an additional microcontroller (e.g. Arduino). This is a quite minimal first version to find out if someone except myself finds it useful. Feedback is highly appreciated...
After an initial configuration using a serial connection to the module and setting it to remote control mode (AT+MODE2) you can do the following:
- read out PIOs binary values (ON/OFF)
- read out PIOs analog values (ADC) as float value
- set binary value of PIO (switch) to (de)activate an actor: state is kept, even after disconnecting the phone
- experimental: interpret analog value as output of a voltage divider including an NTC (Thermistor) to measure temperature. This is currently hardcoded for a 4,7k resistor and a 2,2k NTC... dont expect too much precision ;-)
You can configure the used PIOs and their mode for each device. Configuration will be stored on the phone.
The first configured PIO is currently treated as "primary": its taken to the device overview and can be accessed right there.
Connections are kept alive only as long as they are needed.
-------------------------------------------------------------
Known limitations:
- re-scanning doesnt work fully stable
- bonding requires to enter PIN of the devices quickly when prompted and you will need to restart the app (will only affect you, if you enable this feature by sending AT+TYPE3 to the module before using it with HM10control)
-------------------------------------------------------------
Disclaimer:
This app is provided as is and for free. Its for developers/makers... playing around with HM-10 modules.
I tested it with some modules I had at hand. As it only makes use of AT commands that are not marked critical in the firmware documentation it should generally work out. Yet, I can not guarantee that you will not be able to bring your module to some state that it doesnt work properly any more. So please use at your own risk.
Using the "set binary" functionality for PIOs (switch) works with some delay potentially or might also fail. Dont use for emergency shutdown of reactors or other operations you regard (time) critical.