2024-04-14 08: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.
2024-04-29 07: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.
2024-04-17 01:49 AM
Hello
What board is it ?
Is it a custom board or a Nucleo ?
2024-04-17 02:27 AM
Hello,
Board Nucleo-L010RB
2024-04-17 02:35 AM - edited 2024-04-17 04: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
2024-04-17 02:37 PM
We used LPUART in our project.
Also we used 2 lithium batteries connected in series each 3.7 volts.
2024-04-17 03:05 PM
@Minaihab wrote:
Also we used 2 lithium batteries connected in series each 3.7 volts.
What capacity are those batteries?
Again:
2024-04-18 08: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 ?
2024-04-18 08: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:
2024-04-29 07: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.
2024-04-29 07:43 AM