Arduino
Arduino
Bluetooth HC-06
Module HC-06
#include <SoftwareSerial.h>
SoftwareSerial mySerial(6, 5);
int dataFromBT;
void setup() {
Serial.begin(57600);
Serial.println("Service Available!");
mySerial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
if (mySerial.available())
dataFromBT = mySerial.read();
if (dataFromBT == '0') {
digitalWrite(13, LOW);
} else if (dataFromBT == '1') {
digitalWrite(13, HIGH);
}
}
Arduino 101
With the Arduino/Genuino 101, using this library, it is possible to use BLE features to communicate and interact with other devices like smartphones and tablet CurieBLE Library
Examples:
Heart Rate Monitor
Battery Monitor
Button LED
Callback LED
LED
Last updated