Need Some Help !!!

Falcon_007

New Member
Hello Everyone...
Could anyone helps me with my RFID Connection and Programming?

RFID Connection ==== ASCII
Pin1 === GND0
Pin2 === +5V
Pin3 === N/C
Pin4 === N/C
Pin5 === N/C
Pin6 === N/C
Pin7 === GND0
Pin8 === Portc pin0 on picaxe 40x1
Pin9 === N/C
Pin10 === Beeper/LED
Pin11 === +5V
--------------------------------------------------------------------
I can receive the data everytime i scan the Card...
there is sound in the beeper and light in LED with means the connection is right...

the iusse i have that i cant debug the card to check the ID of the card
could anyone helps me to write a program that i can define the Number of the tag ?
 

MPep

Senior Member
We would want more info than that. What hardware is being used to 'read' the cards, your software upto now?

If you can read the cards, then surely you know the ID??
 

Falcon_007

New Member
im using ID-12 Rfid
picaxe 40x1

i can read the card but i cant display the card ID or debug it

or do i need to interface the id-12 to hyper terminal and find out the Id..

do you think that i need to this....


could you please write a code

i can read from the id-12 from portc pin0 and compare it
 
Last edited:

hippy

Ex-Staff (retired)
Welcome to the PICAXE forum.

im using ID-12 Rfid

Is this the ID-12 from Sparkfun ?

http://www.sparkfun.com/commerce/product_info.php?products_id=8419


i can read the card but i cant display the card ID or debug it

How do you mean you can read the card ID ? That is, how do you know you are reading it ?


or do i need to interface the id-12 to hyper terminal and find out the Id.

The ID will vary according to which RFID card is presented to it. Using HyperTerm or other Terminal Emulator will confirm the reader is operating and reading the card but it should be possible to interface this to a PICAXE-40X1.
 

Falcon_007

New Member
this the RFID im using....
i know that im reading the card.....coz

first=== the beeper sound & LED light on when ever i pass the card over the RFID
second=== coz i serout the output and display on the LCD some char
third==== coz im using Multi-meter to check the responed

all i need is a program to disply the ID number instead of displaying funny char....

thanks:D

there is no problem with interfacing the RFID with PICAXE 40x1..... the problem in dispaly the card ID on the LCD
 
Last edited:

eclectic

Moderator
i know that im reading the card.....coz

first=== the beeper sound & LED light on when ever i pass the card over the RFID
second=== coz i serout the output and display on the LCD some char
third==== coz im using Multi-meter to check the responed

all i need is a program to disply the ID number instead of displaying funny char....

thanks:D
Please post

your circuit
your program.

e
 

inglewoodpete

Senior Member
Also. Using the debug window, you should see what data you are getting. How does this differ from what you expect?

It sounds like a data presentation problem.
 

Falcon_007

New Member
this is the circuit and the program.....


#picaxe 40x1 'type of the microcontroller used
setfreq m8 'setting up the frequency to 8Mhz
symbol x=198
b1=x
main:
b1= 198
high portb 7

serout 7,T9600_8,(254,1) 'clear the screen
serout 7,T9600_8,(" Welcome To",254,192) 'display on screen the msg. "welcome to"
serout 7,T9600_8,(254,12) 'second line
serout 7,T9600_8,(" AMA Supermarket")
pause 3000

main2:
b1=198
serout 7,T9600_8,(254,1)
serout 7,T9600_8,(254,12)
serout 7,T9600_8,(254,212)
serout 7,T9600_8,("Confirm(*) Cancle(#)")

main3:
serout 7,T9600_8,(" Enter Your Budget",254,192)
serout 7,T9600_8,(" BD ")
serout 7,T9600_8,(254,13)



keypad:
if b1>200 then 'setting up the maximum digits in the budget
goto confirm
endif

'serout 7,T9600_8,(254,b1)
let dirsc=%11010100
let pins =%11010100

high portc 2 'for row 1'
low portc 4,6,7

