Qasim Khokhar
Member level 1
I am trying to send data to my arduino uno using Android phone, for interfacing i am using 1sheeld bluetooth.
i am using blueterm app for development on my android phone, when i press any key from my phone LED light (RXD) on 1sheeld blink but i am unable to get data in MCU UART. please guid me how to fix it. my code is below.
**broken link removed**
i am using blueterm app for development on my android phone, when i press any key from my phone LED light (RXD) on 1sheeld blink but i am unable to get data in MCU UART. please guid me how to fix it. my code is below.
**broken link removed**
Code:
#define CUSTOM_SETTINGS
#define INCLUDE_PUSH_BUTTON_SHIELD
/* Include 1Sheeld library. */
#include <OneSheeld.h>
/* A name for the LED on pin 13. */
int ledPin = A0;
void setup()
{
/* Start communication. */
/* Set the LED pin as output. */
Serial.begin(115200);
Serial.print("\r\nAT+ORGL\r\n");
// Serial.print("\r\n+STBD1=115200\r\n");
Serial.print("\r\nAT+ROLE=1\r\n");
Serial.print("\r\nAT+RESET\r\n");
}
void loop()
{
if(Serial){
Serial.print('#');
Serial.print('\n');
Serial.print('\r');
delay(250);
Serial.flush();
}
}