<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[תכנות וכתיבה לתג nfc עם ארדואינו]]></title><description><![CDATA[<p dir="rtl">איך אני יכול לכתוב ולקרוא נתונים לתג nfc (צ'יפ) בארדואינו?</p>
<p dir="rtl">עם התוכנית הזו אני מצליח לקרוא ולהדפיס את המספר הסידורי של התג , אבל אני רוצה שאוכל לכתוב ולקרוא נתונים לתג עצמו.</p>
<p dir="rtl">אשמח להסבר ו/או להפניות בעניין (בכללי לא מצאתי פורום או משהו בסגנון בעברית פעיל לארדואינו..)</p>
<pre><code>#include &lt;SoftwareSerial.h&gt;
#include &lt;PN532_SWHSU.h&gt;
#include &lt;PN532.h&gt;

SoftwareSerial SWSerial(10, 11); 
PN532_SWHSU pn532swhsu(SWSerial);
PN532 nfc(pn532swhsu);

void setup(void) {
  Serial.begin(115200);
  Serial.println("Hello Maker!");
  nfc.begin();
  uint32_t versiondata = nfc.getFirmwareVersion();
  if (!versiondata) {
    Serial.print("Didn't Find PN53x Module");
    while (1);
  }
  Serial.print("Found chip PN5");
  Serial.println((versiondata &gt;&gt; 24) &amp; 0xFF, HEX);
  Serial.print("Firmware ver. ");
  Serial.print((versiondata &gt;&gt; 16) &amp; 0xFF, DEC);
  Serial.print('.');
  Serial.println((versiondata &gt;&gt; 8) &amp; 0xFF, DEC);
  nfc.SAMConfig();
  Serial.println("Waiting for an ISO14443A Card ...");
}

void loop(void) {
  boolean success;
  uint8_t uid[] = { 0, 0, 0, 0, 0, 0, 0 }; 
  uint8_t uidLength; 
  success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &amp;uid[0], &amp;uidLength);
  if (success) {
    Serial.println("Found A Card!");
    Serial.print("UID Length: ");
    Serial.print(uidLength, DEC);
    Serial.println(" bytes");
    Serial.print("UID Value: ");
    for (uint8_t i = 0; i &lt; uidLength; i++) {
      Serial.print(uid[i], DEC);
    }
    Serial.println("");
  }
</code></pre>
]]></description><link>https://tchumim.com/topic/15274/תכנות-וכתיבה-לתג-nfc-עם-ארדואינו</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Nov 2026 11:49:40 GMT</lastBuildDate><atom:link href="https://tchumim.com/topic/15274.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Jul 2023 23:53:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to תכנות וכתיבה לתג nfc עם ארדואינו on Sun, 09 Jul 2023 07:39:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hp079" aria-label="Profile: hp079">@<bdi>hp079</bdi></a></p>
<pre><code>nfc.read();
</code></pre>
]]></description><link>https://tchumim.com/post/154938</link><guid isPermaLink="true">https://tchumim.com/post/154938</guid><dc:creator><![CDATA[ivrtikshoret]]></dc:creator><pubDate>Sun, 09 Jul 2023 07:39:34 GMT</pubDate></item></channel></rss>