RCTIME Questions
Jeff_5_
Posts: 36
I havea BS2 homework board and an rfid reader. I am working on range using the RSSI pin on my rfid reader. The reader outputs an analog voltage in the range of .5-1 volt based on how far away the rfid tag is away. 1volt being very close .5 volt far away. Anyway i was trying to convert the voltage to digital to read into the stamp with the RCTIME command. I eneded up with the wire straight from the RSSI pin going to BS2 pin 3 and it works without any resistor or capacitors. So i think i am running the RCTIME command on an analog voltage singal in the range of .5-1volt.
The RCTIIME is about 1600 with the tag about 20ft away. All i want is to determine if the tag is withing 20feet or out of the ranger being farther away then 20ft.
Here is my code
time VAR Word
Main:
HIGH 3
PAUSE 1
RCTIME 3,1,time
PAUSE 500
DEBUG DEC time, CR
IF(time< 1600) THEN
DEBUG "Out Range ", CR
ELSEIF (time > 1600)THEN
DEBUG "In Range",CR
ENDIF
GOTO main
My question is why does this work and will it continue to work accurately?
The RCTIIME is about 1600 with the tag about 20ft away. All i want is to determine if the tag is withing 20feet or out of the ranger being farther away then 20ft.
Here is my code
time VAR Word
Main:
HIGH 3
PAUSE 1
RCTIME 3,1,time
PAUSE 500
DEBUG DEC time, CR
IF(time< 1600) THEN
DEBUG "Out Range ", CR
ELSEIF (time > 1600)THEN
DEBUG "In Range",CR
ENDIF
GOTO main
My question is why does this work and will it continue to work accurately?