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#082 – Near Field Communication (NFC) Shield: Take 2
  • 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 0 replies
  • Subscribers 24 subscribers
  • Views 654 views
  • Users 0 members are here
Related

PSoC 4 Pioneer Kit Community Project#082 – Near Field Communication (NFC) Shield: Take 2

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 design reads the contents of a MiFare classic RFID card and prints them to a terminal using the USB-UART on the Pioneer kit.

 

image

 

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:

  • I2C
  • UART
  • CyClock
  • CyPin

 

Firmware Description:

 

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

 

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.

 

The main loop waits until a MiFare Card comes within range. Once a card is detected each sector is authenticated and the contents are printed to a terminal through the UART.

 

Hardware Connections:

 

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

 

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

 

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.

 

To connect the UART, connect P3[0] (Digital 11) to P12[7] of the PSoC 5LP (J11) and P3[1] (Digital 12) to P12[6] as shown in the picture.

 

image

 

Test Your Project:

 

Connect your NFC shield to the pioneer board and program the board. Launch Putty to begin printing outputs from the Pioneer board. Bring an RFID card near the reader and see the RFID contents displayed on the Putty output window.

 


image

 

I hope this example can help you in your design.

 

Best,

Matt

Attachments:
RFID_Reader.cywrk.Archive01.zip
4762.Project Images.zip
  • Sign in to reply
  • Cancel
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