Offline
Newbie
Karma: 0
Posts: 24
|
 |
« on: January 06, 2012, 05:17:49 pm » |
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/PRFIDIt 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)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #1 on: January 06, 2012, 06:02:53 pm » |
Have you set the monitor window to 2400 baud in the lower right corner?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #2 on: January 07, 2012, 02:25:03 am » |
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?  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
Edison Member
Karma: 24
Posts: 2354
|
 |
« Reply #3 on: January 07, 2012, 05:39:39 am » |
Put a Serial.println("Some text"); after your Serial.begin. Does it appear on the monitor?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #4 on: January 07, 2012, 08:50:20 pm » |
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
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #5 on: January 09, 2012, 06:48:02 pm » |
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)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #6 on: January 09, 2012, 07:03:00 pm » |
Are you using the right sort of tags, that is EM41000 types.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #7 on: January 09, 2012, 07:38:28 pm » |
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)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #8 on: January 10, 2012, 05:58:12 am » |
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
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #9 on: January 10, 2012, 08:26:18 am » |
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 
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #11 on: January 10, 2012, 09:53:21 am » |
When you disable the reader does the LED turn green?
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #12 on: January 10, 2012, 03:15:35 pm » |
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)
Offline
Brattain Member
Karma: 277
Posts: 25556
Solder is electric glue
|
 |
« Reply #13 on: January 10, 2012, 03:55:11 pm » |
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
Newbie
Karma: 0
Posts: 24
|
 |
« Reply #14 on: January 10, 2012, 07:05:32 pm » |
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=jMvVLmvGCompiles fine and to me looks like it should work just fine.
|
|
|
|
« Last Edit: January 10, 2012, 08:14:42 pm by pwnm30rdi3 »
|
Logged
|
|
|
|
|
|