Xbee S2C RD Module

Xbee S2 Module
Xbee radios are based on IEEE 802.15.4 (technical standard which defines the operation of low-rate wireless personal area networks (LR-WPANs)) standard and it is designed for point to point, star etc. communication over the air.
Xbee is an IEEE 802.15.4 based specification for high-level communication protocols used to create personal area networks with low-power digital radios.
Following are the major features of XBee radio devices,
- They work on 2.4 GHz (Unlicensed Radio Band) radio frequency.
- Low data rate (≈250Kbps).
- Low power consumption (1mW, 6mW, 250mW etc.).
- Wireless communication over short distances (90m, 750m, 1mile etc.).
Hence they are used in Home Automation, Wireless Sensor Networks, Industrial Control, Medical Data Collection, Building Automation, etc.
To know more about how Xbee modules work, refer the topic Xbee Module in the sensors and modules section.
Features:
- Transmission Frequency: 2.4GHz to 2.5GHz
- Number of Channels: 16 Direct Sequence Channels
- Featured with UART (250 Kb/s maximum) and SPI (5 Mb/s maximum) interface
- Featured with software adjustable transmitting power
- Indoor/Urban Range: 200ft
- Outdoor RF line-of-sight Range: up to 4000ft
- Transmit Power Output: 6.3mW (8dBm) in Boost mode,2mW (3dBm) in Normal mode
- RF Data Rate: 250,000 bps
- Receiver Sensitivity: -102dBm in Boost mode, -100dBm in Normal mode
- Supply Voltage Range: +2.1V to +3.6V
- Operating Current: 33mA (at3.3V, for Normal mode) , 45mA (at 3.3V,for Boost mode)
- Idle Current: 9mA
- Maximum output current on all pins together: 40mA
- Power-down Current: <1uA @25C
- ESD protection: 3000V
- Operating Temperature: -40ºC to 85° C
Circuit Diagram for Transmiter Part:

Connections:
- Tx (pin2)of XBee -> Tx of Arduino board
- Rx(pin3) of Xbee -> Rx of Arduino board
- Gnd(pin10) of Xbee -> GND of Arduino board
- Vcc (Pin1) of Xbee -> 3.3v of Arduino board
Circuit Diagram for Receiver Part:

Connections:
- Tx (pin2)of XBee -> Rx of Arduino board
- Rx(pin3) of Xbee -> Tx of Arduino board
- Gnd(pin10) of Xbee -> GND of Arduino board
- Vcc (Pin1) of Xbee -> 3.3v of Arduino board
CODE:
int led = 13;
int received = 0;
int i;
void setup() {
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
received = Serial.read();
if (received == ‘a’){
digitalWrite(led, HIGH);
delay(2000);
digitalWrite(led, LOW);
}
else if (received == ‘b’){
for(i=0;i<5;i++){
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
delay(1000);
}
}
}
}
Application:
- Home automation
- Commercial building automation
- Industrial application control
- Smart energy
- Medium range wireless communication
Reference:
https://circuitdigest.com/microcontroller-projects/arduino-xbee-module-interfacing-tutorial
https://www.instructables.com/id/How-to-Use-XBee-Modules-As-Transmitter-Receiver-Ar/
https://www.electronicwings.com/arduino/xbee-s2-zigbee-interfacing-with-arduino-uno