arduino12 / rdm6300

A simple library to interface with RDM6300 RFID reader.
GNU General Public License v3.0
92 stars 32 forks source link

ESP32 RTCWDT_RTC_RESET #9

Closed spcqike closed 4 years ago

spcqike commented 4 years ago

Hello,

i have problems, connecting a RDM630 to my project.

first: currently, i'm not using this library, but i still hope you can help me somehow, because i think i have some "general" problem.

i try to use the RDM630 (not 6300) in a project, that allready has about 800 lines of code, so i won't post all of it here.

when i connect the RDM630 to an ESP32 GPIO16 (uart2?) and power it with 5V, i have no problem reading the RFID tag with the following code: `

include

HardwareSerial MySerial(1);

void setup() { Serial.begin(115200); MySerial.begin(9600, SERIAL_8N1, 16, -1); Serial.println("Start"); } char data[40]; int karte=0; byte value; void loop() {

if (MySerial.available()) {

bool call_extract_tag = false;

value = MySerial.read();

if (value == 2) {
  karte=0;
} else if(value ==3) {
  call_extract_tag=true;
}

data[karte++] = value;

if (call_extract_tag == true){
  char ID[20];
  for(int i = 0 ; i < 10 ; i++){
    ID[i]=data[i+1];
  }
  Serial.println("empfangen: ");
  //Serial.println(data);
  Serial.println(ID);
  karte=0;
}

} } `

everything works as expected.

but when i try to migrate this piece of code to my project, i get the following error at boot. ets Jun 8 2016 00:22:57

rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) flash read err, 1000 ets_main.c 371

my project uses one SD card (direct connected via vspi 5, 18,19,23) and an I2C RTC (22/21) and connects to wifi. as long as i disconnect the RDM630 from the ESP (remove 5V) the sketch works just fine, of course without rfid. when i connect the RDM630 everything keeps crashing. i read, that this problem might be related to some power failure, but even when i connect the RDM630 to an external power supply (so no usb power) it's not working.

do you have any ideas? thanks in advance

best regards

spcqike commented 4 years ago

after several hours of trial and error, tons of read forums and finally the possibility to view the voltages at the oscillator, i found my problem.

the "GND" pin on the pcb isn't GND, but CMD. When i use proper GND, everything works like a charm. I'll leave it here in case anyone has a similar problem. Doublecheck your wiring...