Forum >How to receive serial data wirelessly from Bluno?
ArduinoGeneral

How to receive serial data wirelessly from Bluno?

userHead Leff 2016-06-02 23:35:21 11933 Views3 Replies

Things you need:

 

1 x USB BLE link(or any BLE card, but the setting should be modified by AT command)1 x BlunoAccessaries: what I used here are UNO expansion shield, Gravity:Analog Rotation Sensor V2, USB cable, power adapter



STEPS

 

Default setting is ok. Use AT commands to set USB ble link as AT+SETTING=DEFCENTRAL, set bluno as AT+SETTING=DEFPERIPHERAL
 Upload the code to Bluno
 

Code: Select allint rotatorPin = A1;
int sensorValue = 0;
int ledPin = 11;

void setup() {
  Serial.begin(115200);
}

void loop() {
  sensorValue = analogRead(rotatorPin);
  sensorValue = map(sensorValue, 0, 1023, 0, 255);
  analogWrite(ledPin, sensorValue);
  Serial.println(sensorValue);
  delay(200);
}

Insert USB ble link to computor, waiting they could LINK in about 5~10 sec. (My picture shows Bluno was powered by an external power supply)

 Open the Arduino serial monitor, choose the baudrate as 115200
 Rotate the sensor, you could see the changing data.

 

 

2016-06-14 19:42:51 This topic linkAbout the driver installation for USB-BLE-Link

Actually, as long as your computer has been installed Arduino IDE by a .exe file (not a zip file), the driver for all arduino cards as well as this USB BLE Link (UNO) would be Installed automatically.

e.g.
  1. My Window10 has installed arduino, as I could find in the Control Panel
  2. Then once I plug the USB-BLE-Link into the usb port of my PC.

  3. I could found a COM port come up as Arduino UNO in the Device Manager.

If not, or your Arduino IDE was downloaded as a Windows ZIP file for non admin install, please install the driver manually, the driver is in arduino folder, as mine "D:\Program Files (x86)\arduino-1.6.7\drivers\FTDI USB Drivers"



If, it still can not work out well, then it is possible that:

  • Your computer got problem, you could find another computer, better an Apple Pc, to try.
  • The USB-BLE-link is defective. But trust me, few times that happens. Check above what you might dfrobot.
userHeadPic Leff
2016-06-03 00:32:51 thx bring this note out, very helpful. userHeadPic Leff
2016-06-03 00:07:38 ladies and gentlemen,attention please.
The host configuration must be correct.
AT+FSM=FSM_TRANS_USB_COM_BLE
AT+ROLE=ROLE_CENTRAL
AT+MIN_INTERVAL=20
AT+MAX_INTERVAL=40
AT+UART=115200
AT+BIND=0x000000000000
AT+CMODE=ANYONE
AT+BLUNODEBUG=ON
AT+USBDEBUG=OFF
AT+TXPOWER=000
AT+IBEACONS=ON
AT+PASSWORD=DFRobot

PS:You know,the version of BLUNO should be identical.
userHeadPic stark.Zhu