Hi paul,
I just wanted to inform you that we have bought a couple of Blunos to the office and as of yesterday we were able to create an application using the Evothings studio.
First we ensured that the Bluno was flashed with the latest firmware (1.92
https://github.com/DFRobot/BLE_firmware_V1.9) from DFRobot. Then we uploaded the attached sketch onto the our Bluno. We had some issues with running the application connected to the computer, so if you experience any issues try to connect your Bluno to an external power source.
We are about to create a blogpost for the Bluno and we will hopefully be able to publish that in the upcoming weeks. As for now you should be able to edit some of our published examples to make it work with the Bluno. I would recommend you to look at Arduino LED On/Off BLE example.
Here are the uuids that you will need during your process.
DFRBLU_SERVICE_UUID = 0000dfb0-0000-1000-8000-00805f9b34fb
DFRBLU_CHAR_TXRX_UUID = 0000dfb1-0000-1000-8000-00805f9b34fb
Andreas
Arduino sketch:
Code: Select all
void setup() {
pinMode(13, OUTPUT);
pinMode(A0, INPUT);
Serial.begin(115200);
}
void loop() {
int sensorReading = analogRead(A0);
byte buffer[] = {0xAD,(byte)sensorReading, (byte)(sensorReading >> 8)};
Serial.write(buffer, 3);
if (Serial.available())
{
byte cmd = (byte)Serial.read();
if (cmd == (byte)0x01) {
digitalWrite(13, HIGH);
}
else if (cmd == (byte)0x00) {
digitalWrite(13, LOW);
}
}
delay(500);
}