if portc pin3=1 then 'check if number 1 is pressed
b2=1
serout 7,T9600_8,("1")
inc b1
elseif portc pin1=1 then 'check if number 2 is pressed
b2=2
serout 7,T9600_8,("2")
inc b1
elseif portc pin5=1 then 'check if number 3 is pressed
b2=3
serout 7,T9600_8,("3")
inc b1
else
b2=0
endif
pause 100

high portc 7 'for row 2'
low portc 2,4,6

if portc pin3=1 then 'check if number 4 is pressed
b2=4
serout 7,T9600_8,("4")
inc b1
elseif portc pin1=1 then 'check if number 5 is pressed
b2=5
serout 7,T9600_8,("5")
inc b1
elseif portc pin5=1 then 'check if number 6 is pressed
b2=6
serout 7,T9600_8,("6")
inc b1
else
b2=0
endif
pause 100

high portc 6 'for row 3'
low portc 2,4,7

if portc pin3=1 then 'check if number 7 is pressed
b2=7
serout 7,T9600_8,("7")
inc b1
elseif portc pin1=1 then 'check if number 8 is pressed
b2=8
serout 7,T9600_8,("8")
inc b1
elseif portc pin5=1 then 'check if number 9 is pressed
b2=9
serout 7,T9600_8,("9")
inc b1
else
b2=0
endif
pause 100

high portc 4 'for row 4'
low portc 2,6,7

if portc pin3=1 then 'check if number * is pressed then goto list
goto list
elseif portc pin1=1 then 'check if number 0 is pressed
b2=0
serout 7,T9600_8,("0")
inc b1
elseif portc pin5=1 then 'check if number # is pressed then goto main2
goto main2
else
b2=0
endif
pause 100
goto keypad

confirm:
high portc 4 'for row 4'
low portc 2,6,7

if portc pin3=1 then 'check if number * is pressed then goto RFID
goto list

endif
if portc pin5=1 then 'check if number # is pressed then goto main2
goto main2

endif
goto confirm

list:
serout 7,T9600_8,(254,1)
serout 7,T9600_8,(" Your Shopping List",254,192)
serout 7,T9600_8,(254,12)

RFID:
' let pins = %00000000
' setfreq m8
' if portc pin0=1 then\
setfreq m4
serin 0 ,N4800,b5
' endif
' serout 7,T9600_8,(#b5,254,192)
' setfreq m4
pause 1000
debug b5
pause 1000
goto RFID
 

Attachments

hippy

Ex-Staff (retired)
First place to start is to strip your program down to the bare minimim and remove redundant code.

You might have to change the baud rate. I couldn't see the baud rate mentioned in the datasheet, Spakfun describe it as 9600 not 4800.

Also you might want to use Pin 9 out of the RFID reader rather than Pin 8.

I have a feeling of deja vu so probably worth searching the forum for previous projects using the same device.

The datasheet describes how to connect it to a PC so it would be worth trying that as it is easy enough to do, only needing a resistor.
 

Falcon_007

New Member
Im still having problem with picaxe 40x1 interfaced with rfid ID-12

i cant get the card tags number :(


could anyone tells me what is wrong???

its the connection or the programming...

i need a way to read the card tags number plzzzzz
 

hippy

Ex-Staff (retired)
It's either a program error, a wiring error, or faulty hardware, or any combination of those.

Which program code are you currently using and how is your circuit wired ? Did you check previous forum posts and find the code which shows how to use ID-12 with the PICAXE ?

Have you connected it to a PC and used HyperTerm or similar to see what that shows ?
 

Falcon_007

New Member
Helllooooooo :D

Finally, i can read the tags....the problem was a wire connection :p

i suppose to interface pin9 (TTL) to portd pin1===input 1
coz TTL means 5V

CMOS is input also but it work on 3.3V only


and i was regluting 5V on the picaxe protobored :rolleyes:
===============================================

picaxe 40x1 have 5 ports
portA>>>>> ADC only
portB>>>>> Output for serial
portC>>>>> Digital only
PortD>>>>> Input for serial
PortP>>>>> used for picaxe net
 
Last edited:

MPep

Senior Member
@ Hippy,

The first line of code is
Code:
setfreq m8 'setting up the frequency to 8Mhz
Therefore 4800 is used correctly.
 
Top