amc:ss2024:chicken_check:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
amc:ss2024:chicken_check:start [2024/07/30 14:18] – [6. References] tarik.aydin | amc:ss2024:chicken_check:start [2024/07/31 15:20] (current) – [Chicken Check] rolf.becker | ||
---|---|---|---|
Line 2: | Line 2: | ||
Group T: Jirad Al Massri (32323), Nour-Hamed-Raafat Hamed (31348) and Tarik Aydin (26751) | Group T: Jirad Al Massri (32323), Nour-Hamed-Raafat Hamed (31348) and Tarik Aydin (26751) | ||
====== Chicken Check ====== | ====== Chicken Check ====== | ||
+ | |||
+ | **[[.: | ||
=====1. Introduction===== | =====1. Introduction===== | ||
Line 25: | Line 27: | ||
\\ | \\ | ||
**1) PN532 Adafruit board**\\ | **1) PN532 Adafruit board**\\ | ||
- | The PN532 Adafruit board operates on a 13.56MHz frequency. This board creates an electromagnetic field which can reach approximately 10cm range according to Adafruit, tested around 7.5cm where reached. In total two board were used for this project, the boards act as gates which detect a nfc card when the nfc card passes the gates. | + | The PN532 Adafruit board operates on a 13.56MHz frequency |
\\ | \\ | ||
**2) NFC cards type ISO14443 tags**\\ | **2) NFC cards type ISO14443 tags**\\ | ||
- | The NFC cards acted passing chickens, the card consist of a small chip which is connected to a wire which is curled | + | The NFC cards acted passing chickens, the card consist of a small chip which is connected to a wire which is curled |
\\ | \\ | ||
**3) Esp32 S3 Dev Module**\\ | **3) Esp32 S3 Dev Module**\\ | ||
- | The Esp32 S3 Dev Module worked as the brain of this project, the microcontroller controls the two PN532 boards and also sends the data to the computer. | + | The Esp32 S3 Dev Module worked as the brain of this project, the microcontroller controls the two PN532 boards and also sends the data to the computer. The Esp32 S3 Dev Module also has built in Wi-Fi, Bluetooth and low power functions, these function enable to collect the data automated viva Wi-Fi or Bluetooth [4]. |
\\ | \\ | ||
Line 45: | Line 47: | ||
\\ | \\ | ||
**6) USB-A to USB 2.0 micro B cable**\\ | **6) USB-A to USB 2.0 micro B cable**\\ | ||
- | This cable was used a simple data transmission cable from the computers serial port to the Esp32 S3 Dev module to program the microcontroller and to execute the code written in Arduino. (1) | + | This cable was used a simple data transmission cable from the computers serial port to the Esp32 S3 Dev module to program the microcontroller and to execute the code written in Arduino |
\\ | \\ | ||
Line 53: | Line 55: | ||
\\ | \\ | ||
**8) ChatGPT**\\ | **8) ChatGPT**\\ | ||
- | ChatGPT is an AI tool which is able to answer questions and enables for a faster development of the Arduino code to program the ESP32 microcontroller and the PN532 boards. | + | ChatGPT is an AI tool which is able to answer questions |
=====3. Results===== | =====3. Results===== | ||
Line 224: | Line 226: | ||
===Code that did not work for the project=== | ===Code that did not work for the project=== | ||
\\ | \\ | ||
- | The function nfc.readPassiveTargetID() is set as a standard to 0xFF, this means the function will run for ever. This is a problem when two PN532 boards are used, because in the void loop the function will be needed two times once for board one and once for board two. When the code is set up in the way that the first board comes first and the second board comes second, code will run in the sequence first board one and then board two. So, this allows only to start reading with the first boards and the code also will only read one signal at the time at one board.One way to avoid to be stuck in the sequence is to use the freeRTOS library, which will allow to create tasks in Arduino. In each task the function nfc.readPassiveTargetID() is used and still operates in the standard setting 0xFF. Here the two tasks will work in parallel, avoiding to sequence the nfc card. Using the freeRTOS library only solves the sequencing issue, the bigger issue here is then that the two boars will be permanently on. Which is causing electromagnetic interference. | + | The function nfc.readPassiveTargetID() is set as a standard to 0xFF [6], this means the function will run for ever. This is a problem when two PN532 boards are used, because in the void loop the function will be needed two times once for board one and once for board two. When the code is set up in the way that the first board comes first and the second board comes second, code will run in the sequence first board one and then board two. So, this allows only to start reading with the first boards and the code also will only read one signal at the time at one board. One way to avoid to be stuck in the sequence is to use the freeRTOS library, which will allow to create tasks in Arduino. In each task the function nfc.readPassiveTargetID() is used and still operates in the standard setting 0xFF. Here the two tasks will work in parallel, avoiding to sequence the nfc card. Using the freeRTOS library only solves the sequencing issue, the bigger issue here is then that the two boars will be permanently on. Which is causing electromagnetic interference. |
=====4. Discussion===== | =====4. Discussion===== | ||
Written by Jihad Al Massri | Written by Jihad Al Massri | ||
+ | \\ | ||
+ | |||
+ | First challenge was the usage of I2C, where it uses 7-bit to 10-bit addresses to make the identification of devices on the bus, with many PN532 address conflict can increase because of the limited number of unique addresses. In addition, data collision and bus contention can increase in an environment with high communication traffic because I2C use the same set of wires (SDA and SCL) to the communication of multiple devices. Switching to SPI was the choice since SPI uses separate Chip select for each PN532 that eliminate address conflict, make device management more easy. Moreover, SPI enable a fast communication between the microcontroller and the PN532 because it has a higher data rate as well as it allows simultaneous data transmission and reception. The usage of SPI facilitate the addition of new PN532 to the system since its only require to identify a specific chip select line for every new PN532.\\ | ||
+ | Second challenge was the electromagnetic interference. When the PN532 where on, they were interfering with each other, causing a disruption in their operation. This interference created a dead spot in the detection area because both boards were not able to read data. Additionally, | ||
=====5. Conclusion===== | =====5. Conclusion===== | ||
- | Written by Jihad Al Massri | + | Written by Jihad Al Massri |
- | + | \\ | |
- | =====6. References===== | + | |
- | | + | |
- | - https:// | + | |
- | - https:// | + | |
- | - https:// | + | |
- | - https:// | + | |
- | - https:// | + | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | ===== First Draft Ideas ===== | + | |
- | + | ||
- | * RFID bird ringing, bird banding, tagging | + | |
- | * 13.56 MHz HF band (not LF nor UHF) | + | |
- | * https:// | + | |
- | + | ||
- | ===== About RFID ==== | + | |
- | + | ||
- | * https:// | + | |
- | * https:// | + | |
- | + | ||
- | ===== HF RFID Technology (13.56 MHz) ===== | + | |
- | + | ||
- | * :!: Matt Rose and Jon Kurtz (2016): **{{: | + | |
- | + | ||
- | + | ||
- | ==== ISO 14443: Proximity Communication (typ. range: 7-15 cm) ==== | + | |
- | + | ||
- | - **Frequency**: | + | |
- | - **Purpose**: | + | |
- | - **Read Range**: ISO 14443 has a shorter read range of **7-15 cm** (approximately 2.8-5.9 inches). | + | |
- | - **Data Transfer Rate**: It offers a higher data transfer rate with a **106 kbps** Baud rate. | + | |
- | - **Applications**: | + | |
- | + | ||
- | ==== ISO 15693: Vicinity Communication (typ. range: < 100 cm) ==== | + | |
- | + | ||
- | - **Purpose**: | + | |
- | - **Read Range**: ISO 15693 provides an extended read range of **up to 1 meter** (approximately 3.3 feet). | + | |
- | - **Data Transfer Rate**: It has a slower data rate with a **26 kbps** Baud rate. | + | |
- | - **Applications**: | + | |
- | + | ||
- | In summary, ISO 14443 is ideal for short-range applications like wireless payments, while ISO 15693 suits scenarios where longer read distances are necessary. 📡🔍🏷️¹² | + | |
- | + | ||
- | Source: Conversation with Copilot, 30/06/2024 | + | |
- | (1) NFC Reader Guide - Shop NFC. https://bing.com/ | + | In this project, the initial use of I2C communication for PN532 NFC/RFID has faced a challenge, to distinguish between multiple boards. The switch to SPI communication has solved the issue by the usage separate chip select lines that made the communication more reliable and stable. Despite these improvements, |
+ | Because of the challenges we faced, a lot of insight was gained. | ||
\\ | \\ | ||
- | (2) The difference between ISO15693 | + | Technology Integration: |
\\ | \\ | ||
- | (3) Understanding | + | |
- | \\ | + | Understanding |
- | (4) NFC Reader Guide - Shop NFC. https:// | + | Gained knowledge on how antennas work with RFID systems and UID detection. |
\\ | \\ | ||
- | (5) What is ISO/IEC 15693? RFID Communication Standard for HF and NFC. https:// | ||
- | ==== Differences between ISO/IEC 15693-26 and ISO/IEC 15693-53 (Collected by COPILOT) ==== | + | UID detection: |
+ | Gained knowledge on how NFC/RFID tags interacts with readers like the PN532. | ||
+ | \\ | ||
- | **ISO/IEC 15693-26**: | + | System Design:\\ |
- | - **Modulation Scheme**: ISO/IEC 15693-26 uses a subcarrier frequency | + | As a group a lot of experience was gained through trail and troubleshooting integrated |
- | - **Data Rate**: The data rate for ISO/IEC 15693-26 is **26.48 kbps.** | + | \\ |
- | - **Application**: | + | |
- | - **Read Range**: The read range is typically up to 1 meter (approximately 3.3 feet). | + | |
- | **ISO/IEC 15693-53**: | + | I2C and SPI:\\ |
- | - **Modulation Scheme**: ISO/IEC 15693-53 uses a subcarrier frequency of 847.5 kHz. | + | I2C has a communication serial line to all antennas (sda scl), and for the SPI can distinguish between the antennas through chip select. |
- | - **Data Rate**: The data rate for ISO/IEC 15693-53 is **53.98 kbps.** | + | \\ |
- | - **Application**: | + | |
- | - **Read Range**: Similar to ISO/IEC 15693-26, the read range is up to 1 meter. | + | |
- | In summary, both variants are part of the ISO/IEC 15693 standard and share similar use cases. | + | Future work:\\ |
+ | Where to pick up this project? | ||
+ | The main focus should be on advanced method to reduce electromagnetic interference as this was the main challenge | ||
- | Source: Conversation with Copilot, 30/06/2024 | + | =====6. References===== |
+ | - https://www.anker.com/ | ||
+ | - https:// | ||
+ | - https:// | ||
+ | - https:// | ||
+ | - https:// | ||
+ | - https:// | ||
- | ==== GAO RFID ==== | ||
- | * {{https:// | ||
- | * Range: up to 90 cm with single antenna | ||
- | * Speed: up to 60 readings per second | ||
- | * Separation: 300 tags at once | ||
- | ==== NXP NFC Solutions ==== | ||
- | * :!: **[[https:// | ||
- | ==== NXP CLRC663 plus (CLRC66303HN) - High performance multi-protocol NFC frontend ==== | ||
- | **https:// | ||
- | |||
- | | {{https:// | ||
- | | Source: **[[https:// | ||
- | |||
- | | {{https:// | ||
- | | Evaluation Board **CLEV6630B** (NXP) | Development Kit **OM26630FDKM** (NXP, including CLEV6630B) | | ||
- | |||
- | |||
- | * :!: ** [[https:// | ||
- | |||
- | * Chip Mame: **CLRC66303HN** (I_T(max) 350-500 mA, up to 2 Watts) | ||
- | * Eval Board Name: **CLEV6630B** | ||
- | * Dev Kit Name: **OM26630FDKM** (includes CLEV6630B) | ||
- | |||
- | |||
- | * Datasheet **CLRC663: | ||
- | * Datasheet **SLRC610: | ||
- | |||
- | |||
- | |||
- | |||
- | * {{https:// | ||
- | * {{https:// | ||
- | ==== NXP PN5180 ==== | ||
- | |||
- | | {{https:// | ||
- | | OM25180FDK Dev. Kit + Extras from [[https:// | ||
- | |||
- | * :!: **[[https:// | ||
- | |||
- | * Chip Name: **PN5180B** (I_T(max) 250 mA) (PN5180A0HN??? | ||
- | * Eval Board Name: **PNEV5180B** | ||
- | * Dev Kit Name: **OM25180FDKM** (includes PNEV5180B) | ||
- | |||
- | |||
- | * NXP [[https:// | ||
- | * :!: Datasheet PN5180, **C3,C4** (Rev. 4.1, 2023-03-13): | ||
- | * Datasheet PN5180, **C1,C2** (Rev. 3.6, 2018-05-07): | ||
- | |||
- | |||
- | | {{https:// | ||
- | | A cheap PN5180 board (R1.1-170710) for Arduino-like projects. | Schematic by Future Electronics \\ (Download: {{https:// | ||
- | |||
- | === PN5180 Application Notes === | ||
- | |||
- | * {{https:// | ||
- | * {{https:// | ||
- | |||
- | * {{https:// | ||
- | * {{https:// | ||
- | * {{https:// | ||
- | * {{https:// | ||
- | * {{https:// | ||
- | |||
- | === PN5180 Arduino Libraries === | ||
- | |||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | * https:// | ||
- | ==== PN532 Module V3 by Elechouse (5V, red board) ==== | ||
- | |||
- | This is the cheap version (the red board with 8 + 4 pin headers / connectors) you still can buy everywhere. Drawback: Only the 5V is exposed to the connector and not the 3.3V output. The board has to be modified to be usable with a 3.3V voltage source, e.g. by desoldering the voltage regulator and building wire bridge from 3.3V to the power pin on the connector (origially named 5V). | ||
- | |||
- | * {{https:// | ||
- | * [[https:// | ||
- | |||
- | | {{: | ||
- | |||
- | ==== Adafruit RFID/NFC PN532 Breakout ==== | ||
- | |||
- | [[.: | ||
- | |||
- | |||
- | |||
- | ==== Other version of the red board (3.3V, 5V) ==== | ||
- | |||
- | Wiki: http:// | ||
- | |||
- | {{: | ||
- | |||
- | Instructables: | ||
- | |||
- | {{https:// | ||
- | |||
- | {{http:// | ||
- | |||
- | ===== Terminology ===== | ||
- | |||
- | Bird ringing is the term used in the UK and in some other parts of Europe and the world. Bird banding is the term used in the US. Organised ringing efforts are called ringing or banding schemes, and the organisations that run them are ringing or banding authorities. (Birds are ringed rather than rung) Those who ring or band are known as ringers or banders, and they are typically active at ringing or banding stations. | ||
- | \\ | ||
- | [[https:// | ||
amc/ss2024/chicken_check/start.1722341906.txt.gz · Last modified: 2024/07/30 14:18 by tarik.aydin