View previous topic :: View next topic |
Author |
Message |
sagavalsalan
Joined: 08 Jan 2014 Posts: 5
|
Code to detect RFID tag num |
Posted: Wed Jan 08, 2014 8:39 am |
|
|
Can anybody post a simple code to read RFID tag num and turn on an LED at pin17 of PIC 16F877A _________________ Saga |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Wed Jan 08, 2014 8:45 am |
|
|
comment: Not without knowing which RFID device you're using! Some are bigbanged,some I2C,some serial(aka RS-232),some parallel interface,some are 3 volt some are 5V,some 12V. Some need a command to read, others send an interrupt when ID located.We NEED to KNOW which RFID device you're using.
Code , if serial ,is super easy.
send command to interrogate the RFID reader
read incoming data
parse for ID
turn on LED
Also the 16F877a is on the 'endangered PIC' list.There are newer,better drop-in replacements that are actually cheaper!
hth
jay |
|
|
sagavalsalan
Joined: 08 Jan 2014 Posts: 5
|
Code to detect RFID tag num |
Posted: Wed Jan 08, 2014 7:56 pm |
|
|
Sir,
this is the RFID i bought.
http://www.rhydolabz.com/wiki/?p=794
No option to change the chip _________________ Saga
Last edited by sagavalsalan on Wed Jan 08, 2014 8:01 pm; edited 1 time in total |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Wed Jan 08, 2014 8:00 pm |
|
|
Saga...no 'link' or RFID number is in your post....so I can't help.
jay |
|
|
sagavalsalan
Joined: 08 Jan 2014 Posts: 5
|
Code to detect RFID tag num |
Posted: Wed Jan 08, 2014 8:02 pm |
|
|
sorry sir, I edited the comment.
I will post the Tag num later. Bcoz I need to confirm that. _________________ Saga |
|
|
sagavalsalan
Joined: 08 Jan 2014 Posts: 5
|
Code to detect RFID tag num |
Posted: Wed Jan 08, 2014 8:15 pm |
|
|
sir my Tag ID is 650033B29C _________________ Saga |
|
|
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Thu Jan 09, 2014 4:28 pm |
|
|
This project is a typical school exercise.
We do want to help you when you have problems but we are not going to do your work for you.
There are example programs posted on the website you reference, one for Arduino and one for PIC processor. Note that the Arduino program is easier to convert to the CCS compiler.
What is your problem? Don't you know how to start? |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Thu Jan 09, 2014 4:35 pm |
|
|
Sage , you misunderstood. We need to know what device (the RFID reader or scanner) you're using to obtain the RFID TAG Number.
There are hundreds of RFID 'readers', most output the RFID tag information as serial ASCII, but without a make or model number, we do not know the protcol or command sequences needed to obtain the tag number.
hth
jay |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9246 Location: Greensville,Ontario
|
|
Posted: Thu Jan 09, 2014 6:41 pm |
|
|
Hmm...I got a PM saying there was a link...and behold it NOW appears when I access the 'thread'. I'll have a look at it later...
I'd like to know why the link didn't show up earlier..
jay |
|
|
gpsmikey
Joined: 16 Nov 2010 Posts: 588 Location: Kirkland, WA
|
|
Posted: Thu Jan 09, 2014 7:12 pm |
|
|
Perhaps "Last edited by sagavalsalan on Wed Jan 08, 2014 6:01 pm; edited 1 time in total" would explain why the link has appeared ?
mikey _________________ mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3 |
|
|
sagavalsalan
Joined: 08 Jan 2014 Posts: 5
|
Code to detect RFID tag num |
Posted: Thu Jan 09, 2014 8:20 pm |
|
|
I am a beginner, and I pasted a code and edited it. I think there is some mistakes in circuit too [virtual terminal]. So I will look into that also and will post the code and problem soon. tTanks to all for the replies. _________________ Saga |
|
|
|