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?
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.
Grumpy_Mike:
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!!!
Turns out the serial port is dead? So I am now using port 8
Not sure I understand that.
Now for some reason the script is not working:
So in what way is it not working?
I would put this code:-
SoftwareSerial RFID = SoftwareSerial(rxPin,txPin);
RFID.begin(2400);
In the setup() function, you don't want to initialise it every time through the loop.
Again you should dig in an put some debug print statements in that code to see where it is going to and work out where it is getting stuck.
So for example after the comment:-
// Read the full code
print out a message to say you have received something.