©Parallax, Inc. • 433.92 MHz RF Transmitter and Receiver (#27980, #27981) • v1.0 1/06 Page 7 of 8
LOW 0
SERIN 7, 16468, [WAIT("!"), x.HIGHBYTE, x.LOWBYTE, y.HIGHBYTE, y.LOWBYTE]
HIGH 0
DEBUG ? x
DEBUG ? y
LOOP
Javelin Stamp Application Example
The following two programs demonstrate a simple transmit (Tx) and receive (Rx) communication utilizing
the RF modules and Javelin Stamps.
Note: For the transmit (Tx) code connect I/O pin 8 of a Javelin Stamp to the DATA line on the RF
transmitter module. For the receive (Rx) code, connect I/O pin 7 of another Javelin Stamp to the DATA
line on the RF receiver module.
RFmoduleTX.java
/***
RFmoduleTX.java
This code is for simple demonstration of the Parallax 433.92 Mhz RF Transmitter
(#27980)
Connect Javelin I/O pin 8 to the RF Tx module DATA line.
Connect +5v (Vdd) to the RF Tx module 5v line.
Connect ground (Vss) to the RF Tx module GND line.
This code will transmit at 9600 baud, inverted.
This code is meant to run in conjunction with RF Rx module (#27981) running code set
to receive at 9600 baud.
***/
import stamp.core.*;
public class RFmoduleTx {
static Uart txUart = new Uart (Uart.dirTransmit, CPU.pin8, Uart.invert,
Uart.speed9600, Uart.stop1);
static byte x = 0;
static byte y = 0;
public static void main() {
while(true) {
if (x >= 10) x = 0;
else x++;
if (y >= 10) y = 0;
else y++;
CPU.pulseOut(300, CPU.pin8); //Sync pulse to help Rx after periods of no
communication.
txUart.sendString("!"); //Start char that Rx will look for
txUart.sendByte(x); //Sending 2 words: high byte, low byte
txUart.sendByte(y);
CPU.delay(25); //help set spacing
} //end while
} //end main
} //end class
©Parallax, Inc. • 433.92 MHz RF Transmitter and Receiver (#27980, #27981) • v1.0 1/06 Page 8 of 8
RFmoduleRX.java
/***
RFmoduleRx.java
This code is for simple demonstration of the Parallax 433.92 Mhz RF Reciever (#27980)
Connect Javelin I/O pin 7 to the RF Rx module DATA line.
Connect +5v (Vdd) to the RF Rx module 5v line.
Connect ground (Vss) to the RF Rx module GND line.
This code will receive at 9600 baud, inverted.
This code is meant to run in conjunction with RF Tx module (#27981) running code set
to transmit at 9600 baud.
***/
import stamp.core.*;
public class RFmoduleRx {
static Uart rxUart = new Uart (Uart.dirReceive, CPU.pin7, Uart.invert,
Uart.speed9600, Uart.stop1);
static StringBuffer buffer = new StringBuffer(128);
static byte c;
static byte x = 0; static byte y = 0;
static void bufferMessage(){
c=0;
do{
c = (byte)rxUart.receiveByte();
} while (c != 33);
x = (byte)rxUart.receiveByte();
y = (byte)rxUart.receiveByte();
} //end bufferMessage
public static void main() {
while(true) {
buffer.clear();
bufferMessage();
System.out.println(x);
System.out.println(y);
} //end while
} //end main
} //end class
FCC Notice and Liability Disclaimer
These modules (boards) are not FCC approved. They are designed to comply with FCC Part 15 Rules and
Regulations. They are not in a finished product form. They are strictly intended for experimental
purposes only. If you wish to use these modules in an actual product (a non-experimental capacity), the
module must first be designed into the product then the whole product must be approved by the FCC.
Parallax, Inc. is not responsible for special, incidental, or consequential damages resulting from any
breach of warranty, or under any legal theory, including lost profits, downtime, goodwill, damage to or
replacement of equipment or property, and any costs of recovering, reprogramming, or reproducing any
data stored in or used with Parallax products.

27980

Mfr. #:
Manufacturer:
Parallax
Description:
LS-1700 316 S.S., PTFE, N.C., 20 VA
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet