Im trying to send data to M24SR64 Tag via its tool ANT7-T-M24SR64. And i want to read sent data from the telephone. Data will be sensor outcomes, i mean integer values.
But i have no idea how to write these integer values to M24SR64 Tag. I searched a lot but couldn't find anything.
It would help if you tell us what kind of problem you have. So post the errors you get from the compiler (if there are any) and the serial output of the sketch if it compiles.
As you didn't specify your Arduino model we expect you to have an UNO.
Thank you so much for your answer. Yes, it is uno. Actually im going to use atmega328p as standalone but first im working with arduino to set the logic.
I can write the text to record and get the written text on the mobile phone (instead of writing urirecord, i used textrecord). Here is my code;
By this way, i could write the variables to the NFC.
However, i have another problem. I am sensing the capacitance between A0 and A2 and getting time information via millis(). I need to set another variable which must have the millis value. For example, let say, the sensing capacitance value exceeds 2uF when millis = 100000. I have to flag this millis value in another variable and hold it. How can i do it ?
Lastly, in my code i have displayFreeRAM command. However, the free ram decreases in each second up to 150. After this 150 value, the serial monitor stops and cannot perform any operation. How can i solve this problem ? Is there any way to clear the ram ?
or example, let say, the sensing capacitance value exceeds 2uF when millis = 100000. I have to flag this millis value in another variable and hold it. How can i do it ?
I may have misunderstood your question, in that case just ask again and explain in more detail.
The millis() function returns a 32bit value, so you may store the current value in a variable of type uint32_t.
Lastly, in my code i have displayFreeRAM command. However, the free ram decreases in each second up to 150. After this 150 value, the serial monitor stops and cannot perform any operation. How can i solve this problem ? Is there any way to clear the ram ?
That means you have a memory leak. A haven't seen the complete code but from the tiny excerpt above I can see that you're using the String class. This class fragments your memory and in no time you end with having no free RAM space anymore.
There may be other leaks (post your complete code if you need help finding the leak) but removing the String class and working with C-style strings (character arrays) instead is a good starting point.