GithubHelp home page GithubHelp logo

Comments (12)

podaen avatar podaen commented on July 17, 2024

It has to be the long wiring, I triple checked evrything.

from rfid.

podaen avatar podaen commented on July 17, 2024

This is how I connected it

SDA 5
SCK 18
MOSI 23
MISO19
IRQ /
GND GND
RST 16
3V3 3V

from rfid.

podaen avatar podaen commented on July 17, 2024

I have it working, The ground was not connected and while testing I have added this line in the setup witch is wrong digitalWrite(RST_PIN, LOW);

from rfid.

starfield33 avatar starfield33 commented on July 17, 2024

from rfid.

podaen avatar podaen commented on July 17, 2024

It didn't work aqtually wel. It seems that multiple spi devices aren't really supported
I suggest you add SdSpiConfig spiconfig (CS_PIN, SHARED_SPI, SD_SCK_MHZ(4)); to your library

I also tried this

    pinMode(RST_PIN, OUTPUT);//power on reset pin high
    digitalWrite(RST_PIN, HIGH);

    pinMode(SS_PIN, OUTPUT);//cs pin rfid high = disconnected from spi
    digitalWrite(SS_PIN, HIGH);//power down

it didn't work. The two seperatly it work, but when connecting the SCK, MISO, MOSI it doesn't work anymore.

from rfid.

DrLou avatar DrLou commented on July 17, 2024

from rfid.

podaen avatar podaen commented on July 17, 2024

The length is not really an issue when they work sepratly, but together... I had a simulare issue on keypad with long wiring (non spi), they implemented scantime for that.

Anyway I had an other project with a display also connected with spi with a length few meters and after a couple of mounths it didn't work anymore ether. I dicided to, to connect them wireless. I think I am going to let it go. It will limit the distance of the rfid to the controller... In my case 5 meters would not be a problem.

I will use esp_now because I am using wifi on that particuare device. And wifi and bluetooth at the same time also doesn't work wel, but thanks for the info.

from rfid.

Rotzbua avatar Rotzbua commented on July 17, 2024

As @DrLou mentioned I agree that is is an electrical engineering challenge. There are various reasons for failing.
I know setups using 2m wiring having stability issues. They used thin not shielded wires. After switching to shielded quality wires it worked.

I do not see an issue in the code of this library. Due to this fact I would recommend @podaen to search help in an electrical engineering forum.

from rfid.

starfield33 avatar starfield33 commented on July 17, 2024

from rfid.

podaen avatar podaen commented on July 17, 2024

How long do you have it working... Year, month, days? And what protocol, RS485, RS232, ...

from rfid.

podaen avatar podaen commented on July 17, 2024

Is still SPI I see, but with a better error handling... Do you have it working with more than two devices? Or is it limited to two devices?

from rfid.

podaen avatar podaen commented on July 17, 2024

Is it this board you are using?
1_JpK5LmzjsmY0H-GNL2QWfQ

from rfid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.