Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By Cjh411
#49453 I've tried to implement this and I'm havning some issues. I copied the code directly, set the pins as followed from RC522 to esp8266: SDA->2, SCK->14, MOSI->13, MISO->12 and power and ground to their counterpart. Are there any issues in this setup?

The code loads fine and I get the serial monitor to work up to the "Scan for card and print UID" but when i put cards up to it, I'm getting no reading. Any thoughts on what my issue might be? Do i need to declare the pins somewhere?
User avatar
By Flashmueller
#66216 I got it.

The bit-order in the Datastream started with the LSB instead of the MSB.

I have no clue why that happend... I switched back to an older version of the library and it started to work. Updated again to 1.3.6 and it still works.

Unfortunately the first byte sent is 00100100 - it is symetrical- so i were not able to figure out the problem.


Third byte is 00100110 -here it got visible :lol:

Wrong Bit-Order at ESP8266:
wrong.PNG



Right Bit-Order at Arduino Nano:
right.PNG
You do not have the required permissions to view the files attached to this post.