ELECHOUSE PN7160 NFC RFID MODULE User Guide
- June 14, 2024
- ELECHOUSE
Table of Contents
ELECHOUSE PN7160 NFC RFID MODULE
Quick Startup with Raspberry Pi interface board
Required items
- Raspberry Pi [1] running raspbian distribution.
Hardware setup
Connection
- PN7160 ——–Raspberry PI 4
- SDA #3 SDA
- SCL #5 SCL
- IRQ #16 GPIO23
- VEN #18 GPIO24
- VDD #1 3.3V PWR
- VANT #2 OR #4 5V PWR
- GND #6 GND
- DWL #22
Software setup
Use Raspbian (https://www.raspberrypi.org/software/operating-systems/).
Guidelines to set up a Linux environment on Raspberry Pi can be found here:
https://www.raspberrypi.org/documentation/installation/installing-images/).
Below is the step-by-step procedure run from the Raspberry Pi to add software
support for PN7160:
Enable I2C interface
- Run command
- Use the down arrow to select “Interface Options”
- Arrow down to “P5 I2C”
- Select “yes” when it asks you to enable I2C
- Use the right arrow to select the button
To verify the I2C interface is enabled, enter the following command ls /dev/i2c. The Pi should respond with “/dev/i2c-1” which represents the user- mode I2C interface that is connected to the PN7160.
Install the necessary tools
Execute the command:sudo apt-get install autoconf automake lib tool git.
Clone Linux lib nf cnci library repository
Execute the command git clone https://github.com/NXPNFCLinux/linux_libnfc-
nci.git -b NCI2.0_PN7160
Configure the library
Execute the commands: cd linux_libnfc-NCI
- bootstrap
- configure
Set the library to map I2C interface (only for OM27160A1EVK)
Edit linux_libnfc-NCI/conf/li bnfc-n xp.conf file to update NXP_TRANSPORT and
NXP_NFC_DEV_NODE settings as shown below:
TRANSPORT Type
- 0x00 – I2C /SPI for noraml nxpnfc driver
- 0x01 – Not Used, kept to align with Android code
- 0x02 – ALT_I2C
- 0x03 – ALT_SPI
NXP_TRANSPORT=0x02
- NXP HW Device Node information
- NXP_NFC_DEV_NODE=”/dev/i2c-1″
Build and install the library
Execute the commands: make sudo make install export
LD_LIBRARY_PATH=/usr/local/lib
To make this last setting permanent, run the following command
echo “export LD_LIBRARY_PATH=/usr/local/lib” >> .bashrc Run the demo
application (built and installed together with the library during the previous
step) To simply display all data collected from remote NFC device (Peer,
reader/writer or card), run the demo application in “poll mode” executing the
command: nfcDemoApp poll For more details about the demo application modes
execute the command: nfcDemoApp –help For more detailed information about the
demo application, but also for additional example applications, please refer
to [2].
Safety Information
-
Product Datasheet
Look for a datasheet for the PN7160 module. This document often contains detailed technical specifications and safety information. -
User Manual
Check if there is a user manual or user guide provided by ELECHOUSE for the PN7160 module. This document may include safety instructions, handling guidelines, and other relevant information. -
Manufacturer’s Website
Visit the official website of ELECHOUSE or the specific product page for the PN7160 module. Manufacturers often provide downloadable documentation, including safety information, on their websites. -
Contact the Manufacturer
If you cannot find the information you need in the provided documentation, consider reaching out to ELECHOUSE directly. They may have a customer support or technical support team that can provide the necessary safety information.
Troubleshooting
-
Check Power Supply
Ensure that the module is receiving the correct power supply voltage and current as specified in the datasheet. Verify the connections to the power supply and make sure there are no loose or disconnected wires. -
Antenna Connection
Confirm that the antenna is properly connected to the module. Check for any damaged or disconnected antenna wires. -
Communication Interface
Verify the communication interface (e.g., I2C, SPI, UART) between the PN7160 module and your microcontroller or host device. Ensure that the wiring and communication settings are correct. -
Firmware and Software Configuration
Check the configuration of the PN7160 module. Ensure that the settings align with your application requirements. Update the firmware of the module if newer versions are available. -
Environmental Factors
Consider environmental factors that may affect RFID communication, such as interference from other electronic devices or physical obstacles. Test the module in different environments to identify potential issues. -
Check for Error Codes
If the module provides error codes or status registers, consult the datasheet or documentation to interpret these codes. Investigate the meaning of any error codes and address the underlying issues. -
External Components
If external components (such as pull-up or pull-down resistors) are required, ensure that they are properly connected and have the correct values. -
Update Software Libraries
-
If you are using software libraries to interface with the PN7160 module, make sure you are using the latest versions.
Check for any updates or bug fixes related to the software libraries. -
Debugging Tools
Use debugging tools, such as oscilloscopes or logic analyzers, to examine communication signals and identify any anomalies. -
Documentation and Support
Refer to the datasheet, user manual, or any troubleshooting documentation provided by ELECHOUSE.
If needed, contact ELECHOUSE support for assistance. They may be able to provide guidance on specific issues.
Read User Manual Online (PDF format)
Read User Manual Online (PDF format) >>