Wireless TYWu 433 Mhz RF link kit Picture

  • Slides: 13
Download presentation
Wireless TYWu

Wireless TYWu

433 Mhz RF link kit • Picture

433 Mhz RF link kit • Picture

433 Mhz RF link kit • Specification – Frequency: 433 Mhz. – Receiver Data

433 Mhz RF link kit • Specification – Frequency: 433 Mhz. – Receiver Data Output: High - 1/2 Vcc, Low 0. 7 v – Transmitter Input Voltage: 3 -12 V (high voltage = more transmitting power)

433 Mhz RF link kit • Usage – MCU -> Encoder -> Transmitter ------

433 Mhz RF link kit • Usage – MCU -> Encoder -> Transmitter ------ Receiver -> Decoder -> MCU

433 Mhz RF link kit • Pin Connections

433 Mhz RF link kit • Pin Connections

433 Mhz RF link kit • Pin Connections

433 Mhz RF link kit • Pin Connections

Experiment • Library – http: //www. seeedstudio. com/depot/images/pro duct/Virtual. Wire. rar

Experiment • Library – http: //www. seeedstudio. com/depot/images/pro duct/Virtual. Wire. rar

Experiment • transmitter. pde #include <Virtual. Wire. h> #undef int #undef abs #undef double

Experiment • transmitter. pde #include <Virtual. Wire. h> #undef int #undef abs #undef double #undef float #undef round

Experiment void setup() { Serial. begin(9600); // Debugging only Serial. println("setup"); // Initialise the

Experiment void setup() { Serial. begin(9600); // Debugging only Serial. println("setup"); // Initialise the IO and ISR vw_set_ptt_inverted(true); // Required for DR 3100 vw_setup(2000); // Bits per sec } void loop() { const char *msg = "hello"; digital. Write(13, true); // Flash a light to show transmitting vw_send((uint 8_t *)msg, strlen(msg)); vw_wait_tx(); // Wait until the whole message is gone digital. Write(13, false); delay(200); }

Experiment • receiver. pde #include <Virtual. Wire. h> #undef int #undef abs #undef double

Experiment • receiver. pde #include <Virtual. Wire. h> #undef int #undef abs #undef double #undef float #undef round

Experiment void setup() { Serial. begin(9600); // Debugging only Serial. println("setup"); // Initialise the

Experiment void setup() { Serial. begin(9600); // Debugging only Serial. println("setup"); // Initialise the IO and ISR vw_set_ptt_inverted(true); // Required for DR 3100 vw_setup(2000); // Bits per sec vw_rx_start(); // Start the receiver PLL running }

Experiment void loop() { uint 8_t buf[VW_MAX_MESSAGE_LEN]; uint 8_t buflen = VW_MAX_MESSAGE_LEN; if (vw_get_message(buf,

Experiment void loop() { uint 8_t buf[VW_MAX_MESSAGE_LEN]; uint 8_t buflen = VW_MAX_MESSAGE_LEN; if (vw_get_message(buf, &buflen)) // Non-blocking { int i; digital. Write(13, true); // Flash a light to show received good message // Message with a good checksum received, dump it. Serial. print("Got: "); for (i = 0; i < buflen; i++) { Serial. print(buf[i], HEX); Serial. print(" "); } Serial. println(""); digital. Write(13, false); } }

Other Example • http: //winavr. scienceprog. com/example-avr -projects/running-tx 433 -and-rx 433 -rfmodules-with-avr-microcontrollers. html

Other Example • http: //winavr. scienceprog. com/example-avr -projects/running-tx 433 -and-rx 433 -rfmodules-with-avr-microcontrollers. html