• MSMBle 1
  • MSMBle 2
  • MSMBle 3
  • MSMBle 4

MSMBle

Android project created during the M-week (February 2014) at MakespaceMadrid to show how to manage Bluetooth Low Energy devices form an Android terminal. More information (in Spanish) available at:
http://wiki.makespacemadrid.org/index.php?title=Bombilla_LED_de_colores_con_Bluetooth_Low_Energy

A tutorial in English coming soon...

The application scans for any BLE device and its services and characteristics.

If the Yeelight Service is found, an activity can be launched to control colour and intensity of Yeelight Blue bulb

If SensorTag services are found, an activity can be launched to visualise the state of the buttons, ambient temperature (IR Temperature sensor) and humidity from the SensorTag.

If Tethercell service is found, an activity can be launched to change the state (OFF/ON) of the Tethercell battery, check its current voltage level and define timers to switch it on/off.

If HM10 service is found, an activity can be launched to connect to the HM10 and simulate a Serial connection to the module. An arduino skecth is included in the repository to show how HM10 module works.

If BLEDduino UART service is found, an activity can be launched to connect to the BLEduino and simulate a Serial connection to the module. You will need to upload BLEduino "Console Demo" sketch.
- upload "Console demo" sketch to BLEduino http://bleduino.cc/start/examples/1
- reset BLEduino with onboard Reset button
- open Arduino IDE console (this must be done after pressing the BLEduino reset button!)
- start BLE scanning from MSMSBLE Android app and select BLEduino device, UART service (shown in blue) and UART characteristics (also in blue).

This application has been tested on a Google Nexus 7 (2013 edition)

Source code available at:https://github.com/jmgjmg/MSMBle

Based on the API released by Yeelight: http://www.yeelight.com/en_US/info/download

Based on the code created by Dave Smith (Double Encore): https://github.com/devunwired/accessory-samples/tree/master/BluetoothGatt http://www.doubleencore.com/2013/12/bluetooth-smart-for-android/

Based on the documentation of Texas Instruments SensorTag: http://processors.wiki.ti.com/index.php/SensorTag_User_Guide

Created by Javier Montaner (twitter: @tumaku_) during M-week (February 2014) of MakeSpaceMadridhttp://www.makespacemadrid.org@ 2014 Javier Montaner

Special thanks to @jgalaron and @@jjimenef fot their contribution to understand the behaviour of the HM10 module

Licensed under the MIT Open Source Licensehttp://opensource.org/licenses/MIT

Based on the API released by Yeelight:http://www.yeelight.com/en_US/info/download

Based on the code created by Dave Smith (Double Encore) distributed under MIT Open Source Licensehttps://github.com/devunwired/accessory-samples/tree/master/BluetoothGatthttp://www.doubleencore.com/2013/12/bluetooth-smart-for-android/

Category : Lifestyle

Related searches

Reviews (1)

Sam. S. Nov 26, 2019     

When scan I get a long list of unknown but can't see my HM-10 which is connected to my Arduino. I renamed it but no joy. Do I need to send some AT command to the HM-10 before it can be discovered?