DFR0221

DFR0221 Datasheet


DFRobot Leonardo with Xbee R3 SKU:DFR0221

Part Datasheet
DFR0221 DFR0221 DFR0221 (pdf)
PDF Datasheet Preview
DFRobot Leonardo with Xbee R3 SKU:DFR0221

Contents
• 1 Introduction
• 2 Specification
• 3 Leonardo Pin Out
• 4 Xbee Tutorial

Sample Code
• 5 Connection diagram

Introduction

DFRduino Leonardo DFRobot Leonardo with Xbee socket is an Arduino Leonardo variant processor.The Arduino Leonardo is based on the ATmega32u4 chip. It is the latest addition to the Arduino family. Compared with the earlier Arduino controllers,by using the ATmega32U4 as its sole microcontroller, allows the Leonardo to be cheaper and simpler to use.Also, because the 32U4 is handling the USB directly, code libraries are available which allow the board to emulate a computer keyboard, mouse, and more using the USB-HID protocol! Notice:This board is only supported in the latest Arduino IDE or later version so you will also need to update the IDE.

Specification
• Input Voltage recommended 7-12V
• Input Voltage limits 6-12V
• Microcontroller:ATmega32u4
• Operating Voltage 5V
• Interface Micro USB
• Compatible with Arduino R3 series pin mapping
• Directly support Xbee and XBee form factor wifi,bluetooth and RF modules
• Extend D14~D16 digital pins with 5v power supply
• Clock Speed 16 MHz
• Size 70x55x14mm
• Digital I/O Pins 20
• PWM Channels 7
• Analog Input Channels 12
• DC Current per I/O Pin 40 mA
• DC Current for 3.3V Pin 800 mA
• Flash Memory 32 KB ATmega32u4 of which 4 KB used by bootloader
• SRAM KB ATmega32u4
• EEPROM 1 KB ATmega32u4

Leonardo Pin Out

DFRduino Leonardo Pin Out

Xbee Tutorial

DFRobot Leonardo with Xbee R3 has a Xbee socket.It uses Serial1 to communicate with Leonardo.

Sample Code
// # Description // It is just used to test Leonardo module // Write by Grey // Input "p" once time the led will be turn on;twice to turn off. // It is controled by Serial1 Xbee side only. but you can check the status fr om serial port.
int ledPin=13;
int val;
int count=0;
void setup
pinMode ledPin,OUTPUT ;

Serial.begin 9600 ;

Serial1.begin 115200 // Xbee Serial1 port baud rate should be set the sa me to the xbee baud rate
void loop
val=Serial1.read // read xbee Serial1 data
if -1!=val
// "-1" means no data
if count==0 count=1 else if count==1 count=0;
digitalWrite ledPin,HIGH // Turn on Serial.println "LED ON" // you can check the status from serial port Serial1.println "LED ON" //you can check the status from serial1 port xbee . else if count==1 digitalWrite ledPin,LOW // Turn off Serial.println "LED OFF" //you can check the status from serial port Serial1.println "LED OFF" //you can check the status from serial1 por t xbee .

Connection diagram

DFRduino Leonardo With Xbee

DFRduino Leonardo With Xbee

Powered By DFRobot 2008-2017
More datasheets: ADNS-2080 | ADXRS620WBBGZ-RL | ACPM-7788-TR1 | FQPF18N50V2 | FQP18N50V2 | FDP5N50 | 76000654 | FIT0084-B | FDH700 | FDH700_T50R


Notice: we do not provide any warranties that information, datasheets, application notes, circuit diagrams, or software stored on this website are up-to-date or error free. The archived DFR0221 Datasheet file may be downloaded here without warranties.

Datasheet ID: DFR0221 508674