Hi all,
I'm trying to get my Red Bear Labs BLE mini to work with my arduino micro.
I see that I have to use the altsoftserial library to use the BLE mini with an arduino that's not a mega. However, the altsoftserial library doesn't run out of the box on the Arduino micro. I modified the library according to the instructions I saw posted here AltSoftSerial and Arduino MICRO - Networking, Protocols, and Devices - Arduino Forum , but I'm still not having any luck. I tried using the 'test' program in the altsoftserial library to get some basic communication going between the micro and an arduino mega's hardware serial port and it didn't work at all. I couldn't send anything from the micro to the mega, and on occasion, characters would send from the mega to the micro as 'xxx'.
Here's the test code for altsoft serial.
AltSoftSerial altSerial;
void setup() {
Serial.begin(9600);
Serial.println("AltSoftSerial Test Begin");
altSerial.begin(9600);
altSerial.println("Hello World");
}
void loop() {
char c;
//Serial.println("herenow");
if (Serial.available()) {
c = Serial.read();
altSerial.print(c);
//Serial.print(c);
}
if (altSerial.available()) {
c = altSerial.read();
Serial.print(c);
}
}
Is it possible to use altsoftserial with an arduino micro? Has anyone used an arduino micro with the BLE mini?
Thanks!