What I receive is sometimes the full alphabet, and more often than not, partial strings from within it. I've tried with 5 second delays between sending and it's the same. I've tried small packets, and big packets, all have lost characters.
I have no issue pairing the Bluetooth module to a phone or a PC, I have tried with off the shelf terminal programs, my own terminal program, and android apps, the behaviour is identical in all of them.
I have tried a couple of different modules and they behave the same, I've even tried it on a Mega and that is the same too.
So am I missing something or any thoughts on how I could improve this?
Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Fritzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
You have probably damaged the HC05, and possibly also the Arduino TX output pin.
HC-05 I/O is 3.3V only and a logic level shifter from 5V TX to 3.3V RX is required. It may also be required in the other direction. The best approach is to use one of these bidirectional level shifters on both serial connections.
But the HC-05 is not happy with 5V on its receiver line. What @jremington is suggesting is that you may have damaged the HC-05 when you tried it without the voltage divider.
While it is obviously good practice to use a voltage divider, I have never heard of anybody frying their HC-05 by omitting it, and I bet jremington hasn't either. Further, Arduino is just fine with 3.3v signals from Bluetooth, and any suggestions that you need to boost the signal is absurd.
If you get anything at all, your code is clearly kosher. But maybe your wiring isn't, thereby causing intermittent transmission.
Thank you for my first useful response. I started with just dupont cables from the uno to the bluetooth module and then moved to soldered connections directly
Not that well described.
This is a technical request, not a literal one.
VCC of HC05 to 5V on the Arduino - Putting 5V into a 3V device
Gnd of HC05 to Gnd on the Arduino
Tx to Rx (pin 10) - where to where on what
Rx to Tx (pin 11) - where to where on what
Which one, there is more then one. Post the links to the technical information. Resistor divider from what to what and how?
I will wait for the schematic, good luck.
I understand that having the necessary parts is crucial, but many of us don’t have access to them right now. By not responding to the people who are trying to assist you, you’re only wasting valuable time. I hope you get the answers you need soon. Good luck!
From your brief description it sounds like you are transmitting between an Arduino/HC-05 and a terminal program running on a PC or an Android device. Have you tried communicating between two Arduino/HC-05?
I can not confirm your findings. I use Kai Morich's Serial Bluetooth Terminal app on Android. The receive setting is for Newline Cr+Lf.
I always receive the complete alphabet on a line. There are sometimes short delays before the complete line is received, but with a receiving routine looking for an end marker, all is indeed received.
I think on the BT sending side, there are interactions with the Timer0 interrupts used by the Arduino for millis(). The sending is not continuous, but rather asynchronous from a buffer.