A Multi-channel UHF Data Transceiver designed as a UART wireless cable operating baudrate 9600bps, half duplex, no hardware handshake mode. As long as your data packet does not exceed 96 bytes. Using Serial print and Serial Event program to use it. Arduino/gizDuino Compatible.
Technical Manual
Specifications:
Operating Voltage: 5V
Frequency Range: 431.1MHz – 437.3 MHz
Channel Separation: 400Khz
Transmit to Receive latency: 20-30ms
RSSI: 150-635, with 635 corresponding to -38dbm antenna RF input signal strength
Wiring Connections: (Transmitter and Receiver)
UHF STD —> gizDuino 328 UNO
+5V —> +5V
GND —> GND
TXD —> D0 (RX)
RXD —> D1 (TX)
- Note: The Channel selection must be the same channel both transmitter and receiver to communicate.
- Tips: To avoid some error in uploading…Do not upload the code when the UHF module TXD pin to RX gizduino is connected, use the slide switch to disable/disconnect the connection.
Codes:
Transmitter:
| String inputString = ""; // a string to hold incoming data |
| String COMMAND = ""; |
| |
| void setup() { |
| Serial.begin(9600); |
| inputString.reserve(200); |
| } |
| |
| void loop() |
| { |
| //Trasmitting data |
| Serial.println("Transmitter"); |
| delay(1000); |
| |
| Serial.println("1"); |
| delay(1000); |
| |
| Serial.println("2"); |
| delay(1000); |
| |
| Serial.println("3"); |
| delay(1000); |
| |
| } |
| |
| |
| void serialEvent() { |
| while (Serial.available() > 0) { |
| |
| // get the new byte: |
| char inChar = (char)Serial.read(); |
| // add it to the inputString: |
| inputString += inChar; |
| inputString.trim(); |
| |
| if (inChar == '\n') { |
| |
| COMMAND = inputString.substring(0); |
| COMMAND.trim(); |
| |
| Serial.println(COMMAND); |
| |
| inputString= ""; |
| COMMAND = ""; |
| } |
| } |
| } |
Receiver:
| String inputString = ""; // a string to hold incoming data |
| String COMMAND = ""; |
| |
| void setup() { |
| |
| Serial.begin(9600); |
| inputString.reserve(200); |
| |
| } |
| |
| void loop() { |
| //Transmitting data |
| Serial.println("Receiver"); |
| delay(1000); |
| |
| Serial.println("1"); |
| delay(1000); |
| |
| Serial.println("2"); |
| delay(1000); |
| |
| Serial.println("3"); |
| delay(1000); |
| |
| } |
| |
| void serialEvent() { |
| |
| while (Serial.available() > 0) { |
| |
| // get the new byte: |
| char inChar = (char)Serial.read(); |
| // add it to the inputString: |
| inputString += inChar; |
| inputString.trim(); |
| |
| if (inChar == '\n') { |
| |
| COMMAND = inputString.substring(0); |
| COMMAND.trim(); |
| |
| Serial.println(COMMAND); |
| |
| inputString= ""; |
| COMMAND = ""; |
| |
| } |
| } |
| } |