element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#024 – XBee Router Loopback Example
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 4 replies
  • Subscribers 26 subscribers
  • Views 696 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#024 – XBee Router Loopback Example

cy.wbz
cy.wbz over 12 years ago

Hello!


Today we will be covering our first wireless XBee example project. We will be using the following hardware in our design:


  • CY8CKit-042
  • Arduino wireless shield board
  • XBee wireless module
  • Sparkfun explorer USB

 

image

 

For more information on the XBee wireless module please see the linked Datasheet.

 

In this project we have two separate boards communicating using the XBee wireless modules. The first board is the Sparkfun Explorer USB board. This creates a simple USB to UART bridge and communicating with the wireless module. This board then appears to the user as a COM port in their device manager. We will use the hyperterminal program to read in and send out values over the XBee module. This will be our main hub of our wireless system connected to our PC. Just to note, the Explorer board can be replaced by a Pionner board where the PSoC 5LP device is connected to the Wireless XBee module.

 

The second board will be the Pioneer board using the Arduino wireless shield board with an XBee wireless module attached. In the image of the example project I’m using the SD card wireless shield. There’s no difference between the Arduino SD wireless card shield and the standard wireless with respect to XBee, only the price of having the ability to write to an SD card.

 

In this project we will be echoing values between the Pioneer and Explorer kits. This is a simple echo example for testing your XBee module operation. PSoC 4 will listen to the XBee module on the Explorer board and will wait for a specific value "CR" or until the maximum number of characters (16) has been received.  At that point the PSoC 4 will echo back the received data with the prefix: "From PSoC 4: "

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Zip File of Images
    • Project Schematic
    • Component Configurations

 

Components Used:

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • UART

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

 

The critical aspect of the XBee examples will be the configuration of the two nodes of the wireless system. The configuration will require either the Explorer board or for the PSoC 5LP UART bridge to be connected to the XBee wireless modules. In this example we use the Explorer board to configure both wireless modules. The wireless modules will need to be setup to create a Private Area Network (PAN).

 

In this example you will set the wireless module on the Explorer board as a “Coordinator” and the module on the Arduino shield as a “Router”. You will configure both of the wireless modules using the Explorer Board. For instructions to complete the configuration please see the following online tutorial:

 

Setup your XBee

 

In this tutorial you will need to download the X-CTU application, located here:

 

X-CTU Download

 

In our example we used the following values to enable the PAN:

 

Coordinator Settings:

PAND ID: 1777 (Any address from 0 to FFFF works, must match router)

Destination Address High: 0013A200

Destination Address Low: (Unique address printed below the 0013A200 on the Router module).

 

Router Settings:

PAND ID: 1777 (Any address from 0 to FFFF works, must match router)

Destination Address High: 0013A200

Destination Address Low: (Unique address printed below the 0013A200 on the Coordinator module).

 

The key point to the above configuration settings are the “Destination Address Low” values. Here you will need to enter in the value from the opposing wireless module. This is because we are creating a point to point system. Each module will need to know the ‘address’ of the other module.

 

The firmware for the PSoC 4 project is straight forward. The PSoC 4 will loop until either the ‘CR’ character (enter key) is received or if 16 characters are received from the main hub.

 

Once that condition is met the PSoC 4 will then transmit back the characters sent from the XBee module connected to hyperterminal.

 

Hardware Connections:

 

This project requires the user to connect their Pioneer board to the Arduino Shield board and insert the XBee wireless module into the shield board.

 

The user must also connect their XBee wireless module to the Sparkfun Explorer board and then.

 

Both the explorer board and the Pioneer kits will be connected to the PC.

 

Test Your Project:

 

Once you have configured the wireless modules, program your PSoC 4, and connected to the XBee module on the Explorer board through the COM port, begin sending values over the hyperterminal software to the PSoC 4 device. The followig image is the response from the PSoC 4 after sending the value "hello" and then striking the Enter key.

 

image

 

For more information on XBee, sparkfun has a nice online buyers guide.

 

You will notice from the images that we are using the Series 2 module with the wire antenna. The modules vary in the range of communication and power consumed.

 

I hope this example can help you out in your design.

 

Best,

Matt

Attachments:
Xbee_Route_AT.cywrk.Archive01.zip
3806.Project Images.zip
  • Sign in to reply
  • Cancel
Parents
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Hello Matt.

    Thanks for this project,  so right now i have two modules ARTAFLEX AWP24S, my project will be using this module to make a communication between psoc 4 kit and another kit, i believe that need  build a  master and slave project.

     

    I atach to this reply a master and slave project using psoc creator.

    image

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • cy.wbz
    cy.wbz over 12 years ago in reply to jesusantoniocar

    Jesus,

     

    That project sounds great. Feel free to create a new forum thread under the pioneer kit area and post your project. Let me know when you've posted it. I'm working on posting example #025 which is going to transmit digital and analog values using the Xbee boards.

     

    Thanks,

    Matthew Buza

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to cy.wbz

    Hello All.

    i posted the project in :

    http://www.element14.com/community/message/81111#81111/l/wireless-communication-psoc-4-pioneer-kit-and-dvk001

     

    best regards,

     

    jesus.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to cy.wbz

    Hello All.

    i posted the project in :

    http://www.element14.com/community/message/81111#81111/l/wireless-communication-psoc-4-pioneer-kit-and-dvk001

     

    best regards,

     

    jesus.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube