Pages: [1] 2   Go Down
Author Topic: Arduino wont print RFID tag #  (Read 1526 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have an Arduino Pro 16MHz 328 and a Parallax RFID Reader.
The reader is connected as follows:
Enable Pin = Pin2
Sout = Pin 0 (RX)

The script I'm using is here:
http://arduino.cc/playground/Learning/PRFID

It complies and seems to run fine although the RFID led remains Red the entire time, but when I open the serial monitor it wont show anything. What is wrong?

Thanks!
« Last Edit: January 06, 2012, 05:44:14 pm by pwnm30rdi3 » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34518
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you set the monitor window to 2400 baud in the lower right corner?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you set the monitor window to 2400 baud in the lower right corner?

Yeah,
I selected 2400 baud in the drop down selection. Do I need to click/ type anything after selecting the baud in the drop down window? smiley-sad

Any other ideas? Doubt it is a faulty RFID reader. I know everything is soldered correctly. I have to be missing a step.
1. Selected my Arduino Board and Com Port 3
2. Pasted the code into the Arduino software
3. Uploaded with no compiling errors.
4. RFID starts up flashes green and then flashes and remains red. If I hold the card in front of the reader the Red led goes dim but nothing prints.

Logged

New Jersey
Offline Offline
Faraday Member
**
Karma: 70
Posts: 3727
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Put a Serial.println("Some text"); after your Serial.begin. Does it appear on the monitor?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Put a Serial.println("Some text"); after your Serial.begin. Does it appear on the monitor?

I'll be able to try this tomorrow and let you know!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Put a Serial.println("Some text"); after your Serial.begin. Does it appear on the monitor?

I'll be able to try this tomorrow and let you know!

It prints the "Some text" but it fails to print anything else.
Could it be a bad RFID reader?
« Last Edit: January 09, 2012, 07:01:52 pm by pwnm30rdi3 » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34518
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using the right sort of tags, that is EM41000 types.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using the right sort of tags, that is EM41000 types.

They came in a kit together from Parallax.
It shouldn't be the code since I copied it straight from Arduino's playground.
What else could it be?

Picture of Arduino Pro


Picture of RFID Reader
« Last Edit: January 09, 2012, 07:52:09 pm by pwnm30rdi3 » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34518
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
although the RFID led remains Red the entire time
Does that include when a token is presented?
If so all I can think is that the reader is not working.
Have you got a scope so you can check signals?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
although the RFID led remains Red the entire time
Does that include when a token is presented?
If so all I can think is that the reader is not working.
Have you got a scope so you can check signals?

The LED does remain solid red while the token is present. I ordered a second reader and it should be arriving sometime today.
I do not have a scope smiley-sad
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I switched the readers out... Same problem. What could it be now?
Also I just tried this guys code: http://www.gumbolabs.org/2009/10/17/parallax-rfid-reader-arduino/
It still wouldn't do anything?

It has to be the Arduino?
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34518
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

When you disable the reader does the LED turn green?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When you disable the reader does the LED turn green?

When I wave the card and/ or hold it in front of the reader nothing happens.

When I turn the arduino pro on the Reader's light turns green for like 2 seconds and then turns reds though.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 634
Posts: 34518
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you not understand that?
In order to find out what is wrong you need to test things. So you need to write a sketch that toggles the enable line like a flashing LED.
Then you need to see if you are getting anything from the serial port. To do this I would suggest you power the arduino sepratly, not from the USB and blink an LED every time you see any character from the serial port. By having the USB disconnected you remove the problem of two signals fighting to control the RX line. Does your arduino have a 1K seriese resistor. I ask because it is only an arduino clone, not a real one and it might be the issue.

Finally you could try recieving data on another pin using the new software serial library.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you not understand that?
In order to find out what is wrong you need to test things. So you need to write a sketch that toggles the enable line like a flashing LED.
Then you need to see if you are getting anything from the serial port. To do this I would suggest you power the arduino sepratly, not from the USB and blink an LED every time you see any character from the serial port. By having the USB disconnected you remove the problem of two signals fighting to control the RX line. Does your arduino have a 1K seriese resistor. I ask because it is only an arduino clone, not a real one and it might be the issue.

Finally you could try recieving data on another pin using the new software serial library.

I do understand now! Thank you so much for taking the time to explain it.
I tested the /enable line and the LED remained Green when Disabled.
Then i tested the serial port on the "fake" arduino.
Turns out the serial port is dead? So I am now using port 8 (: & it works!!!
-----
Now for some reason the script is not working:
http://pastebin.com/raw.php?i=jMvVLmvG

Compiles fine and to me looks like it should work just fine.

« Last Edit: January 10, 2012, 08:14:42 pm by pwnm30rdi3 » Logged

Pages: [1] 2   Go Up
Jump to: