Go Down

Topic: Proximity help? (Read 4184 times) previous topic - next topic

AKSoapy29

I'm wrong. The code works, but how do I simplify it so a noob like me can add some stuff?
Andrew K.

AKSoapy29

Like how would I make it say something like

if (tagID==tag code here){
  Serial.print("Accepted");
  do something else here;
}
else{
Serial.print("Denied")
}

etc
Andrew K.

AKSoapy29

Oh and it's 37 bits.
Andrew K.

johnwasser


Oh and it's 37 bits.


The unsigned long is only going to hold the last 32 bits of the 37-bit value. That should probably still be enough to uniquely identify each tag.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

AKSoapy29

Well the if statement I posted above didn't work. How do I find only one tag?
Andrew K.

AKSoapy29

Sweet! I hooked a relay up to my arduino, and when I scan the card, it clicks on the relay for 2 seconds!
Andrew K.

AWOL

Quote
Oh this is actually cool man..I liked it

Smells...spammy.
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

johnwasser


Quote
Oh this is actually cool man..I liked it

Smells...spammy.


At least it's subtle.  You have to go to the profile to find the link to the website.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

AKSoapy29

I'm going to make a video and a website explaining how to make my setup. Might not be till next week, but I do have some Arduino videos on my Youtube channel: http://www.youtube.com/user/AKSoapy29
Andrew K.

Go Up