Radio Frequency Transmitter and Receiver XERE 02 A

  • Slides: 10
Download presentation
Radio Frequency Transmitter and Receiver XERE 02 A Transmitter XETX 02 A ~$20 from

Radio Frequency Transmitter and Receiver XERE 02 A Transmitter XETX 02 A ~$20 from http: //xenon-tech. com 1

DISCLAIMER & USAGE • The content of this presentation is for informational purposes only

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. boosting application-focused learning through student ownership of learning platforms • 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. 2

Transmitter Sends Signal to the Receiver receiver transmitter B D C A • four

Transmitter Sends Signal to the Receiver receiver transmitter 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 3

Data Sheet for Transmitter: XETX 02 A • • • economical short range RF

Data Sheet for Transmitter: XETX 02 A • • • economical short range RF transmission (< 45 meters) designed for automotive applications low power consumption (typically: 10 n. A when not transmitting) powered by a small 12 V battery transmission power of 10 m. W available in frequencies of 315 MHz and 435 MHz available 4

Data Sheet for Receiver: XERE 02 A 1 – 5 V 2 – data

Data Sheet for Receiver: XERE 02 A 1 – 5 V 2 – data valid 3 – GND 4 – output B 5 – output D 6 – output C 7 – output A 8 – antenna (18 cm of wire for 433 MHz) 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: 4 m. A) operating temperature range of -10°C to +70°C target operating voltage: 5 V (should be between 4 V and 6 V) available in frequencies of 315 MHz and 435 MHz 5

Implementation pushing transmitter buttons will send different tones to the piezospeaker 6

Implementation pushing transmitter buttons will send different tones to the piezospeaker 6

Implementation void setup(){Serial. begin(9600); } void loop() { int A=digital. Read(2); int B=digital. Read(5);

Implementation void setup(){Serial. begin(9600); } void loop() { int A=digital. Read(2); int B=digital. Read(5); int C=digital. Read(3); int D=digital. Read(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 {no. Tone(12); } } 7

Transmitters and Receivers Must Be “Paired” Pair is labeled as #7 - solder the

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! 8

Transmitter Receiver Pairs • The configurations below show the eight pins can be pulled

Transmitter Receiver Pairs • The configurations below show 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 pair 1 8 7 6 5 4 3 2 1 7 6 5 4 3 2 8 1 7 6 5 4 3 2 1 7 6 5 4 3 2 pair 8 6 5 4 3 2 1 pair 13 8 7 6 5 4 3 2 1 pair 14 8 7 6 5 4 3 2 1 pair 11 8 1 7 pair 10 8 1 pair 7 8 pair 4 5 pair 6 8 1 6 pair 9 8 1 pair 3 8 7 pair 5 pair 2 8 8 1 7 6 5 4 3 2 1 pair 15 8 pair 12 7 6 5 4 3 2 1 pair 16 9

transmitter 7 Transmitting Signal to the Receiver receiver 7 • Transmitter 7 controls receiver

transmitter 7 Transmitting Signal to the Receiver receiver 7 • Transmitter 7 controls receiver 7. • Using another transmitter at the same time jams communications between transmitter 7 and receiver 7. transmi tter not paired w ith rece i ver 7 10