+ All Categories
Home > Documents > CBB-XBEE-manual.pdf

CBB-XBEE-manual.pdf

Date post: 18-Nov-2015
Category:
Upload: gian-truong-sinh
View: 32 times
Download: 0 times
Share this document with a friend
Popular Tags:
7
XBEE CAPE MANUAL Beagle Bone Black XBee Prototyping Cape CBB-XBEE Revision 1.0 June 3, 2014 www.logicsupply.com [email protected] +1 802 861 2300 1
Transcript
  • XBEE CAPE MANUAL

    Beagle Bone Black XBee Prototyping Cape

    CBB-XBEE Revision 1.0

    June 3, 2014

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    1

    http://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw

  • XBEE CAPE MANUAL

    Description The XBee cape makes it easy to use an XBee or other compatible radio with your BeagleBone or BeagleBone Black

    projects. It provides an XBee footprint, general prototyping area, and footprints for 2x LEDs and 2x tactile switches.

    Features Female headers for XBee or other compatible radio Dedicated 3.3V linear regulator to provide plenty of current for radio as well as user circuitry Footprints for LEDs connected to XBee Associate and RSSI signals Footprints for 2 vertical or right-angle tactile switches Access to all P8 and P9 header connection points 169 0.1 spaced holes for general prototyping Easy access to 3.3V and 5V power rails Dimensions: 55 x 87 x 13mm (above P8,P9) RoHS compliant

    Architecture Signal name Header Pin Pin Mode Comments UART2_TXD P9_21 UART2 TX Serial data out to radio UART2_RXD P9_22 UART2 RX Serial data in from radio

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    2

    http://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw

  • XBEE CAPE MANUAL

    BeagleBone Black Pin Allocation

    Requirements for use (not included): BeagleBone Black with suitable distribution loaded 5V DC Power Supply for BeagleBone Black, 2A recommended

    Getting Started

    1. Solder the supplied 2x23 headers to the outer footprints labeled P8 and P9. The easiest way to make sure

    theyre lined up correctly is to plug the headers into a powered off BeagleBone, place the cape on the

    headers, then solder it in place

    2. Solder the supplied 2mm female headers in the XBee footprint

    3. Install the cape and insert your radio module while the BeagleBone is powered off

    4. Power up your BeagleBone and youre ready to go!

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    3

    http://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw

  • XBEE CAPE MANUAL

    Key Component Locations

    Radio - XBee Compatible Footprint

    The pins that are connected are (labeled by XBee pin names):

    J1 Name Description

    Pin 1 VDD Radio supply, connected to output of the 3.3V regulator

    Pin 2 Serial out Connected to UART2 RX by default

    Pin 3 Serial in Connected to UART2 TX by default

    Pin 5 RESET Active low radio reset, connected to RST via

    Pin 6 RSSI XBee signal strength, may be connected through R4 to LED2

    Pin 7 DIO11 Connected to P7 via, DIO11 on XBee

    Pin 10 GND Connected to BeagleBone GND

    Pin 12 CTS Connected to P12 via, CTS or DIO7 on XBee

    Pin 15 Assoc. XBee associate indicator, may be connected through R3 to LED1

    Pin 16 RTS Connected to P16 via, RTS or DIO6 on XBee

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    4

    http://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw

  • XBEE CAPE MANUAL

    LED1, R3 - XBee Associate Signal or User LED

    If R3 and LED1 are both populated, the LED will indicate a connected XBees network association status.

    If R3 is not populated, then LED1 may be used as a general purpose LED, in which case you can connect to the anode

    by running a wire to the via in the R3 footprint that is closer to the LEDs.

    LED2, R4 - XBee RSSI or User LED

    If R4 and LED2 are both populated, the brightness of the LED will indicate a connected XBees received signal

    strength.

    If R4 is not populated, then LED2 may be used as a general purpose LED, in which case you can connect to the anode

    by running a wire to the via in the R4 footprint that is closer to the LEDs.

    TX, R1 - Radio Serial Output

    By default the radios serial output is connected to UART2s RX input. You may optionally connect the radio serial

    output to another UART by removing R1 then wiring from the TX via to the desired UARTs RX pin on the P8 or P9

    header.

    RX, R2 - Radio Serial Input

    By default the radios serial input is connected to UART2s TX output. You may optionally connect the radio serial

    input to another UART by removing R2 then wiring from the RX via to the desired UARTs TX pin on the P8 or P9

    header.

    GND, 3.3V, 5V - Power Supply Connections

    These pins can be used to power your prototyped circuit. GND is connected directly to the BeagleBones GND, 5V is

    connected directly to the 5V supply voltage from the BeagleBones DC barrel jack, and 3.3V is connected to the

    ouptut of the capes TLV1117 linear regulator. You can draw up to 500mA from the 3.3V connections.

    S1, S2, R5, R6 - Optional Tact Switches

    The S1 and S2 footprints may be used to hold either vertical or right-angle tact switches. The two sides of the

    switches can be accessed from the nearby vias as labeled on the silkscreen. R5 and R6 may optionally be used as

    pull-up or pull-down resistors for the switches, and are routed as shown on the silkscreen.

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    5

    http://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw

  • XBEE CAPE MANUAL

    Programming To communicate with the connected XBee or other compatible radio youll need to first enable UART2. To do this you

    can use the BB-UART2-00A0.dtbo Device Tree overlay thats already included with your Kernel. Use the capemgr driver to enable the overlay:

    root@beaglebone:~#echoBBUART2>/sys/devices/bone_capemgr.*/slots

    You can confirm that the overlay loaded successfully by reading the contents of the slots file:

    root@beaglebone:~#cat/sys/devices/bone_capemgr.*/slots0:54:PF1:55:PF2:56:PF3:57:PF4:ff:POLBoneLTeMMC2G,00A0,TexasInstrument,BBBONEEMMC2G5:ff:POLBoneBlackHDMI,00A0,TexasInstrument,BBBONELTHDMI7:ff:POLOverrideBoardName,00A0,OverrideManuf,BBUART2

    In this case the BB-UART2 overlay was loaded in slot #7.

    You will now have the /dev/ttyO2 serial port file for UART2 which you can use this to communicate with the XBee. For example, using the python-xbee Python library (https://code.google.com/p/python-xbee/) would look like:

    fromxbeeimportXBeeimportserialser=serial.Serial('/dev/ttyO2',9600)#UseUART2serialportxbee=XBee(ser)#ContinuouslyreadandprintpacketswhileTrue:try:response=xbee.wait_read_frame()printresponseexceptKeyboardInterrupt:break

    ser.close()

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    6

    https://code.google.com/p/python-xbee/http://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw

  • XBEE CAPE MANUAL

    Open Source Hardware This product is Open Source Hardware. Design materials, schematics and source code is available on GitHub at

    Design materials are NOT SUPPORTED and DO NOT constitute a reference design. THERE IS NO WARRANTY FOR THE

    DESIGN MATERIALS, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN

    WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE DESIGN MATERIALS AS IS WITHOUT

    WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED

    WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY

    AND PERFORMANCE OF THE DESIGN MATERIALS IS WITH YOU. SHOULD THE DESIGN MATERIALS PROVE DEFECTIVE,

    YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

    We mean it, these design materials may be totally unsuitable for any purposes.

    License This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. To view a copy of

    this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

    All derivative works are to be attributed to Logic Supply, Inc.

    The BeagleBone, BeagleBone Black and Beagleboard remains the property of beaglebone.org. All references to

    BeagleBone, BeagleBone Black, Beagleboard are licensed under a Creative Commons Attribution-Share Alike 3.0

    License. All references to CircuitCo remain the property of CircuitCo and are not affiliated to Logic Supply, Inc. in any

    way.

    Change History

    06/03/2014 Version 1.0 Initial Release

    More Information For more information, see www.logicsupply.com

    Google+ Follow us on Google+ for product updates.

    www.logicsupply.com

    [email protected]

    +1 802 861 2300

    7

    http://www.google.com/url?q=http%3A%2F%2Fcreativecommons.org%2Flicenses%2Fby-sa%2F3.0%2F&sa=D&sntz=1&usg=AFQjCNG4j2oPozXv2_VqmmLiVAToFtwKdAhttp://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlwhttp://www.google.com/url?q=http%3A%2F%2Fwww.logicsupply.com&sa=D&sntz=1&usg=AFQjCNFN1kdqxL9trcXSVTZz6PZoS3NKlw


Recommended