microController BT

microController BT

FREE

(4 stars)

(61)


Download for Android

10,000 - 50,000 downloads

Add this app to your lists
Add a highly customizable programmable Bluetooth control panel to your electronics projects with microController BT. Drag, drop, resize and edit widgets to build the perfect controller for your microcontroller.

While designed with the Arduino microcontroller in mind, using low cost Bluetooth transceivers, microController BT should work with most projects that support serial communication and most Bluetooth transceivers that support SPP.

microController BT outputs standard 2 byte messages. The messages contain a key (0-255) and a value (0-255). For monitoring output, it listens for a standard 3 byte message. This message should contain a key (0-255), a highByte and a lowByte representing a value (0-1023).

outgoing: (key, value)
incoming: (key, highByte(value), lowByte(value))

For simple projects, you can directly plug the standard 2 byte messages into the digitalWrite/analogWrite functions, as shown below. For more advanced projects, you may choose to listen for particular keys and route accordingly.

void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT); //set for each pin
}

void loop() {
if (Serial.available() >= 2) {
int key = Serial.read();
int val = Serial.read();

digitalWrite(key, val);
}
}

To send values to microController BT for monitoring, simply write the standard 3 byte message to the serial port as shown below.

Serial.write(key);
Serial.write(highByte(val));
Serial.write(lowByte(val));

microController BT also outputs standard 2 byte messages when certain application events occur. These messages are useful for projects that change based on application state.

device connected: (0, 255)
start edit mode: (0, 253)
end edit mode: (0, 254)

For more examples, see https://github.com/kvndev/microController-BT

Tags: microcontroller bt, microcontroller projects, microcontroller bluetooth, bluetooth microcontroller, microcontroller, bluetooth to microcontroller, microcontrollerbt, microcontroller interface, bluetooth µ controller, microcontroller bt arduino.

Comments and ratings for microController BT
  • (69 stars)

    by Mohamed Abdelkader on 02/02/2014

    Thanks a millon.

  • (69 stars)

    by Trev G on 06/12/2013

    Paired to Bluetooth module first time. Two way serial communication with bt module no problems. Does what it says on the box

  • (69 stars)

    by Thomas Horn on 03/10/2013

    Easy to use app for control a prototype via bluetooth and worth to buy. I didn't use an Arduino, so the documentation was of limited use for me. So it took me a while, to figure out how the data has to be send from the board. Would be nice to extend the G

  • (69 stars)

    by A Google User on 21/11/2012

    I tried several of these tools... most seem pretty buggy but this one works very well. Took a bit to get the bluetooth figured out... my first time using it and first time bluetooth & arduino together. Going to set up out in my shop to control lights and