HC-05 vs HC-06 vs HM-10 para un Uno que tiene que llegar a una pasarela Pi a seis metros
Traducido del English por IA ·
Soy desarrollador backend y es mi primer proyecto de hardware, así que perdona la confusión.Un Uno está junto a nuestra bomba de calor y lee dos sondas DS18B20 (ida y retorno). Una Pi 4 en el armario del recibidor, a seis metros, ya envía otros datos a Hermetry y quiero que también reenvíe las temperaturas de la bomba de calor. Un cable no es una opción (piso de alquiler, sin taladrar).Compré un HC-06 y un HM-10 por capricho porque eran baratos. El HC-06 se empareja con la Pi en bluetoothctl. El HM-10 no aparece en la lista de emparejamiento, aunque su LED parpadea. Cada guía usa palabras distintas (master, slave, SPP, BLE, GATT) y no sé alrededor de qué módulo debería construir, ni si el Uno de 5 V va a quemar alguno de ellos.Actualmente el Uno imprime las temperaturas por el puerto serie USB cada 10 s, como flow=41.25 return=36.75, así que el módulo que elija solo tiene que transportar esa línea. Prefiero no acabar con un tercer módulo en el cajón.
Backend developer doing my first hardware project, so forgive the confusion.
An Uno sits next to our heat pump and reads two DS18B20 probes (flow and return). A Pi 4 in the hall cupboard six metres away already sends other stuff to Hermetry and I want it to forward the heat pump temps too. A cable isn’t an option (rented flat, no drilling).
I bought an HC-06 and an HM-10 on a whim because they were cheap. The HC-06 pairs with the Pi in bluetoothctl. The HM-10 doesn’t show up in the pairing list at all, even though its LED blinks. Every guide uses different words (master, slave, SPP, BLE, GATT) and I can’t tell which module I should be building around, or whether the 5V Uno is going to fry any of them.
The Uno currently prints the temps on USB serial every 10 s, like flow=41.25 return=36.75, so whatever module I end up with only has to carry that one line. I would rather not end up with a third module in the drawer.
Traducido del English por IA ·
Me sumo, tengo exactamente la misma confusión.
Following, I have exactly the same confusion.
Traducido del English por IA ·
HC-05 es master, HC-06 es slave, eso es todo lo que sé por ahora
HC-05 is master, HC-06 is slave, that’s all I know so far
Traducido del English por IA ·
El HM-10 es BLE (chip CC2541). No se empareja como un dispositivo clásico: te conectas a él y lees una característica GATT. Por eso la lista de emparejamiento de bluetoothctl lo ignora.
The HM-10 is BLE (CC2541 chip). It won’t pair like a classic device, you connect to it and read a GATT characteristic. That’s why bluetoothctl’s pairing list ignores it.
Traducido del English por IA ·
Tengo un cajón lleno de estos, así que aquí va cómo se diferencian en la práctica.HC-05: Bluetooth clásico con el perfil de puerto serie, puede ser maestro o esclavo, se configura con comandos AT a 38400 si mantienes el pin KEY/EN en alto al encender. HC-06: también SPP clásico, solo esclavo, menos comandos AT, 9600 por defecto. HM-10: Bluetooth Low Energy, los datos «serie» van por la característica FFE1. Menor consumo, pero el lado del Pi tiene que hablar BLE.Los tres tienen lógica de 3,3 V en RX. Sus placas breakout admiten 5 V en VCC, pero pon un divisor en la línea TX del Uno (1k desde el Uno, 2k a tierra) antes de que llegue al RX del módulo.En tu caso, el HC-06 es el que menos trabajo da. En la Pi:
sudo rfcomm bind 0 98:D3:31:F5:A2:10 1 # HC-06 address, channel 1
# /dev/rfcomm0 now behaves like a serial port
python3 -c "import serial; s=serial.Serial('/dev/rfcomm0', 9600); print(s.readline())"
Lado del Uno, una línea por lectura para que la Pi la separe fácilmente:
Serial.print("flow_c="); Serial.print(tFlow, 2);
Serial.print(";return_c="); Serial.println(tReturn, 2);
Si la Pi ya es tu pasarela hacia Hermetry, registra la bomba de calor como su propio dispositivo hijo en v1/gw/telemetry en lugar de añadir las claves a la propia Pi; así tendrá su propia página y sus propias alarmas.
I have a drawer full of these, so here’s how they differ in practice.
HC-05: classic Bluetooth with the serial port profile, can be master or slave, configured with AT commands at 38400 when you hold the KEY/EN pin high at power-up. HC-06: classic SPP too, slave only, fewer AT commands, default 9600. HM-10: Bluetooth Low Energy, the «serial» data goes through characteristic FFE1. Lower power, but the Pi side has to speak BLE.
All three have 3.3 V logic on RX. Their breakout boards take 5 V on VCC, but put a divider on the Uno’s TX line (1k from the Uno, 2k to ground) before it goes into the module’s RX.
For your case the HC-06 is the least work. On the Pi:
sudo rfcomm bind 0 98:D3:31:F5:A2:10 1 # HC-06 address, channel 1
# /dev/rfcomm0 now behaves like a serial port
python3 -c "import serial; s=serial.Serial('/dev/rfcomm0', 9600); print(s.readline())"
Uno side, one line per reading so the Pi can split it easily:
Serial.print("flow_c="); Serial.print(tFlow, 2);
Serial.print(";return_c="); Serial.println(tReturn, 2);
If the Pi is already your gateway to Hermetry, report the heat pump as its own child device on v1/gw/telemetry rather than adding the keys to the Pi itself, then it gets its own page and alarms.
Traducido del English por IA ·
Me decidí por el HC-06. rfcomm0 funciona, pero recibo datos basura como «fx9cw_c=xe2…» en lugar de la línea.
Went HC-06. rfcomm0 works but I get garbage like «fx9cw_c=xe2…» instead of the line.
Traducido del English por IA ·
El valor por defecto del HC-06 es 9600. ¿Tu sketch está configurado a 115200?
HC-06 default is 9600. Is your sketch on 115200?
Traducido del English por IA ·
…estaba en 115200. Cambié el sketch a 9600 y las líneas están limpias. La bomba de calor ahora aparece como su propio dispositivo hijo, ida 41.3, retorno 36.8. Gracias a todos, sobre todo a Lewis por la advertencia del divisor, iba a conectarlo directamente.
…it was on 115200. Changed the sketch to 9600 and the lines are clean. The heat pump shows up as its own child device now, flow 41.3, return 36.8. Thanks all, Lewis especially for the divider warning, I was about to wire it straight.
- Debes estar registrado para responder a este debate.
Únete a la conversación
Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

