Question about adding aditional rx tx to adafruit flora

Hello. I have an adafruit flora project that uses voice recognition and hopefully will have one of these
DSD TECH SH-HC-08 Bluetooth 4.0 BLE Slave Module to UART Transceiver for Arduino Compatible with iOS
I want to use voice commands while i am walking around my house and i want the bluetooth module to connect to my main computer to do tasks and so much more. The problem is an adafruit flora only have one rx tx and i need one for my voice recognition module and one for my bluetooth module. I found this article which is very interesting and I hope someone else agrees.

Does anyone think that this will work on my adafruit flora if not are there any other ways to assign a regular pin to a new rx or tx?

Thanks for any tips.

Hi, The SAMD processors are ARM 32 bit based processors and have up to 6 internal serial processors, so in the above article you can map the other serial processors for additional serial ports.

The Flora is based on the Atmega32u4 which appears to only support one hardware processor.

Now you can use other pins and create software based serial ports.

Check out the following: See this tutorial for the basics: http://www.arduino.cc/en/Tutorial/SoftwareSerial . There is a much better library, NewSoftSerial (http://arduiniana.org/libraries/newsoftserial ) that is the preferable library to use.

Thanks

Good luck with your project

1 Like

awsome thanks

Hello. I added the library for newsoft serial and selected adafruit flora in arduino ide. I get this error after I successfully include newsoftserial.h

" fatal error: WConstants.h: No such file or directory"

Would you know anything about this? thanks

I found this out

"Starting with Arduino 1.0 (December, 2011), NewSoftSerial has replaced the old SoftwareSerial library as the officially supported software serial library. This means that if you have the IDE version 1.0 or later, you should not download this library. To port your code to 1.x, simply change all NewSoftSerial references to SoftwareSerial."

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.