Hey there and thank you for reading this. I am using an A-Star 32U4 Micro arduino and im trying to conect the RDM6300 - 125KHz Cardreader Mini-Module.
Im using this scketch at the moment:
#include <SoftwareSerial.h>
// RFID | Nano
// Pin 1 | D2
// Pin 2 | D3
SoftwareSerial Rfid = SoftwareSerial(2,3);
void setup() {
// Serial Monitor to see results on the computer
Serial.begin(9600);
// Communication to the RFID reader
Rfid.begin(9600);
}
void loop() {
// check, if any data is available
if(Rfid.available() > 0 ){
// as long as there is data available...
while(Rfid.available() > 0 ){
// read a byte
int r = Rfid.read();
// print it to the serial monitor
Serial.print(r, DEC);
Serial.print(" ");
}
// linebreak
Serial.println();
}
}
with this circuit:
module tx --- arduino pin 2
module vcc ----- 5v
module ground ---- ground
antenna pins ---- antenna
when i put the card in the sensor nothing shows up on serial port. I tried this setup and exact same sensors on a arduino uno (same skecth) and it worket perfectly but i cant get this working on the micro.