Yesterday I tried to reverse engineer the MFRC522 library and I failed, receiving varying data depending largely on the SPI setup.
I've also tried earlier versions of Espruino, just in case. No changes.
The board I have, the Wemos D1 R1 is no longer in production, they are doing the R2 now, mostly pin changes apparently. But I can't help but wonder if that is the root of my problem.
I should get the NodeMCUV3 and an ESP32 any time now. I'll try with that and make sure to keep this thread updated.
'If you like you can flash the 4MB build after you got the MFRC522 working :)'
I thought that was that I had going?? I got the 4MB version, in directory form and flashed it with :
'So go and get your Donated label below your Avatar.'
I've become a small patron on patreon, I'll make sure to update that as well when I get back to full time employment.
'Stopping Wifi is helpful during testing'
I figured that would help with @allObjects's comment on the non-negotiable demands of the wifi stack. It didn't seem to affect the results I was getting (not like changing NSS pin or using software SPI)
'got a pico, esp8266 and a MFRC522 on my desk and will give it a try.'
If you get to dig deep, I'd be interested in what the communication looks like in a working MFRC522!
Sooo... In the meantime I gave in to the dark side, plugged the MFRC522 in the Arduino Nano and wrote a small C script for it to be slave I2C and report back to the ESP8266 running Espruino. Within 30 minutes I was reading cards, that felt good.
I'm not giving up on having it directly on an ESP, but I'll take a break from it until I get further gear (or the logic analyzer!). Thanks again for the answers.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yesterday I tried to reverse engineer the MFRC522 library and I failed, receiving varying data depending largely on the SPI setup.
I've also tried earlier versions of Espruino, just in case. No changes.
The board I have, the Wemos D1 R1 is no longer in production, they are doing the R2 now, mostly pin changes apparently. But I can't help but wonder if that is the root of my problem.
I should get the NodeMCUV3 and an ESP32 any time now. I'll try with that and make sure to keep this thread updated.
I thought that was that I had going?? I got the 4MB version, in directory form and flashed it with :
After running the esptool erase_flash, of course.
I've become a small patron on patreon, I'll make sure to update that as well when I get back to full time employment.
I figured that would help with @allObjects's comment on the non-negotiable demands of the wifi stack. It didn't seem to affect the results I was getting (not like changing NSS pin or using software SPI)
If you get to dig deep, I'd be interested in what the communication looks like in a working MFRC522!
Sooo... In the meantime I gave in to the dark side, plugged the MFRC522 in the Arduino Nano and wrote a small C script for it to be slave I2C and report back to the ESP8266 running Espruino. Within 30 minutes I was reading cards, that felt good.
I'm not giving up on having it directly on an ESP, but I'll take a break from it until I get further gear (or the logic analyzer!). Thanks again for the answers.