An RF radio transmitter converts a digital signal into wireless radio waves which can be received by an RF radio receiver.
RF Radio Transmitter
Schematic
PCB
Send a data packet using RFOUT
This program will send a data packet of incrementing byte variables every second to an RF transmitter module connected to output pin B.1.
- Code Example:
-
main: inc b0 ; Increment the base value b1 = b0 + 1 ; Set other variables from the base value b2 = b0 + 2 b3 = b0 + 3 b4 = b0 + 4 b5 = b0 + 5 b6 = b0 + 6 b7 = b0 + 7 rfout B.1, ( b0, b1, b2, b3, b4, b5, b6, b7 ) ; Send the data packet pause 1000 ; Wait 1 second goto main ; Send next data
Copy Code Submit an Example
Send a data packet via an NKM2401
This program will send a data packet of incrementing byte variables every second to an NKM2401 module connected to output pin B.1 with an RF transmitter module connected.
- Code Example:
-
main: inc b0 ; Increment the base value b1 = b0 + 1 ; Set other variables from the base value b2 = b0 + 2 b3 = b0 + 3 b4 = b0 + 4 b5 = b0 + 5 b6 = b0 + 6 b7 = b0 + 7 serout B.1, n2400, ( b0, b1, b2, b3, b4, b5, b6, b7 ) ; Send the data packet pause 1000 ; Wait 1 second goto main
Copy Code Submit an Example
Send a data packet directly to an RF module
This program will send a data packet of incrementing byte variables every second to an RF transmitter module connected to output pin B.1.
- Code Example:
-
main: inc b0 ; Increment the base value b1 = b0 + 1 ; Set other variables from the base value b2 = b0 + 2 b3 = b0 + 3 b4 = b0 + 4 b5 = b0 + 5 b6 = b0 + 6 b7 = b0 + 7 serout B.1, t2400, ( "UUUUUUUUUUUUUUUUUUUUUUUUUUUU" ) ; Send a preamble pause 10 ; Allow receiver to synchronise serout B.1, t2400, ( "XYZZY" ) ; Send a data qualifier serout B.1, t2400, ( b0, b1, b2, b3, b4, b5, b6, b7 ) ; Send the data packet pause 1000 ; Wait 1 second goto main
Copy Code Submit an Example
Create Module
A NKM2401 based radio module may be connected to the generic terminal block create module.
Bill of Materials
Description | Code | Qty | |
---|---|---|---|
RF radio transmitter (transmitter and receiver pair in pack) | RFA001 | 1 | Buy Now |
Simulation
Submit Your Own Code!
You must be logged in to submit code examples. Login now.
Share