I've been having a hard time making the HID R15 on mega and ethernet shield (wiznet) work together. The rfid work ok alone as well as the ethernet shield. The rfid stopped working when I connect the shield, this is without any uploaded code for the shield yet. The rfid uses data/clock so it uses interruptAttach(). I read somewhere to try and bend pin 2 of the shield and connect the rfid straight to the arduino. It worked ok but not consistent enough, meaning the rfid would beep for no reason, the range is gone and it takes a while to read tag.
Is this a known issue or is there a work around here or can it be fixed through code?
just in case anyone ask for the code i got it from here (thanks btw):
My apologies, I thought I was clear on the subject. The shield is the ethernet shield.
When I connect the ethernet shield on the mega the rfid stop working. It won't read any tags. This is without any code yet for the ethernet shield.
I bent the pin 2 on the ethernet shield so it won't connect to the mega's pin 2 when I stack them together. And then I connect the RFID straight to the mega's pin 2. I was able to read tag but with some problems- rfid would beep for no reason; the reading range of the rfid is gone; and it takes a couple of taps before the rfid recognizes that a tag is present.
I had to use pins 2 & 3 because the rfid uses (data/clock) interrupt to read tags. My project is a simple access control. When the user scan his/her tag, it then checks in the database server to check if the tag is valid and unlock the door.