2.2 / May 28, 2017
(4.2/5) (20)

Description

Note: Your device must be compatible tobluetooth 4.0, must be android version 4.3 or higher.
Control an arduino / genuino sending data as 123, abc. This apphave predetermined ON/OFF,
Control 1 sends variable (1) ON, (0)OFF;
control 2 (3)ON, (2)OFF;
control 3 (5)ON, (4)OFF;
control 4 (7)ON, (6)OFF;
control5 (9)ON, (8)OFF.

-you can send your own variables. Send a combination to turn ON/OFF 2 or more pins at the same time, for example write 159 andclick "send" to Turn ON the pins assigned to those variable.
- Compatible to bluetooth4.0 hm-10 module
- You can use a simple sketch.
Be sure the bluetooth in your device is on, then click on "Selectbluetooth" .
Next time you open the app if it is available it will connect tothe last ble module you selected

SKETCH 1 USING SOFTWARE.SERIAL LIBRARY
/* This sketch simplified to accept BLE 4.0 */

#include SoftwareSerial.h

int Tx = 3; // BLE TX Connect to arduino pin 3. For arduino megacheck the PIN compatibles for tx,rx
int Rx = 2; // BLE RX Connect to arduino pin 2
SoftwareSerial mybluetooth(Tx,Rx);

void setup() {

// to indicate a pin is output
//you can assign which pins you want to use
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(13, OUTPUT);

delay(1000);
mybluetooth.begin(9600); // Start bluetooth serial at 9600 or setyour own baud rate
}

void loop() {
char data = mybluetooth.read();

if (data == '1') digitalWrite(6, HIGH);
if (data == '0') digitalWrite(6, LOW);

if (data == '3') digitalWrite(7, HIGH);
if (data == '2') digitalWrite(7, LOW);

if (data == '5') digitalWrite(8, HIGH);
if (data == '4') digitalWrite(8, LOW);

if (data == '7') digitalWrite(9, HIGH);
if (data == '6') digitalWrite(9, LOW);

if (data == '9') digitalWrite(13, HIGH);
if (data == '8') digitalWrite(13, LOW);
}
SKETCH 2 USING ARDUINO TX, RX PINS

to use the tx and rx pins built in because some arduino do notsupport software.serial */
// Connect BLE TX to Arduino RX
// Connect BLE RX to Arduino TX, it works in arduino uno, for otherarduino model test this connection or
// just connect RX to RX and TX to TX.


void setup() {

// to indicate a pin is output
//YOU CAN ASSIGN WHICH PINS YOU WANT TO USE
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(13, OUTPUT);


Serial.begin(9600); // Start bluetooth serial at 9600, MAKE sureyour bluetooth is set to 9600 baud
// or change this value to match your bluetooth baud rate
}

void loop() {

char data = Serial.read();

if (data == '1') digitalWrite(6, HIGH);
if (data == '0') digitalWrite(6, LOW);


if (data == '3') digitalWrite(7, HIGH);
if (data == '2') digitalWrite(7, LOW);

if (data == '5') digitalWrite(8, HIGH);
if (data == '4') digitalWrite(8, LOW);

if (data == '7') digitalWrite(9, HIGH);
if (data == '6') digitalWrite(9, LOW);

if (data == '9') digitalWrite(13, HIGH);
if (data == '8') digitalWrite(13, LOW);
}


[email protected] to get sketch

App Information Bluetooth 4.0 BLE for arduino

  • App Name
    Bluetooth 4.0 BLE for arduino
  • Package Name
    appinventor.ai_Esdrastlc.BLEcontrol
  • Updated
    May 28, 2017
  • File Size
    Undefined
  • Requires Android
    Android 1.6 and up
  • Version
    2.2
  • Developer
    esdras tc
  • Installs
    5,000 - 10,000
  • Price
    Free
  • Category
    Tools
  • Developer
    Email [email protected]
    san francisco california
  • Google Play Link

esdras tc Show More...

Bluetooth 4.0 BLE for arduino 2.2 APK
esdras tc
Note: Your device must be compatible tobluetooth 4.0, must be android version 4.3 or higher.Control an arduino / genuino sending data as 123, abc. This apphave predetermined ON/OFF,Control 1 sends variable (1) ON, (0)OFF;control 2 (3)ON, (2)OFF;control 3 (5)ON, (4)OFF;control 4 (7)ON, (6)OFF;control5 (9)ON, (8)OFF.-you can send your own variables. Send a combination to turn ON/OFF 2 or more pins at the same time, for example write 159 andclick "send" to Turn ON the pins assigned to those variable.- Compatible to bluetooth4.0 hm-10 module- You can use a simple sketch.Be sure the bluetooth in your device is on, then click on "Selectbluetooth" .Next time you open the app if it is available it will connect tothe last ble module you selectedSKETCH 1 USING SOFTWARE.SERIAL LIBRARY/* This sketch simplified to accept BLE 4.0 */#include SoftwareSerial.hint Tx = 3; // BLE TX Connect to arduino pin 3. For arduino megacheck the PIN compatibles for tx,rxint Rx = 2; // BLE RX Connect to arduino pin 2SoftwareSerial mybluetooth(Tx,Rx);void setup() {// to indicate a pin is output//you can assign which pins you want to usepinMode(6, OUTPUT);pinMode(7, OUTPUT);pinMode(8, OUTPUT);pinMode(9, OUTPUT);pinMode(13, OUTPUT);delay(1000);mybluetooth.begin(9600); // Start bluetooth serial at 9600 or setyour own baud rate}void loop() {char data = mybluetooth.read();if (data == '1') digitalWrite(6, HIGH);if (data == '0') digitalWrite(6, LOW);if (data == '3') digitalWrite(7, HIGH);if (data == '2') digitalWrite(7, LOW);if (data == '5') digitalWrite(8, HIGH);if (data == '4') digitalWrite(8, LOW);if (data == '7') digitalWrite(9, HIGH);if (data == '6') digitalWrite(9, LOW);if (data == '9') digitalWrite(13, HIGH);if (data == '8') digitalWrite(13, LOW);}SKETCH 2 USING ARDUINO TX, RX PINSto use the tx and rx pins built in because some arduino do notsupport software.serial */// Connect BLE TX to Arduino RX// Connect BLE RX to Arduino TX, it works in arduino uno, for otherarduino model test this connection or// just connect RX to RX and TX to TX.void setup() {// to indicate a pin is output//YOU CAN ASSIGN WHICH PINS YOU WANT TO USEpinMode(6, OUTPUT);pinMode(7, OUTPUT);pinMode(8, OUTPUT);pinMode(9, OUTPUT);pinMode(13, OUTPUT);Serial.begin(9600); // Start bluetooth serial at 9600, MAKE sureyour bluetooth is set to 9600 baud// or change this value to match your bluetooth baud rate}void loop() {char data = Serial.read();if (data == '1') digitalWrite(6, HIGH);if (data == '0') digitalWrite(6, LOW);if (data == '3') digitalWrite(7, HIGH);if (data == '2') digitalWrite(7, LOW);if (data == '5') digitalWrite(8, HIGH);if (data == '4') digitalWrite(8, LOW);if (data == '7') digitalWrite(9, HIGH);if (data == '6') digitalWrite(9, LOW);if (data == '9') digitalWrite(13, HIGH);if (data == '8') digitalWrite(13, LOW);}[email protected] to get sketch
Ble 4.0 Door 1.0.3 APK
esdras tc
Your device must be compatible to ble 4.0hm-10First pair the bluetooth 4.0 in Settings/bluetooth.