예술
뷰티 및 웰니스
공예
문화 및 역사
엔터테인먼트
환경
음식 및 음료
역공학
과학
스포츠
기술
웨어러블
XBee Point-to-Point Wireless Link
Ed

작성자

Ed

14. 8월 2026FI
2
0
0
0
0

XBee Point-to-Point Wireless Link

Two radios that behave like a serial cable with the middle cut out. A pair of Series 1 XBee modules on 802.15.4 pass bytes transparently: whatever enters one module's data-in leaves the other's data-out. Factory-fresh modules already share a network identifier and channel, so a plain link needs no configuration at all. One end sits on an Arduino shield, the other on a USB explorer at a computer. Series 1 does point-to-point directly and does not need the mesh addressing the Series 2 parts use.
초급
2 hours

안내

1

Solder headers to the XBee shield

Solder the Arduino headers to the shield. The 2 mm XBee sockets are already fitted — only the 0.1 inch Arduino headers need soldering.

이 단계의 재료:

Sparkfun XBee ShieldSparkfun XBee Shield1

필요한 도구:

Ryobi ONE+ RSI18-0 Cordless Soldering IronRyobi ONE+ RSI18-0 Cordless Soldering Iron
2

Seat the radios — and mind the orientation

One module into the USB explorer, the other into the shield.

  1. The modules are keyed: the pointed end of the outline matches the pointed end of the socket.
  2. Press straight down; the 2 mm pins bend easily.
XBee modules run at 3.3 V. The shield and the explorer both regulate for them — never feed a bare module 5 V, and never wire one straight to an Arduino I/O pin.

이 단계의 재료:

XBee 1mW Trace Antenna - Series 1 (802.15.4)XBee 1mW Trace Antenna - Series 1 (802.15.4)2
SparkFun XBee Explorer USBSparkFun XBee Explorer USB1
3

Confirm both radios share a network and channel

Plug the explorer into the computer and open a terminal at 9600 baud.

  1. Type +++ and wait — do not press Enter. The module replies OK.
  2. ATID shows the network identifier, ATCH the channel.
  3. Repeat for the second module and make the two match. ATWR saves.
Factory-fresh modules already match, so a new pair usually needs none of this. Do it anyway once — knowing how to read the settings is what lets you fix a link later.
4

Power the Arduino end and send bytes

Stack the shield on the Uno. Power over USB-B while testing; a 7–12 V supply on the barrel jack once it runs standalone.

Set the shield's UART switch to DLINE before uploading, then back for the radio to talk. On the SparkFun shield the radio shares the hardware UART with the USB port, so an upload and a live link cannot both use it at once.

xbee_counter.inoarduino
// XBee Point-to-Point Link -- transmitting end
// Sends an incrementing counter once a second over the XBee shield.
// The receiving end is a terminal on the USB explorer at the same baud.
//
// SparkFun XBee Shield UART switch:
//   DLINE = radio on D2/D3 (SoftwareSerial, leaves USB free) <- used here
//   UART  = radio on D0/D1 (hardware serial, blocks uploads)
// DLINE lets the USB serial monitor stay usable while the radio runs.

#include <SoftwareSerial.h>

const int XBEE_RX_PIN = 2;   // Arduino receives  <- XBee DOUT
const int XBEE_TX_PIN = 3;   // Arduino transmits -> XBee DIN
const long XBEE_BAUD  = 9600;   // XBee Series 1 factory default

SoftwareSerial xbee(XBEE_RX_PIN, XBEE_TX_PIN);

unsigned long counter = 0;

void setup() {
  Serial.begin(9600);    // local monitor, over USB
  xbee.begin(XBEE_BAUD); // the radio link
  Serial.println(F("transmitting..."));
}

void loop() {
  xbee.print(F("count="));
  xbee.println(counter);

  Serial.print(F("sent count="));   // so you can see it leave
  Serial.println(counter);

  counter++;
  delay(1000);
}

이 단계의 재료:

Arduino Uno R3 SMDArduino Uno R3 SMD1
USB-B CableUSB-B Cable1
5

Find the range where it actually fails

Walk the Arduino end away from the computer until the counter starts skipping, and write down the distance and what stood between the radios.

The quoted range assumes open air and line of sight. One brick wall or a metal cabinet cuts it sharply. Your measured figure is worth more than the datasheet's, because it is the one your project has to live with.

재료

5

필요 도구

1
예상 총액
₩1,726

CC0 퍼블릭 도메인

이 블루프린트는 CC0로 공개되었습니다. 어떤 목적으로든 자유롭게 복사, 수정, 배포 및 사용할 수 있습니다.

제품 구매를 통해 메이커를 지원하세요. 판매자가 설정한 메이커 커미션 을 받거나, 이 블루프린트의 새로운 반복을 만들어 연결로 포함시킬 수 있습니다.

토론

(0)

로그인 하여 토론에 참여하세요

댓글 로딩 중...