2.4 GHz
2.4 GHz
Up to 250 kbps
Up to 120 meters (400 feet) line-of-sight
2mW (transmit), 30mA (receive)
Integrated PCB antenna
UART, SPI, and IC
2.1-3.6V
-40C to +85C (-40F to +185F)
Applications
| The Xbee S2C 2mW Wireless Module with Antenna is suitable for a wide range of IoT applications, including |
Industrial automation and control systems
Home automation and security systems
Wireless sensor networks
M2M communication systems
IoT devices and gateways
Documentation and Resources
For more information on the Xbee S2C 2mW Wireless Module with Antenna, including datasheets, user manuals, and development resources, please visit the Digi International website.
Xbee S2C 2mW Wireless Module with Antenna DocumentationOverviewThe Xbee S2C 2mW Wireless Module with Antenna is a low-power, low-cost wireless communication module designed for IoT applications. It operates on the 2.4 GHz frequency band and supports Zigbee and IEEE 802.15.4 protocols. This module is ideal for wireless sensor networks, industrial automation, and remote monitoring applications.Features2mW transmit power
Up to 40 km line-of-sight range
Supports Zigbee and IEEE 802.15.4 protocols
10 dBm receiver sensitivity
3.3V operating voltage
14-pin through-hole package
Integrated antennaPinout| Pin | Function |
| --- | --- |
| 1 | VCC (3.3V) |
| 2 | GND |
| 3 | TX (Transmit) |
| 4 | RX (Receive) |
| 5 | RTS (Request to Send) |
| 6 | CTS (Clear to Send) |
| 7 | DTR (Data Terminal Ready) |
| 8 | DSR (Data Set Ready) |
| 9 | SLEEP |
| 10 | ASSOC |
| 11 | RSSI |
| 12 | NC (Not Connected) |
| 13 | NC (Not Connected) |
| 14 | NC (Not Connected) |Code Examples### Example 1: Basic Serial Communication using ArduinoIn this example, we will demonstrate how to use the Xbee S2C module to establish a serial communication link between two Arduino boards.Transmitter (Arduino Board 1)
```c
#include <SoftwareSerial.h>SoftwareSerial xbee(2, 3); // RX, TXvoid setup() {
xbee.begin(9600);
}void loop() {
xbee.print("Hello, world!");
delay(1000);
}
```Receiver (Arduino Board 2)
```c
#include <SoftwareSerial.h>SoftwareSerial xbee(2, 3); // RX, TXvoid setup() {
xbee.begin(9600);
Serial.begin(9600);
}void loop() {
if (xbee.available()) {
Serial.println(xbee.readStringUntil('
'));
}
}
```### Example 2: Zigbee Network using Python and PySerialIn this example, we will demonstrate how to use the Xbee S2C module to create a Zigbee network using Python and PySerial.Coordinator Node (Raspberry Pi or PC)
```python
import serial
from xbee import ZigBee# Open the serial port
ser = serial.Serial('/dev/ttyUSB0', 9600)# Create a ZigBee object
zb = ZigBee(ser, escaped=True)# Set the coordinator node
zb.atcmd('CE', '1')# Start the coordinator node
zb.send('(ATCN)')
```End Device Node (Arduino Board)
```c
#include <XBee.h>XBee xbee = XBee();void setup() {
xbee.begin(9600);
}void loop() {
xbee.send("Hello, coordinator!");
delay(1000);
}
```Coordinator Node (Raspberry Pi or PC) - Receive Data
```python
import serial
from xbee import ZigBee# Open the serial port
ser = serial.Serial('/dev/ttyUSB0', 9600)# Create a ZigBee object
zb = ZigBee(ser, escaped=True)while True:
# Receive data from the end device
rx = zb.wait_read_frame()
if rx:
print(rx['rf_data'].decode('utf-8'))
```These examples demonstrate the basic functionality of the Xbee S2C 2mW Wireless Module with Antenna. For more advanced features and configurations, please refer to the official documentation and datasheet.