You do a byte by byte comparison of the Tag ID. I need to use an SD card to store and RFID tag ID along with a corresponding Xbee 'MY' number in a lookup table so that I can transmit data back to a given remote based on that combo. I assume it's possible to concatenate the bytes into a string and do a string compare?
@jaysenstudios Yes, but I wouldn't use it as a means to control current flow directly. Hook it up to the Arduino as an analog input, measure the value is software, and then use a wire to connect a digital out from the arduino into the enable pin of the RFID chip.
This might be a stupid question so hello and sorry!
When you're checking the byte in for loop, for example in this case something like this:
j_card=true;
for (i=0; i<5; i++) { if (data[i] !=jeremy[i]) j_card = false;
}
if (j_card==true) serial.println("All array elements are the same in data[i] and jeremy[i]")
Doesn't the j_card boolean always forget the previous value when executing the for loop again? So you're going to get "everything's correct" every time the last value is correct.
@l0rtto No it's correct. The j_card value is initially set to true, but the if statement can only possibly make it false. So once the one of the if statements in the for loops evaluates to false, it cannot be made true again on another run through the for loop.
@sciguy14 "So once the one of the if statements in the for loops evaluates to false, it cannot be made true again on another run through the for loop." That's pretty unambiguous. Thanks.
@l0rtto I can't tell if you're being sarcastic or not. I apologize if it was a poor explanation. To put it in other words, j_card=true appears only once in the code, before the for loop. Hence, once in the for loop, the j_card=false statement can set j_card to false, but there is no scenario that could set it back to true once it has already been made false, because j_card=true never appears in the for loop.
You are using Serial to talk to both the RFID reader and the computer. What I don't understand in the code is how you specify which you are talking to.
@lebeyes Sorry for not clarifying that. The jumpers on the Xbee only change where the Arduino RECEIVES data from. So, the arduino receives data from just the RFID card reader. But, when it sends data, it sends it to anything that happens to be connected to it's serial port's TX line. So, the computer, and the RFID card chip receive everything it sends. Conveniently, the RFID chip will just ignore any commands that it does not understand.
Thanks Jeremy, thank you so much.... That was such an amazing tutorial.... I was just working on similar secret vault system, the only difference being I used a numpad keyboard and an LCD screen from which I read the password.... Thanks to you, now I'll use both of this in combination to create a super safe vault....
Wait are you afraid of the Anti-Christ using this technology since this is wanted in all the people around the world to control everyone just wondering because I would like to know your view on this since you know about it.
@sciguy14 Well if you havent been told well basically Christians believe the Anti-Christ will come into power after the Rapture and will use this same technology to track and and have all your information on it and if you dont accept it and put it in your right hand they will kill you.
@sciguy14 Well actually its going to be seven years after the rapture happens that the Anti-Christ will rein here on earth so but the first half of the time it is supposed to be pretty good but then the rest is just you a pretty much a slave to him and then Judgement day and if you choose to talk the RFID chip in your right hand then you will be sent to hell because you choose Satan over God and not going to Him. Though lol only if it was that easy. To just kill the most liked man on earth.
@HPHQ10 Wait... so I still can't figure out if you're screwing with me, since emotion can be hard to portray in youtube comments. Do you actually believe the things you're typing?
@sciguy14 Actually yes since in the book of Revelation it explains everything im saying and after that as well.
I'm trying to be as serious as I can be since its my duty for everyone to know that Jesus is coming but no ones except for the Lord and that you can have Salvation if you do accept Christ as your one and only Savior.
@HPHQ10 I don't think youtube is the ideal place for you to be preaching religion. Please don't waste the time of people watching this video with things that are irrelevant, and frankly, ridiculous.
@sciguy14 Well I believe God is anywhere and I am sorry to here you dont think have a relationship with God is relevant. Like I said you still can be saved if you accept Jesus Christ as your one and only Savior. Sorry if I was a disturbance to you and all of you subscribers. Though I do want to be a computer hardware engineer so thats why i watch your videos because I am interested in technology. Well on another note I would like to know how should I prepare to be an engineer?
@HPHQ10 You are welcome to have your own beliefs. All I ask is that you let me have mine as well. They are unrelated to engineering anyways. Prepare to be an engineer by making things. Experiment, and make projects with your hands. Watching videos is good, but it's more important that you apply that knowledge to real projects.
@sciguy14 Thank you for the start since I have already built my computer and just wanted to know from your experience so one more thing as far a colleges how should choose one because are there like scams or anything I should watch out for?
How can you use more RFID antennas (with Softwareseral?). Thanks
rodrigoolguinc 1 month ago in playlist Tutorial Series for Arduino
where can i find the COM4 to see if my program is correct., or it is automatically pop out???
whilmer27 1 month ago
HI SIR!!!
Can you make a tutorials about FINGER PRINT SCANNER with adruino.., thanks in advance
whilmer27 1 month ago
You do a byte by byte comparison of the Tag ID. I need to use an SD card to store and RFID tag ID along with a corresponding Xbee 'MY' number in a lookup table so that I can transmit data back to a given remote based on that combo. I assume it's possible to concatenate the bytes into a string and do a string compare?
Sacmanis 1 month ago
I'm the 100th like!
fede142857 1 month ago
Great tutorial, thanks for your effort!
TT1TTOne 5 months ago
I have to do it.
Obligatory XKCD for the comment for the line 21 in the read_rfid.pde file.
xkcd [dot] com/859/
In case you don't have that line numbered, it's this line:
Serial.print(0x87,BYTE); //Command (0x87 sets auto mode behavior
MyOverflow 7 months ago 3
@MyOverflow That explains why I've been feeling uneasy ever since releasing this tutorial...
sciguy14 6 months ago
Could I use an ultrasonic sensor instead of a button to activate the rfid sensor?
jaysenstudios 7 months ago
@jaysenstudios Yes, but I wouldn't use it as a means to control current flow directly. Hook it up to the Arduino as an analog input, measure the value is software, and then use a wire to connect a digital out from the arduino into the enable pin of the RFID chip.
sciguy14 7 months ago
This might be a stupid question so hello and sorry!
When you're checking the byte in for loop, for example in this case something like this:
j_card=true;
for (i=0; i<5; i++) { if (data[i] !=jeremy[i]) j_card = false;
}
if (j_card==true) serial.println("All array elements are the same in data[i] and jeremy[i]")
Doesn't the j_card boolean always forget the previous value when executing the for loop again? So you're going to get "everything's correct" every time the last value is correct.
l0rtto 7 months ago
@l0rtto No it's correct. The j_card value is initially set to true, but the if statement can only possibly make it false. So once the one of the if statements in the for loops evaluates to false, it cannot be made true again on another run through the for loop.
sciguy14 7 months ago
@sciguy14 "So once the one of the if statements in the for loops evaluates to false, it cannot be made true again on another run through the for loop." That's pretty unambiguous. Thanks.
l0rtto 7 months ago
@l0rtto I can't tell if you're being sarcastic or not. I apologize if it was a poor explanation. To put it in other words, j_card=true appears only once in the code, before the for loop. Hence, once in the for loop, the j_card=false statement can set j_card to false, but there is no scenario that could set it back to true once it has already been made false, because j_card=true never appears in the for loop.
sciguy14 7 months ago
hey, jeremy, how about making it a stand-alone project? add some LCD for the display,, will you help me doing it?
punkdane 7 months ago
@punkdane I'm working on an LCD tutorial now - it will be easy to combine the two.
sciguy14 7 months ago
You are using Serial to talk to both the RFID reader and the computer. What I don't understand in the code is how you specify which you are talking to.
lebeyes 7 months ago
@lebeyes Sorry for not clarifying that. The jumpers on the Xbee only change where the Arduino RECEIVES data from. So, the arduino receives data from just the RFID card reader. But, when it sends data, it sends it to anything that happens to be connected to it's serial port's TX line. So, the computer, and the RFID card chip receive everything it sends. Conveniently, the RFID chip will just ignore any commands that it does not understand.
sciguy14 7 months ago
Will you make a fun 16x2 LCD tutorial, becouse i want to build one and i dont know how. :(
Please Help Me.
XDark97 7 months ago
@XDark97 Yes, I literally got one in the mail today.
sciguy14 7 months ago
Thanks Jeremy, thank you so much.... That was such an amazing tutorial.... I was just working on similar secret vault system, the only difference being I used a numpad keyboard and an LCD screen from which I read the password.... Thanks to you, now I'll use both of this in combination to create a super safe vault....
raghunitin 7 months ago
@raghunitin Awesome! Send me a link to the project when it's done :)
sciguy14 7 months ago
@sciguy14 With pleasure
raghunitin 7 months ago
30:29 Why not attach a proximity sensor near the door to do the closing part?
raghunitin 7 months ago
Why not while((val=Serial.read()) !=0xff); at the beginning?
raghunitin 7 months ago
Comment removed
raghunitin 7 months ago
hey how old are u????? and wen did ya start playin with arduinos
francisroan 7 months ago
@francisroan 21, a few years ago.
sciguy14 7 months ago
Are you going to make a tutorial on GPRS shields? That would be great.
wicket007 7 months ago
@wicket007 Yes I am.
sciguy14 7 months ago
Wait are you afraid of the Anti-Christ using this technology since this is wanted in all the people around the world to control everyone just wondering because I would like to know your view on this since you know about it.
HPHQ10 7 months ago
@HPHQ10 Wait, what?
sciguy14 7 months ago
@sciguy14 Well if you havent been told well basically Christians believe the Anti-Christ will come into power after the Rapture and will use this same technology to track and and have all your information on it and if you dont accept it and put it in your right hand they will kill you.
HPHQ10 7 months ago
@HPHQ10 In the event of the rapture, I will use electromagnetic induction to destroy the antichrist. Problem solved. Yay Jeremy! ...Also, again, wtf.
sciguy14 7 months ago
@sciguy14 Well actually its going to be seven years after the rapture happens that the Anti-Christ will rein here on earth so but the first half of the time it is supposed to be pretty good but then the rest is just you a pretty much a slave to him and then Judgement day and if you choose to talk the RFID chip in your right hand then you will be sent to hell because you choose Satan over God and not going to Him. Though lol only if it was that easy. To just kill the most liked man on earth.
HPHQ10 7 months ago
@HPHQ10 Wait... so I still can't figure out if you're screwing with me, since emotion can be hard to portray in youtube comments. Do you actually believe the things you're typing?
sciguy14 7 months ago
@sciguy14 Actually yes since in the book of Revelation it explains everything im saying and after that as well.
I'm trying to be as serious as I can be since its my duty for everyone to know that Jesus is coming but no ones except for the Lord and that you can have Salvation if you do accept Christ as your one and only Savior.
HPHQ10 7 months ago
@HPHQ10 I don't think youtube is the ideal place for you to be preaching religion. Please don't waste the time of people watching this video with things that are irrelevant, and frankly, ridiculous.
sciguy14 7 months ago
@sciguy14 Well I believe God is anywhere and I am sorry to here you dont think have a relationship with God is relevant. Like I said you still can be saved if you accept Jesus Christ as your one and only Savior. Sorry if I was a disturbance to you and all of you subscribers. Though I do want to be a computer hardware engineer so thats why i watch your videos because I am interested in technology. Well on another note I would like to know how should I prepare to be an engineer?
HPHQ10 7 months ago
@HPHQ10 You are welcome to have your own beliefs. All I ask is that you let me have mine as well. They are unrelated to engineering anyways. Prepare to be an engineer by making things. Experiment, and make projects with your hands. Watching videos is good, but it's more important that you apply that knowledge to real projects.
sciguy14 7 months ago
@sciguy14 Thank you for the start since I have already built my computer and just wanted to know from your experience so one more thing as far a colleges how should choose one because are there like scams or anything I should watch out for?
HPHQ10 7 months ago
@HPHQ10 Apply to one that does research you find interesting.
sciguy14 7 months ago
@sciguy14 Alright then thank you for the advise :)
HPHQ10 7 months ago
David: Open the door, Arduino
Arduino: I'm sorry, David. I'm afraid I can't do that.
:)
Z80Fan 7 months ago 14
@Z80Fan Possibly the best comment ever.
sciguy14 7 months ago
@sciguy14 Thank you!
Z80Fan 7 months ago
Great tutorial! Glad you are back, looking forward to the next tutorial!
tharshan09 7 months ago
sweet, i was waiting for this ;)
RavenRof 7 months ago
u changed ur room
francisroan 7 months ago
@francisroan That happens a lot it seems... I'm living in NY city for the summer.
sciguy14 7 months ago
after a very very long time.........
francisroan 7 months ago
welcome back sciguy14 :)
RichyBTheking 7 months ago