Radio Frequency Transmitter and Receiver Receiver XERE02A Transmitter XETX02A ~$20 from http://xenon-tech.com
DISCLAIMER & USAGE The content of this presentation is for informational purposes only and is intended for students attending Louisiana Tech University only. The authors of this information do not make any claims as to the validity or accuracy of the information or methods presented. Any procedures demonstrated here are potentially dangerous and could result in damage and injury. Louisiana Tech University, its officers, employees, agents and volunteers, are not liable or responsible for any injuries, illness, damage or losses which may result from your using the materials or ideas, or from your performing the experiments or procedures depicted in this presentation. The Living with the Lab logos should remain attached to each slide, and the work should be attributed to Louisiana Tech University. If you do not agree, then please do not view this content. boosting application-focused learning through student ownership of learning platforms
Transmitter Sends Signal to the Receiver B D C A four pins on the receiver are tied to four buttons on the transmitter a pin goes high when a button is pressed
Data Sheet for Transmitter: XETX02A economical short range RF transmission (< 45 meters) designed for automotive applications low power consumption (typically: 10nA when not transmitting) powered by a small 12V battery transmission power of 10mW available in frequencies of 315MHz and 435MHz available
Data Sheet for Receiver: XERE02A 2 – data valid 3 – GND 4 – output B 5 – output D 6 – output C 7 – output A 8 – antenna (18cm of wire for 433MHz) 8 1 2 3 4 5 6 7 economical short range RF transmission miniature size of 47 x 20 x 8 mm low power consumption (typically: 4mA) operating temperature range of -10°C to +70°C target operating voltage: 5V (should be between 4V and 6V) available in frequencies of 315MHz and 435MHz
Implementation pushing transmitter buttons will send different tones to the piezospeaker
Implementation void setup(){Serial.begin(9600); } void loop() { int A=digitalRead(2); int B=digitalRead(5); int C=digitalRead(3); int D=digitalRead(4); Serial.print(A); Serial.print(B); Serial.print(C); Serial.println(D); if (A==1) {tone(12,1000);} else if (B==1) {tone(12,1500);} else if (C==1) {tone(12,2000);} else if (D==1) {tone(12,2500);} else {noTone(12); } }
Transmitters and Receivers Must Be “Paired” Pair is labeled as #7 - solder the middle row to the upper row to pull pin 7 high 8 7 6 5 4 3 2 1 pull high pull low NOTE: For RF transmitter and receiver pairs rented though LWTL, this has already been done . . . no need for you to solder!
Transmitter Receiver Pairs The configurations below show how the eight pins can be pulled high or low through soldering to create 16 unique transmitter / receiver pairings There are 28 = 256 possible pairings If all 256 are desired, it would be nice to treat the pins as digits of a binary number . . . the soldering scheme here is just for convenience 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 pair 1 pair 9 pair 5 pair 13 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 pair 2 pair 10 pair 6 pair 14 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 pair 3 pair 11 pair 7 pair 15 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 pair 4 pair 12 pair 8 pair 16
Transmitting Signal to the Receiver transmitter 7 receiver 7 transmitter not paired with receiver 7 Transmitter 7 controls receiver 7. Using another transmitter at the same time jams communications between transmitter 7 and receiver 7.