Módulos de radio Si4463 sin carcasa: ¿dónde están los ejemplos de Arduino que funcionan?
Traducido del English por IA ·
Es un proyecto distinto a mi pregunta sobre pigpio. Tenemos un depósito de agua a unos 900 m del edificio, sin energía de sobra y sin cable. Compré un par de módulos Si4463 sin carcasa (433 MHz, SPI) porque las cifras de alcance de la hoja de datos parecían excelentes. Mi plan es uno en el depósito con un Arduino Pro Mini y otro en la Pi que ya envía todo a Hermetry.Problema: no encuentro ni un solo ejemplo que simplemente envíe un paquete. El material de Silicon Labs asume sus propias herramientas, y todo lo que encuentro en GitHub está a medio terminar o es para otra placa. ¿Alguien los ha usado realmente con Arduino?
Different project from my pigpio question. We have a water tank about 900 m from the building, no power to spare and no cable. I bought a pair of bare Si4463 modules (433 MHz, SPI) because the datasheet range figures looked great, planning one at the tank on an Arduino Pro Mini and one on the Pi that already sends everything to Hermetry.
Problem: I can’t find a single example that just sends a packet. Silicon Labs’ material assumes their own tools, and everything I find on GitHub is either half finished or for a different board. Has anyone actually used these with Arduino?
Traducido del English por IA ·
Los módulos HC-12 son un Si4463 con un pequeño MCU encima que te ofrece un puerto serie sencillo. Si no necesitas nada sofisticado, esa es la vía fácil.
HC-12 modules are an Si4463 with a small MCU on top that gives you a plain serial port. If you don’t need anything fancy, that’s the lazy route.
Traducido del English por IA ·
Kevin tiene razón en que HC-12 es la vía fácil. Con módulos desnudos, el detalle que más gente pasa por alto es que los chips Si446x no tienen un mapa de registros al que simplemente se escriba. Se carga un bloque de configuración que genera la herramienta WDS de Silicon Labs (radio_config.h) para su frecuencia, modulación y velocidad de datos, y se envía al chip al arrancar.La biblioteca que a mí me funciona es RadioHead, driver RH_RF24, que soporta Si4460/4461/4463. Incluye un conjunto de configuraciones listas, así que no necesita WDS salvo que quiera algo poco habitual. Emisor mínimo:
#include <SPI.h>
#include <RH_RF24.h>
RH_RF24 rf24(10, 2, 9); // CS, nIRQ, SDN
void setup() {
Serial.begin(9600);
if (!rf24.init()) Serial.println("init failed");
rf24.setFrequency(433.92);
rf24.setTxPower(0x4f);
}
void loop() {
uint8_t msg[] = "lvl=182";
rf24.send(msg, sizeof(msg));
rf24.waitPacketSent();
delay(60000);
}
Dos trampas. SDN es activo en alto, así que si lo deja flotando, el chip queda en apagado y init falla. Y estos módulos funcionan a 3,3 V: un Pro Mini de 5 V necesita adaptación de niveles en SPI, o use el Pro Mini de 3,3 V/8 MHz, que además mejora la duración de la batería.En el lado de la Pi, lea el paquete y publique lvl como una clave de la misma forma que lo hace con sus otros dispositivos.
Kevin’s right that HC-12 is the easy way. With bare modules, the piece most people miss is that the Si446x chips don’t have a register map you just poke. You load a configuration blob that Silicon Labs’ WDS tool generates (radio_config.h) for your frequency, modulation and data rate, and send it to the chip at startup.
The library that works for me is RadioHead, driver RH_RF24, which supports Si4460/4461/4463. It ships with a set of ready configurations, so you don’t need WDS unless you want something unusual. Minimal sender:
#include <SPI.h>
#include <RH_RF24.h>
RH_RF24 rf24(10, 2, 9); // CS, nIRQ, SDN
void setup() {
Serial.begin(9600);
if (!rf24.init()) Serial.println("init failed");
rf24.setFrequency(433.92);
rf24.setTxPower(0x4f);
}
void loop() {
uint8_t msg[] = "lvl=182";
rf24.send(msg, sizeof(msg));
rf24.waitPacketSent();
delay(60000);
}
Two traps. SDN is active high, so if you leave it floating the chip sits in shutdown and init fails. And these modules run at 3.3V: a 5V Pro Mini needs level shifting on SPI, or use the 3.3V/8 MHz Pro Mini, which is also better for battery life.
On the Pi end, read the packet and publish lvl as a key the same way you do for your other devices.
Traducido del English por IA ·
+1 RadioHead. Y asegúrate de cumplir la normativa local sobre potencia y ciclo de trabajo (duty cycle) en 433 MHz antes de subir setTxPower.
+1 RadioHead. And make sure you’re legal on 433 MHz power and duty cycle where you are before you crank setTxPower.
Traducido del English por IA ·
SDN estaba flotando. Lo conecté al pin que indica la biblioteca y la inicialización funcionó al primer intento. Emisor en el tanque, receptor en un segundo Pro Mini que pasa las líneas a la Pi por USB, 900 m con RSSI en torno a -95. El nivel del tanque está en Hermetry como tank.level_cm. Gracias Eric, y a Maria por el recordatorio sobre los límites de potencia, la bajé.
SDN was floating. Tied it through the library pin and init succeeded on the first try. Sender at the tank, receiver on a second Pro Mini that passes lines to the Pi over USB, 900 m with RSSI around -95. Tank level is in Hermetry as tank.level_cm. Thanks Eric, and Maria for the reminder about power limits, I backed it off.
- 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.

