Write Arduino Code

Selesai Dipasang 7 tahun yang lalu Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

Hi -

I have an arduino sketch that is almost done.

Its working in isolation, although I can't write it to use the variables of an NFC reader to display on screen.

See current code below.

Let me know when you can complete as I'll want ASAP.

#include <Wire.h>

#include <PN532_I2C.h>

#include <PN532.h>

// The following files are included in the libraries Installed

#include <NfcAdapter.h>

#include "LCD12864RSPI.h"

#define AR_SIZE( a ) sizeof( a ) / sizeof( a[0] )

String myChar;

unsigned char wangzhi[]= "ssdfsdfss";

unsigned char en_char1[]="Line1";

unsigned char en_char2[]="line2";

unsigned char en_char3[]="line3";

PN532_I2C pn532_i2c(Wire);

NfcAdapter nfc = NfcAdapter(pn532_i2c); // Indicates the Shield you are using

void setup(void) {

[url removed, login to view](9600);

[url removed, login to view]("NFC TAG READER"); // Header used when using the serial monitor

[url removed, login to view]();

[url removed, login to view](2,7,10); //INIT SPI Interface

[url removed, login to view](); // INIT SCREEN

delay(100);

}

void loop(void) {

[url removed, login to view]("Scan your NFC tag on the NFC Shield"); // Command so that you an others will know what to do

if ([url removed, login to view]())

{

NfcTag tag = [url removed, login to view]();

[url removed, login to view]([url removed, login to view]());

[url removed, login to view]("UID: ");[url removed, login to view]([url removed, login to view]()); // Retrieves the Unique Identification from your tag

if ([url removed, login to view]()) // If your tag has a message

{

NdefMessage message = [url removed, login to view]();

[url removed, login to view]([url removed, login to view]());

[url removed, login to view](" NFC Tag Record");

if ([url removed, login to view]() != 1) {

[url removed, login to view]("s");

}

[url removed, login to view](".");

// If you have more than 1 Message then it wil cycle through them

int recordCount = [url removed, login to view]();

for (int i = 0; i < recordCount; i++)

{

[url removed, login to view]("\nNDEF Record ");[url removed, login to view](i+1);

NdefRecord record = [url removed, login to view](i);

int payloadLength = [url removed, login to view]();

byte payload[payloadLength];

[url removed, login to view](payload);

String payloadAsString = ""; // Processes the message as a string vs as a HEX value

for (int c = 0; c < payloadLength; c++) {

payloadAsString += (char)payload[c];

}

[url removed, login to view](" Information (as String): ");

[url removed, login to view](payloadAsString);

String uid = [url removed, login to view]();

if (uid != "") {

[url removed, login to view](" ID: ");[url removed, login to view](uid); // Prints the Unique Identification of the NFC Tag

}

}

}

}

[url removed, login to view]();//Clear Screen

delay(100);

[url removed, login to view](0,0,en_char1,10);

delay(1000);

[url removed, login to view](1,0,en_char2,10);

delay(1000);

[url removed, login to view](2,0,en_char3,6);

delay(1000);

[url removed, login to view](3,0,wangzhi,6);

delay(5000);

}

PHP Perancangan Perangkat Lunak

ID Proyek: #11872026

Tentang proyek

5 proposal Proyek online Aktif 7 tahun yang lalu

Diberikan kepada:

jartur

Hello I can help you with your Arduino project , I can fix your current Arduino code, but. I need more information about your project like deadline and other things. if it's something simple, low cost will be. I Lebih banyak

$25 USD dalam 1 hari
(4 Ulasan)
2.3

5 freelancer rata-rata menawar $42 untuk pekerjaan ini

mechatronicsengr

Hi, I hope you are doing well. I have experience with NFC, LCD with Arduino. I have read your project details and I can solve the issues you have in less possible time. Looking Forward, Khawaja

$105 USD dalam 1 hari
(3 Ulasan)
4.1
Manux25

do you read the NFC without problem, your only problem is show the values (ID, message) in LCD? you can see the value in monitor serial right?

$25 USD dalam 1 hari
(2 Ulasan)
1.7
max246

I have done arduino scripts for a long time, I suppose that your code is just conflicting with the lcd or sharing the same pin

$25 USD dalam 1 hari
(0 Ulasan)
0.0
JinCheng000

I have experienced the NFC read/write. ================================ Hello,how are you. I have read your bid carefully. I am export embedded programmer with 7 years experience. Arduino and embedded programming i Lebih banyak

$30 USD dalam 1 hari
(0 Ulasan)
0.0