Hello guys, I have a project where I need to send data to my phone using an Arduino Nano and an HC-05 module. However, sometimes the HC-05 sends data, and sometimes it doesn’t. What could be the reason for this? Can you help me?
How do you know?
The project also includes an OLED display. This display shows the data that needs to be sent via Bluetooth. As I mentioned, sometimes bluetooth sends the data, but sometimes it doesn't.
In the absence of better information, your problem could be simply inadequate power. So how are you powering it?
There is nothing to suggest there is anything wrong with the code or wiring - unless the latter is sloppy.
We’re powering the system with a 3.7V 1000mAh Li-Po battery, and we’re using an XL6009 voltage regulator to step up and stabilize the voltage for the rest of the components. So far, we haven't noticed any major voltage drops.
While lacking a console (serial monitor), test and display the BT connection status (HC05 to phone), like "+" for present and "-" for absent, and display this on the OLED.
I think we need to see all the code in code tags, and any log data also in code tags plus a wiring diagram. A photo of a hand drawn diagram is ok.
What app are you using on the phone?
The fact that your problem is intermittent rather suggests it is down to a minor voltage drop. Your vague description also
suggests you might be running Bluetooth directly off lipo, which is clearly only just sufficient.
If the above is correct, and as the 6009 probably has the capacity, you might consider running Bluetooth that way, i.e. off 5v, like everybody else does.
