cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with HC05 Bluetooth Module Communication When Using External Battery

Minaihab
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

9 REPLIES 9
Mike_ST
ST Employee

Hello

What board is it ?

Is it a custom board or a Nucleo ?

 

 

Hello,

Board Nucleo-L010RB 


@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

 

We used LPUART in our project.
Also we used 2 lithium batteries connected in series each 3.7 volts.

Minaihab_1-1713389813415.png

 

 


@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? 

Rechargeable Li-ion Battery18650 (3.7v 1200mAh)
I measured the voltage across the module's supply pin, and it was 4.7 volts.

Minaihab_0-1713453977525.png

Should I change any other jumper for the data transmitting and receiving using the battery ?
 

 


@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?

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.


@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!