测试

From Makerfire
Jump to: navigation, search

English

产品介绍

Bee扩展板支持同时使用多个Bee系列模块(XBee,Bluetooth Bee,GPS Bee等等),除了配有Bee系列模块需要的2mm间距排针接口外,还提供了充裕的原型开发区域,支持用跳线帽选择使用的软件串口。 Bee扩展板兼容Seeeduino、Arduino Uno、Duemilanove。
Model:INT119B2P

http://www.seeedstudio.com/depot/images/product/beesshield.jpg

使用说明

XBee模块使用软件串口

  • 1、把XBee模块插入第一个Bee接口,跳线帽的选择见下图(下图给出的信息不全,不能看到PCB板丝印层,需修改 这个没有关系)。

File:Bees-Shield-pin.jpg

  • 2、下载下面的代码。打开串口监视器。这时,XBee模块和其他XBee模块通信,收发的内容会显示在串口监视器上。
#include <SoftwareSerial.h>
SoftwareSerial mySerial(7, 8);

void setup() {
  Serial.begin(9600);
  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
  mySerial.println("Hello, world?");
}

void loop() {
  // run over and over
  if (mySerial.available())
    Serial.write(mySerial.read());
  if (Serial.available())
    mySerial.write(Serial.read());
}

下载程序到RFBee上

  • 1、只能从第二个Bee接口上给RFBee模块下载程序。开关拨到USB那边。
void setup() { 
   DDRD=0x00; 
} 

void loop() {}
  • 2、先下载下面的代码到底板Arduino,以禁用Arduino UART串口。如果底板Arduino使用Atmega168,则不能给RFBee下载程序。需要使用配有Atmega328芯片的底板。
  • 3、如果不给RFBee下载程序,把开关拨到Atmega那边。

Arduino无线程序下载示例

  • 1、焊接JP1跳线


Bees-Shield-upload.jpg

  • 2、按照ladyada网站提供的教程第一、二步,配置XBee收发模块。
  • 3、下载XBee模块配置文件,用XBee配置软件XCTU来配置XBee模块。
  • 4、完成无线程序下载步骤。

扩展接口使用示例


File:Bees-Shield-expansion.jpg

  • 1、焊好2个8管脚、2个6管脚的母排针。
  • 2、在扩展区域可以安装其他扩展板,如音乐扩展板,以实现无线控制音乐的播放。

File:Bees-Shield-expan2.jpg

其他资源