Issue with HC05 Bluetooth Module Communication When Using External Battery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-14 8:15 AM
I have a problem in my project involving the STM32L010RB MCU and the HC05 Bluetooth module.
Currently, the system operates smoothly when connected to the USB port. The HC05 Bluetooth module successfully performs its data transmission and reception tasks without any hitches. However, upon introducing an external battery and jumpering pins 2 and 3 on JP5 to provide the Bluetooth module with a 5-volt supply, the module appears to power up correctly, as indicated by the LED, but fails to transmit or receive any data.
I have thoroughly reviewed the connections and power supply, but I have been unable to identify the root cause of this issue.
Solved! Go to Solution.
- Labels:
-
Power
-
ST boards
-
STM32L0 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 7:30 AM
Hello,
I found the solution to my problem: to start data transmission to or from the Bluetooth module, we should press the reset button on the microcontroller.
However, I have another problem with ADC 2 and ADC 3. One sensor always gives the maximum reading, and the other has no response, while all the other ADCs work. I am using Tim2 and LPUART.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-17 1:49 AM
Hello
What board is it ?
Is it a custom board or a Nucleo ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-17 2:27 AM
Hello,
Board Nucleo-L010RB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-17 2:35 AM - edited ‎2024-04-17 4:59 AM
@Minaihab wrote:STM32L010RB MCU and the HC05 Bluetooth module.
How are they connected - UART?
Have you looked at what's happening on the (UART?) connecting lines in both the "working" and the "non-working" cases?
What battery are you using?
Show some good, clear photos of your setup; radio transmitters inherently draw large current peaks, so any issues in the power wiring are likely to disrupt things.
Try putting a scope on the module's supply pin - is it good and steady? Again, compare "working" and the "non-working" cases.
EDIT:
On debugging serial comms:
https://www.avrfreaks.net/s/topic/a5C3l000000UaFXEA0/t153137?comment=P-1212903
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-17 2:37 PM
We used LPUART in our project.
Also we used 2 lithium batteries connected in series each 3.7 volts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-17 3:05 PM
@Minaihab wrote:
Also we used 2 lithium batteries connected in series each 3.7 volts.
What capacity are those batteries?
Again:
- Have you looked at what's happening on the UART connecting lines in both the "working" and the "non-working" cases?
- Show some good, clear photos of your setup;
- Try putting a scope on the module's supply pin - is it good and steady?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-18 8:31 AM
Rechargeable Li-ion Battery18650 (3.7v 1200mAh)
I measured the voltage across the module's supply pin, and it was 4.7 volts.
Should I change any other jumper for the data transmitting and receiving using the battery ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-18 8:38 AM
@Minaihab wrote:I measured the voltage across the module's supply pin, and it was 4.7 volts.
That's not what I asked.
You need to look at it with an oscilloscope to see if it is steady.
Your photo shows only the Nucleo board - we need to see how the battery and the HC05 are connected.
Again:
- Have you looked at what's happening on the UART connecting lines in both the "working" and the "non-working" cases?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 7:30 AM
Hello,
I found the solution to my problem: to start data transmission to or from the Bluetooth module, we should press the reset button on the microcontroller.
However, I have another problem with ADC 2 and ADC 3. One sensor always gives the maximum reading, and the other has no response, while all the other ADCs work. I am using Tim2 and LPUART.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-29 7:43 AM
@Minaihab wrote:I found the solution to my problem:
Excellent - please mark that as the Solution.
@Minaihab wrote:I have another problem
Please start a new thread for that. You'll need to include a lot more detail!
A complex system designed from scratch never works and cannot be patched up to make it work.
