Please help connect RC522 to NodeMCU v3 4M

Posted on
  • Please help connect RC522 to NodeMCU v3 4M


    1 Attachment

    • nodemcu-rc522.jpg
  • I connect by this diagram to other my board D1 Wemos do not working in ESPRUINO

    from this link https://hackaday.io/project/10498-carontepass-open-access-control


    1 Attachment

    • carontepass-rc522.png
  • Thanks all i found answer on this post.. https://github.com/espruino/EspruinoDocs/issues/258

    Solutions:

    var spiSoftware, chipSelect, rfid, rfidTest;
    function onInit() {
      spiSoftware = new SPI();
      spiSoftware.setup({
        sck: D14,
        miso: D12,
        mosi: D13
      });
      chipSelect = D15;
      rfid = require('MFRC522').connect(spiSoftware, chipSelect);
      setInterval(rfidText, 2000);
    }
    
    function rfidTest(){
        console.log("trying to find card");
        return rfid.findCards(function(card){
          return console.log("Found " + card);
        });
      };
    
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Please help connect RC522 to NodeMCU v3 4M

Posted by Avatar for Aleksandrs @Aleksandrs

Actions