{"product_id":"pll-ask-ook-wireless-rf-wireless-link-transceiver-founction-rx-tx-modules-433mhz","title":"PLL ASK OOK Funk-RF-Funk-LINK-Transceiver-Funktion RX-TX-Module 433 MHz","description":"\u003cdiv style=\"font-family: Arial, Helvetica, sans-serif;\"\u003e\n\n\u003cp\u003ePLL ASK OOK drahtlose RF-Funkverbindung, Transceiver-Funktion, Empfangs- und Sende-Module, 433 MHz\u003c\/p\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eMenge: 1 Empfangsmodul und 1 Sendemodul. \u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cp align=\"left\"\u003e \u003c\/p\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eTypische Anwendungen\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e﹡ Fernsteuerung von Toren\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e﹡ Schlüssellose Fernbedienung\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e﹡ Autoalarmsysteme\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e﹡ drahtlose Sicherheitssysteme\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e﹡ Automatisierungssysteme\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e﹡ Fernsteuerungssysteme\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"color: red; font-size: 24pt;\"\u003eEmpfangsmodul:\u003c\/span\u003e\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cimg src=\"https:\/\/i.ebayimg.com\/00\/s\/MTAwMFgxMDAw\/z\/f-kAAOSwcJ1a9s6s\/$_12.JPG?set_id=880000500F\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt;\"\u003e \u003c\/span\u003e\u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv style=\"padding: 0px; line-height: 1.5; margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(0, 0, 0); font-size: 12px; background-origin: initial; background-clip: initial;\"\u003e  \u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan color:=\"\" font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eTechnische Daten:\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e      \u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eEmpfangsmodul-Nr.: \u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eBX-RM06 -433\u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e (passend zu unserem Modul BX-TM01 -433 oder BX-TM05 -433)\u003c\/span\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e  \u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e    \u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e      \u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eEmpfängerempfindlichkeit (dBm):-112 ;\u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003cdiv align=\"left\" style=\"margin-left: 36pt;\"\u003e\n\n\u003cbr\u003e\n\u003cspan color:=\"\" font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt;\"\u003eBetriebsfrequenz (MHz): 433,92 MHz ;\u003c\/span\u003e\u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003cdiv align=\"left\" style=\"margin-left: 36pt;\"\u003e \u003c\/div\u003e\n\n\n\u003cdiv align=\"left\" style=\"margin-left: 36pt;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eBetriebsspannung (V):  DC 3-5,5 V\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cp align=\"left\" style=\"margin-left: 36pt;\"\u003e\u003cspan color:=\"\" font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eNiedriger Stromverbrauch: \u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e3,3 V bei \u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e433,92 MHz, 6,0 mA \/ 3,3 V bei 315 MHz, 4,8 mA;\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e         Betriebstemperatur: -40 ℃ ~ +85 ℃\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e      \u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eEinschaltmodus bei einem Stromverbrauch von mindestens 50 nA;\u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e     \u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e          Pegelausgabe der RSSI-Signalstärkesimulation;\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e     \u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eGute Unterdrückung der lokalen Oszillatorstrahlung, Empfangsmodul zur gemeinsamen Verwendung (d. h. Single-Input) und die Verwendung beeinträchtigt sich gegenseitig nicht, was die Empfängerreichweite nicht            beeinflusst\u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan color:=\"\" font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eSendemodul:  \u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cp style=\"padding: 0px; margin: 0px;\"\u003e\u003cspan style=\"line-height: 18px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px;\"\u003e \u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eTechnische Daten:\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eS\u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eendemodul-Nr.: \u003c\/span\u003e\u003cspan new=\"\" style=\"font-family: \" times=\"\"\u003eBX-TM05 -433\u003c\/span\u003e\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eHohe Ausgangsleistung: +10 dBm;\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eNiedrige Betriebsspannung: VCC= 1,8 bis 3,6 V;\u003c\/span\u003e\u003cspan color:=\"\" font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eBetriebsfrequenz (MHz): 433,92 MHz ;\u003c\/span\u003e\u003cbr\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eFrequenztoleranz: ±50 kHz;\u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eDie Reichweite kann mit XLC-RM08 bis zu 300-500 m betragen;\u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eBetriebstemperatur: -40℃～+80℃;\u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eKleine Größe mit einer PCB-Größe von: 11x16x5,5 mm;\u003c\/span\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eBitrate: \u0026lt;3 kbps;\u003c\/span\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003eSchaltungstyp: PLL; \u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e \u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cdiv\u003e\n\n\u003cdiv style=\"padding: 0px; line-height: 1.5; margin: 0px; font-family: Verdana, Arial, Helvetica, sans-serif; color: rgb(0, 0, 0); font-size: 12px; background-origin: initial; background-clip: initial;\"\u003e\n\n\u003cp style=\"padding: 0px; margin: 0px;\"\u003e \u003c\/p\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e \n\u003cdiv style=\"display: inline-block;\"\u003e \u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cdiv\u003e \n\u003cdiv\u003e\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eAusführung von TX433- und RX433-RF-Modulen mit AVR-Mikrocontrollern : \u003c\/span\u003e\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\n\n\u003cp align=\"justify\" style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eManchmal möchte man bei der Entwicklung eingebetteter Systeme auf drahtlose Kommunikation setzen. Möglicherweise möchte man verschiedene Messwerte von entfernt platzierten Sensoren aufzeichnen oder einfach eine Fernbedienung für ein Roboter- oder Autoalarmsystem bauen.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp align=\"justify\" style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eDie Funkkommunikation zwischen zwei AVR-Mikrocontrollern kann einfach sein, wenn spezielle Module verwendet werden. Lassen Sie uns die sehr bekannten RF-Module TX433 und RX433 ausprobieren, die (oder ähnliche) in fast jedem Elektronikgeschäft zu finden sind und ein Paar etwa  6,99 USD kostet.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp align=\"justify\" style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eDie Sender- und Empfängermodule sind so abgestimmt, dass sie bei 433,92 MHz korrekt funktionieren. Der Sender kann mit 1,8-3,6 V \u003c\/span\u003e\u003cspan style=\"position: static; font-size: 14pt; color: rgb(51, 102, 255); text-decoration-line: underline !important; font-weight: inherit !important;\"\u003eStromversorgung\u003c\/span\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003ebetrieben werden, während der Empfänger \u003c\/span\u003e\u003cspan style=\"position: static; font-size: 14pt; color: rgb(51, 102, 255); text-decoration-line: underline !important; font-weight: inherit !important;\"\u003e5 V\u003c\/span\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eakzeptiert. 5 V sind für AVR-Mikrocontroller üblich, daher gibt es keine Probleme bei der Schnittstelle. Die Module benötigen keine zusätzlichen Komponenten – einfach mit Strom versorgen und eine Datenleitung für den Informationsversand verbinden, und schon ist es fertig. Für größere Entfernungen verwenden Sie 30–35 cm Antennen. Die Module verwenden die Amplitudenmodulation (ASK) und eine Bandbreite von 1 MHz.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eIch habe zwei separate Schaltungen für Tests auf Atmega8-Mikrocontrollern konstruiert.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n \n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e \u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eFür den Test habe ich ein Prototyping-Board und ein Breadboard verwendet.\u003c\/span\u003e\u003c\/span\u003e\u003c\/div\u003e\n\n \n\n\u003cdiv\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eWie Sie sehen können, habe ich eine LED zur Anzeige der RF-Aktivität verwendet. Gut, genug von der Hardware – eigentlich gibt es dazu nichts mehr zu sagen – die Schaltungen sind einfach.\u003c\/span\u003e\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003cp align=\"justify\" style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eKommen wir zum Softwareteil. Die Funkübertragung ist etwas komplizierter als die kabelgebundene Kommunikation, weil man nie weiß, welche Funksignale in der Luft vorhanden sind. Daher ist es wichtig, wie das übertragene Signal kodiert wird. Und hier gibt es viele Möglichkeiten: Verwenden Sie eine Hardware-Kodierung wie USART oder schreiben Sie Ihre eigene basierend auf einer von vielen Kodierungsmethoden wie NRZ, Manchester usw. In meinem Beispiel habe ich das AVR-USART-Modul verwendet, um Datenpakete zu bilden. Hardware-Encoder lösen viele Probleme wie Synchronisation, Start und Stopp sowie verschiedene Signalprüfungen. Aber solange ich mich damit beschäftigte, konnten Sie sich nicht auf ein reines USART-Signal verlassen. Hier können Sie tatsächlich improvisieren, indem Sie verschiedene Prüfungen usw. hinzufügen.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eIch habe beschlossen, 4-Byte-Datenpakete zu bilden, um ein Byte an Informationen zu senden. Diese beinhalten:\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cul\u003e\n\n\t\u003cli\u003e\n\n\t\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eein \u003c\/span\u003e\u003cstrong style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003ed\u003c\/strong\u003e\u003cstrong style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eummy\u003c\/strong\u003e\u003cspan style=\"color: rgb(51, 102, 255);\"\u003e Synchronisationsbyte (10101010);\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\t\u003c\/li\u003e\n\n\t\u003cli\u003e\n\n\t\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eein \u003c\/span\u003e\u003cstrong style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eAddre\u003c\/strong\u003e\u003cstrong style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003ess\u003c\/strong\u003e\u003cspan style=\"color: rgb(51, 102, 255);\"\u003e Byte – falls es weitere Empfänger (oder Sender) gibt;\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\t\u003c\/li\u003e\n\n\t\u003cli\u003e\n\n\t\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eein\u003c\/span\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003ee \u003c\/span\u003e\u003cstrong style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eDaten\u003c\/strong\u003e\u003cspan style=\"color: rgb(51, 102, 255);\"\u003e Byte;\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\t\u003c\/li\u003e\n\n\t\u003cli\u003e\n\n\t\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eund \u003c\/span\u003e\u003cstrong style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003ePrüfsumme\u003c\/strong\u003e\u003cspan style=\"color: rgb(51, 102, 255);\"\u003e , die eigentlich die Summe aus Adresse und Daten ist (Adresse+Daten).\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\t\u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\n\n\u003cp align=\"justify\" style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eWarum habe ich ein Dummy-Byte am Anfang des Pakets verwendet? Ich habe einfach bemerkt, dass der Empfänger verschiedene Störgeräusche aus der Stromversorgung oder anderen Quellen aufnimmt, wenn der Sender keine Daten überträgt, weil der Empfänger seine Eingangsgewinnung je nach \u003c\/span\u003e\u003cspan style=\"position: static; font-size: 14pt; color: rgb(51, 102, 255); text-decoration-line: underline !important; font-weight: inherit !important;\"\u003eEingangssignal\u003c\/span\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e level anpasst. Das erste Byte stimmt den Empfänger ein, damit er ein normales Signal akzeptiert, danach können Adresse, Daten und Prüfsumme zuverlässiger gelesen werden. Wahrscheinlich können Sie dieses Dummy-Byte bei anderen Übertragungsmodulen weglassen.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eSende-Programm für AVR Atmega8:\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e \u003c\/p\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#include \u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#include \u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#ifndef F_CPU\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Taktfrequenz der CPU definieren, falls nicht bereits definiert\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define F_CPU 8000000\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#endif\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Gewünschte Baudrate festlegen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define BAUDRATE 1200\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/UBRR-Wert berechnen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define UBRRVAL ((F_CPU\/(BAUDRATE*16UL))-1)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Empfängerparameter festlegen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define SYNC 0XAA\/\/Synchronisationssignal\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define RADDR 0x44\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define LEDON 0x11\/\/Befehl zum Einschalten der LED\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define LEDOFF 0x22\/\/Befehl zum Ausschalten der LED\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003evoid USART_Init(void)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Baudrate festlegen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUBRRL=(uint8_t)UBRRVAL; \/\/unteres Byte\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUBRRH=(UBRRVAL\u0026gt;\u0026gt;8);\t\/\/oberes Byte\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Datenrahmenformat festlegen: asynchron, keine Parität, 1 Stoppbit, 8 Bit\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUCSRC=(1\u0026lt; \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e(0\u0026lt; \u003c\/span\u003e \u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Sender, Empfänger und Interrupt bei vollständigem Empfang aktivieren\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUCSRB=(1\u0026lt; \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003evoid USART_vSendByte(uint8_t u8Data)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e \/\/Warten, wenn ein Byte gesendet wird\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e while((UCSRA\u0026amp;(1\u0026lt; \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/ Daten senden\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e UDR = u8Data; \u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003evoid Send_Packet(uint8_t addr, uint8_t cmd)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUSART_vSendByte(SYNC);\/\/Synchronisationsbyte senden\t\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUSART_vSendByte(addr);\/\/Empfängeradresse senden\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUSART_vSendByte(cmd);\/\/Inkrementbefehl senden\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUSART_vSendByte((addr+cmd));\/\/Prüfsumme senden\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003evoid delayms(uint8_t t)\/\/Verzögerung in ms\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003euint8_t i;\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003efor(i=0;i \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e_delay_ms(1);\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eint main(void)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eUSART_Init();\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003ewhile(1)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t{\/\/Endlossendung\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Befehl zum Einschalten der LED senden\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tSend_Packet(RADDR, LEDON);\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tdelayms(100);\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Befehl zum Einschalten der LED senden\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tSend_Packet(RADDR, LEDOFF);\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tdelayms(100);\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\treturn 0;\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e \u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eIn meinem Fall habe ich eine UART-Baudrate von 1200 verwendet. Sie kann je nach Entfernung und Umgebung erhöht oder verringert werden. Bei größeren Entfernungen funktionieren niedrigere Baudraten besser, da die Wahrscheinlichkeit für Übertragungsfehler größer ist. Die maximale Bitrate des Senders beträgt 8kbits\/s, was etwa 2400 Baud entspricht. Aber was in der Theorie funktioniert, tut sich in der Praxis meistens nicht. Daher war 1200 Baud das Maximum, was ich zuverlässig zum Laufen bringen konnte.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eDer Sender sendet dem Empfänger zwei Befehle (LEDON und LEDOFF) mit 100ms Abstand. Der Empfänger erkennt diese Befehle und schaltet die LED je nach erhaltenem Befehl ein oder aus. Auf diese Weise kann ich überwachen, ob die Datenübertragung korrekt funktioniert. Wenn die LED periodisch blinkt, erfolgt die Übertragung fehlerfrei. Wenn die empfangenen Daten fehlerhaft sind, blinkt die LED kürzer.\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eProgrammcode des Empfängers:\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cp style=\"margin-bottom: 0in;\"\u003e \u003c\/p\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#include \u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#include \u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#include \u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#ifndef F_CPU\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Taktfrequenz der CPU definieren, falls nicht bereits definiert\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define F_CPU 4000000\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#endif\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Gewünschte Baudrate festlegen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define BAUDRATE 1200\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/UBRR-Wert berechnen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define UBRRVAL ((F_CPU\/(BAUDRATE*16UL))-1)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Empfängerparameter festlegen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define SYNC 0XAA\/\/Synchronisationssignal\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define RADDR 0x44\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define LEDON 0x11\/\/Befehl zum Einschalten der LED\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e#define LEDOFF 0x22\/\/Befehl zum Ausschalten der LED\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cp\u003e\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003evoid USART_Init(void)\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Baudrate einstellen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUBRRRL=(uint8_t)UBRRVAL; \/\/unteres Byte\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUBRRH=(UBRRVAL\u0026gt;\u0026gt;8);\t\/\/oberes Byte\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Datenrahmenformat einstellen: asynchroner Modus, keine Parität, 1 Stoppbit, 8 Bit\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUCSRC=(1\u0026lt; \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e(0\u0026lt; \u003c\/span\u003e \u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Sender und Empfänger aktivieren sowie Interrupt bei vollständigem Empfang aktivieren\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tUCSRB=(1\u0026lt; \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/Globale Interrupts aktivieren\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003euint8_t USART_vReceiveByte(void)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e \/\/Warten, bis ein Byte empfangen wurde\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e while((UCSRA\u0026amp;(1\u0026lt; \u003c\/span\u003e\n\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\/\/ Empfangene Daten zurückgeben\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e return UDR;\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e}\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003eISR(USART_RXC_vect)\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Variablen definieren\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tuint8_t raddress, data, chk;\/\/Senderadresse\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Empfängeradresse\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\traddress=USART_vReceiveByte();\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Daten empfangen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tdata=USART_vReceiveByte();\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Prüfsumme empfangen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tchk=USART_vReceiveByte();\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t\/\/Empfangene Prüfsumme mit der berechneten vergleichen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\tif(chk==(raddress+data))\/\/Wenn übereinstimmend, Operationen ausführen\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e\t{\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003cpre\u003e\n\u003cspan font-size:=\"\" new=\"\" style=\"font-family: \" times=\"\"\u003e\u003cspan style=\"font-size: 14pt; color: rgb(51, 102, 255);\"\u003e \/\/Wenn die Senderadresse übereinstimmt\u003c\/span\u003e\u003c\/span\u003e\u003c\/pre\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e","brand":"Eletechsup Original Factory Official‌ Store ","offers":[{"title":"Default Title","offer_id":46537041674397,"sku":"BX005*1+BX011*1","price":17.98,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0707\/8622\/0189\/files\/10_310efa22-4ec8-4456-ae96-cbf8a37d7209.jpg?v=1740748159","url":"https:\/\/eletechsup.com\/de\/products\/pll-ask-ook-wireless-rf-wireless-link-transceiver-founction-rx-tx-modules-433mhz","provider":"Eletechsup Ready Stock Factory Store 6-10days to Worldwide","version":"1.0","type":"link"}