rfid - Idle time function on an Arduino -
I want to add a timer to this function so that every time the UID is read and it restarts and I set up another function After reaching a certain time, write a serial. Let's call it a passive time function. I can not tie this id for reading because I have 28 IDs being read potentially. I want to reset my audio player via serial with an ASCII command. If no IUD has not been read for more than 180 seconds ... suggestions?
if (uid [0] == 0x64 and uid [1] == 0xBF & amp; uid [2] == 0xD8 and uid [3] == 0x51) {// delay in the beginning (500); //Serial.write (for Bässgen MM3210) Serial.write ("listplay 1 1"); Serial.write (13); Finally break at break // 3000 (); } "post-text" itemprop = "text"> You can assign one value to each UID by calling () call.
Since the chip started, it basically calculates milliseconds, it gets stored in the long run, so every 80 days is reset to zero or I think that ( I have never left it)
I wrote this time on the basis of random array which was writing at a fast or slow pace. There were so many figures in it (I) using the milliseconds () and delay Instead of using counted loops, let me have one Permission was granted to jump over time.
Comments
Post a Comment