Let me preface this by saying I was able to get the software serial to work, and I'm only having issues with the hardware serial. Additionally, the issue persists with only the serial monitor(set to 115200 baud), and not the bluefruit LE app as I am able to connect my phone to the module.
The board I'm using: Elegoo uno R3
Pins Used on the bluefruit module:
**In command mode
Vin ->5V on the arduino
GND & CTS -> GND on the arduino
TXO -> RX(Pin 0) on the arduino
RXI -> TX(Pin 1) on the arduino
I have tried swapping the TXO & RXI connections in hope for magic, to no avail.
The code I am using comes from one of the adafruit examples "cmdmode", used for sending strings between the app and the serial monitor. I will post my code below.
As I mentioned before, I can connect to the app however I cannot do anything useful with it. When I fire up the serial monitor it gives me a random number of letters and then some random symbols afterwards. My first thought was to adjust some of the strings printing to the monitor to see what happens and more or less was getting the same result. I then figured the random symbols were due to the baud rate being off, so I played around with different rates. Funny enough they all gave me garbage except for 9600(strange). From here I figured it was progress even though some of what was printing out was wrong as well the module relying on 115200 baud and not 9600. While set to 9600 I was clearly able to read the debug output saying something like "Check and make sure you're in command mode and check your wiring".
From here I figured my understanding was too weak. Perhaps my wiring is off; perhaps my soldering was poor and making it inconsistent; or perhaps I'm misunderstanding the code with all the changes I made.
Thank you, I hope I've provided enough information and if not please ask.
Let me preface this by saying I was able to get the software serial to work, and I'm only having issues with the hardware serial. Additionally, the issue persists with only the serial monitor(set to 115200 baud), and not the bluefruit LE app as I am able to connect my phone to the module.
My understanding is that when using an external serial module connected to the hardware serial pins of a Uno, you can only have input from the module to the Arduino, and not from the monitor to the Arduino. Output from the Arduino can go to both the device and the monitor.
Hmmm, I think I see what you're saying however I've been reviewing Adafruits instructions and they explicitly say "Any text that you type in the box at the top of the Serial Monitor will be sent to the connected phone, and any data sent from the phone will be displayed in the serial monitor". Unless you meant something else, perhaps I'm just misunderstanding you.
Here is the link to Adafruits documentation, the specific tutorial starts on page 39:
I appreciate your response, I might reach out to Adafruit and see what they say, it's possible their latest firmware has issues with this but I want to cover all my bases before I do that. Thanks
"Any text that you type in the box at the top of the Serial Monitor will be sent to the connected phone, and any data sent from the phone will be displayed in the serial monitor".
That specific sketch is using software serial. The wiring section recommends software serial for a uno, and hardware serial on one of the additional serial ports of a Mega, Leonardo, Micro.
That said, Adafruit has great customer service through both their forum and discord channel and you can certainly ask them, but I believe that you misunderstand.