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#027 – XBee RGB CapSense Control
  • 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 6 replies
  • Subscribers 28 subscribers
  • Views 1015 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#027 – XBee RGB CapSense Control

cy.wbz
cy.wbz over 12 years ago

Hello!


Today’s example demonstrates how to control an RGB LED using the XBee wireless network. In this example the user will be able to scroll through LED colors using the switch, and selecting the brightness using the CapSense controller. The following hardware will be used:

  • CY8CKit-042 (x2)  Buy Now!Buy Now!
  • Custom Wireless Boards (x2)  Buy Now!Buy Now!
  • XBee wireless module (x2)  Buy Now!Buy Now!

 

image

 

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:

  • Transmitter
    • UART
    • CapSense
    • CyPin
  • Reciever
    • Three PWMs
    • UART
    • CyClock
    • CyPin

 

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.

 

This example project requires two separate firmware projects, one for each Pioneer kit. One pioneer kit will serve as the TX module and the second pioneer kit will serve as the RX module. In the attached zip file our example project contains two example projects in the workspace explorer (RX and TX). Each project needs to be built and programmed in their respective unit. It might be helpful when examining this project to mark on your respective kit which functionality it contains (RX or TX).

 

Please refer to examples #024 and #026 for XBee module configuration. Please follow those steps to create the wireless network.

 

The RGB LED brightness on the CY8CKit-042 (receiver) is controlled using the CapSense slider and user switch of the other CY8CKit-042 (transmitter). The RGB LED color on the receiver changes through a set of different colors when the user presses the switch on the transmitter. A long press on the transmitter switch causes the receiver to automatically change through different colors until a new input is received.

 

In the video below of the example we are using custom Shield boards. In this example the engineer used two breadboards and soldered a connector and wires to connect the XBee module. Both of these examples use the 6 pin Pmod compatible header (please refer to the kit user guide for more information). In this example we’ve soldered a small header onto the 6 pins to connect the custom board. If you have a wireless shield then simply change the pin selections in the DWR window for both projects.

 

Hardware Connections:

 

For this example you will need the following hardware:

  1. Two Pioneer Kits
  2. Two Custom Wireless Boards
  3. Two XBee wireless modules

 

Wire up the XBee wireless modules to the custom protoboard using the following layout. The protoboards linked above might be cut down to save size.

 

image

 

Test Your Project:

 

Once you have configured the wireless modules, programmed your PSoC 4s, and connected your wireless modules, begin by pressing the SW2 button on the transmitter board.

 

Using your finger move across the CapSense slider to change the receiver’s RGB LED brightness.

 

Hold down the SW2 button to scroll through the LED colors, pressing the SW2 button to stop the scrolling.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
4846.Project Images.zip
Pioneer Kit Zigbee Project_Transmitter.cywrk.Archive01.zip
Pioneer Kit ZigBee Project_Receiver.cywrk.Archive01.zip
  • Sign in to reply
  • Cancel

Top Replies

  • cy.wbz
    cy.wbz over 12 years ago +1
    Hello! Here's a couple more images of the custom board. Thanks, Matt
  • DAB
    DAB over 12 years ago +1
    Hi Matt, I was hoping you would do a project like this. Showing how to integrate MCU devices over a wireless network is a good way to get people thinking about hooking different MCU devices together in…
Parents
  • cy.wbz
    cy.wbz over 12 years ago

    Hello!

     

    Here's a couple more images of the custom board.

     

    image

     

    image

     

     

    Thanks,

    Matt

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

    Hello!

     

    Here's a couple more images of the custom board.

     

    image

     

    image

     

     

    Thanks,

    Matt

    • Cancel
    • Vote Up +1 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