So I have a project that I currenty working on and I am also using the HC-06
module as a part of the communication proccess between the RP Pico
and my application.
A while agao when I was working on my project I have changed some cables between the HC-06
connector and the RP Pico
and after that it just stopped receiving data.
Before I start explaining how I tried to diagnose the problem, I will share how it is connected and what is the code for testing the module.
How it is connected
Test Code
from machine import Pin,UART
uart = UART(0, baudrate=9600, tx=Pin(16), rx=Pin(17))
while True:
if uart.any():
data = uart.readline()
print(data)
Everytime I start the program I get b'\x00'
and I didn't even send anything yet!
When I try to send data via any type of program (the androaid program or my own python program it shows) nothing, like it is not receiving the data.
I don't know if it is a problen in the HC-06
itself or some glitch, but here is what I have tried to do:
- Try to recieve data by connecting the
HC-06
to an arduino UNO - Have to say that it was a nightmare to do and until I finally connected it I could not recieve any data. - Check If the
RXD
leg get's enogth voltage - I have measured and it gets a liitle over 3.3 volts.
I would not be able to get another module for the next cuple days to try and see if it a problem only in this module, so if it is fixable and someone has an answer, I would be happy to hear it.