Nackte Si4463-Funkmodule: Wo stecken funktionierende Arduino-Beispiele?
Von English mit KI übersetzt ·
Anderes Projekt als meine pigpio-Frage. Wir haben einen Wassertank etwa 900 m vom Gebäude entfernt, keinen Strom zu erübrigen und kein Kabel. Ich habe ein Paar nackter Si4463-Module (433 MHz, SPI) gekauft, weil die Reichweitenangaben im Datenblatt so gut aussahen. Geplant ist eins am Tank an einem Arduino Pro Mini und eins am Pi, der ohnehin alles an Hermetry sendet.Problem: Ich finde kein einziges Beispiel, das einfach ein Paket sendet. Das Material von Silicon Labs setzt deren eigene Werkzeuge voraus, und alles, was ich auf GitHub finde, ist entweder halb fertig oder für ein anderes Board. Hat schon jemand diese mit Arduino tatsächlich verwendet?
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?
Von English mit KI übersetzt ·
HC-12-Module sind ein Si4463 mit einem kleinen MCU obendrauf, der dir eine einfache serielle Schnittstelle bereitstellt. Wenn du nichts Ausgefallenes brauchst, ist das der bequeme Weg.
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.
Von English mit KI übersetzt ·
Kevin hat recht, dass HC-12 der einfache Weg ist. Bei nackten Modulen übersehen die meisten den wichtigsten Punkt: Die Si446x-Chips haben keine Registerkarte, in die man einfach schreibt. Man lädt einen Konfigurationsblock, den das WDS-Tool von Silicon Labs (radio_config.h) für Frequenz, Modulation und Datenrate erzeugt, und sendet ihn beim Start an den Chip.Die Bibliothek, die bei mir funktioniert, ist RadioHead, Treiber RH_RF24, der Si4460/4461/4463 unterstützt. Sie enthält eine Reihe fertiger Konfigurationen, sodass Sie WDS nicht brauchen, außer Sie wollen etwas Ungewöhnliches. Minimaler 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);
}
Zwei Fallen. SDN ist active high, also sitzt der Chip im Shutdown und init schlägt fehl, wenn Sie den Pin offen lassen. Und diese Module laufen mit 3,3 V: Ein 5-V-Pro-Mini braucht Pegelwandler am SPI, oder Sie nehmen den 3,3-V/8-MHz-Pro-Mini, der außerdem better für die Batterielaufzeit ist.Auf der Pi-Seite lesen Sie das Paket aus und veröffentlichen lvl als Schlüssel, so wie Sie es bei Ihren anderen Geräten machen.
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.
Von English mit KI übersetzt ·
+1 RadioHead. Und stell vor dem Erhöhen von setTxPower sicher, dass du dich dort, wo du bist, bei 433 MHz rechtlich an die Vorgaben zu Sendeleistung und Duty Cycle hältst.
+1 RadioHead. And make sure you’re legal on 433 MHz power and duty cycle where you are before you crank setTxPower.
Von English mit KI übersetzt ·
SDN war floating. Ich habe es über den Pin der Bibliothek angeschlossen, und die Initialisierung hat beim ersten Versuch funktioniert. Sender am Tank, Empfänger an einem zweiten Pro Mini, der die Zeilen per USB an den Pi weitergibt, 900 m mit RSSI um -95. Der Füllstand des Tanks liegt in Hermetry als tank.level_cm. Danke Eric, und Maria für den Hinweis zu den Leistungsgrenzen, ich habe die Sendeleistung zurückgenommen.
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.
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Mitdiskutieren
Melde dich an, um Fragen zu stellen und zu beantworten, hilfreiche Beiträge mit „Gefällt mir“ zu markieren und die Antwort zu kennzeichnen, die dein Problem gelöst hat. Jeder Beitrag bringt Punkte und Stufen.

