element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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#081 – Near Field Communication (NFC) Shield
  • 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 1 reply
  • Subscribers 24 subscribers
  • Views 896 views
  • Users 0 members are here
Related

PSoC 4 Pioneer Kit Community Project#081 – Near Field Communication (NFC) Shield

cy.wbz
cy.wbz over 12 years ago

Hello!

 

For this example we are using the PN532 RFID/NFC shield from Adafruit. This this design writes a MiFare classic RFID card with the URL http://www.cypress.com/?id=4749 . This allows an NFC enabled smartphone to open the Cypress.com PSoC 4 page when the programmed RFID card comes within range.

 

Forum Post Attachments:

 

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

  • Example Project Zip File
  • Project Images

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
  • CyClock
  • CyPin

 

Firmware Description:

 

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

 

As part of this design we include two design files, Adafruit_NFCShield.h and Adafruit_NFCShield.c that provide the user an interface to the shield using I2C. These two files were adapted from the .h and .cpp files provided on the shield web page. The modifications included porting the C++ code to C and porting the I2C code to use the SCB in PSoC 4. So when performing any MiFare designs it will be helpful to include these files in your design.

 

This example is design to support a programming flow for the RFID tags. Here’s a description of the firmware’s states:

  • State 0: Board has initialized successfully. LED glows green for 2 seconds.
  • State 1: Ready/Waiting to program RFID tags. LED glows yellow.
  • State 2: Programming RFID tag. LED flashes yellow.
  • State 3: Programming finished successfully. LED glows green for 2 seconds. Return to state 1.
  • State 4: Programming failed. LED glows red for 2 seconds. Return to state 1.

 

Hardware Connections:

 

The shield needs to soldered with the standard headers, as instructed on the Adafruit webpage.

 

Be sure to include the SCL and SDA connections on the top-left corner of the board. This is how the SCB I2C will communicate with the board.

 

Test Your Project:

 

Connect your NFC shield to the pioneer board, program the board, and then configure your RFID tag with the Cypress URL. Verify that the NFC tag works by using an NFC device.

 

I hope this example can help you in your design.

 

Best,

Matt

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

    Hello Matt.

    Thanks for this project, amazing.  we can play with our psoc 4 pioneer kit  and design what our imagination wants.

     

    best regards,

     

    Jesus Antonio.

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

    Hello Matt.

    Thanks for this project, amazing.  we can play with our psoc 4 pioneer kit  and design what our imagination wants.

     

    best regards,

     

    Jesus Antonio.

    • 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