Micro controller Programming

Status
Not open for further replies.
Comparison is simply "==" in C language. If you want more help than that, then you need to provide more info to me.

Show me the code that reads the NFC tag and the code that takes the user input.
 
Again!!! I want to see an example of what you need...

IncommingString = "-----------"; // what is in this UID string?

WantedString1 ="-----"; // What will end up here ?

WantedString2 = "------" // What will end up here?
 
Is it possible to lock particular block alone in NFC tag using Arduino. If yes plz reply with sample code...

Thanks in advance for anybody who going to help me
 
using Arduino I want to read Serial data
if Serial data = GET01000300
it should print Read
if Serial data = SET01000300
it should print Write
Please anybody help me i'm not good with programming...
Thanks in advance!!!!!!
 
How to connect YL-30 SD shield with Arduino Uno.
Please post the sample program to test it and also post the link to download the library file for this particular shield
 
#include <DS1307RTC.h>
#include <Time.h>
#include <Wire.h>

void setup() {
Serial.begin(9600);
while (!Serial) ; // wait for serial
delay(200);
Serial.println("DS1307RTC Read Test");
Serial.println("-------------------");
}

void loop() {
tmElements_t tm;

if (RTC.read(tm))
{
Serial.print("Ok, Time = ");
print2digits(tm.Hour);
Serial.write(':');
print2digits(tm.Minute);
Serial.write(':');
print2digits(tm.Second);
Serial.print(", Date (D/M/Y) = ");
Serial.print(tm.Day);
Serial.write('/');
Serial.print(tm.Month);
Serial.write('/');
Serial.print(tmYearToCalendar(tm.Year));
Serial.println();
} else {
if (RTC.chipPresent()) {
Serial.println("The DS1307 is stopped. Please run the SetTime");
Serial.println("example to initialize the time and begin running.");
Serial.println();
} else {
Serial.println("DS1307 read error! Please check the circuitry.");
Serial.println();
}
delay(9000);
}
delay(1000);
}

void print2digits(int number) {
if (number >= 0 && number < 10) {
Serial.write('0');
}
Serial.print(number);
}




i haave got error : expected primary-expression before '.' token

Thanks in advance
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…