RF Wireless 315 / 433 MHz Transmitter Module
- Was RM5.00
-
RM4.00
- Product Code: rf-module-transmitter
- Availability: In Stock
Specification:
RF Transmitter FS1000A / XY-FST |
Arduino |
DATA | Digital Pin-4 |
VCC | 5V |
GND | GND |
We will make the Arduino's onboard LED illuminate when the transmitter pin is HIGH, and go off when LOW as described in the following table.
And this is the Arduino Sketch to carry out the data transmission:
Cycle | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
High | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 | 2000 |
Low | 4000 | 2667 | 1778 | 1185 | 790 | 527 | 351 | 234 | 156 | 104 | 69 | 46 | 31 | 21 | 14 | 9 | 6 | 4 |
Arduino sketch - Transmitter
/* RF Blink - Transmit sketch Written by ScottC 17 Jun 2014 Arduino IDE version 1.0.5 Website: http://arduinobasics.blogspot.com Transmitter: FS1000A/XY-FST Description: A simple sketch used to test RF transmission. ------------------------------------------------------------- */ #define rfTransmitPin 4 //RF Transmitter pin = digital pin 4 #define ledPin 13 //Onboard LED = digital pin 13 void setup(){ pinMode(rfTransmitPin, OUTPUT); pinMode(ledPin, OUTPUT); } void loop(){ for(int i=4000; i>5; i=i-(i/3)){ digitalWrite(rfTransmitPin, HIGH); //Transmit a HIGH signal digitalWrite(ledPin, HIGH); //Turn the LED on delay(2000); //Wait for 1 second digitalWrite(rfTransmitPin,LOW); //Transmit a LOW signal digitalWrite(ledPin, LOW); //Turn the LED off delay(i); //Variable delay } }
Tags: RF, Radio Frequency