Comments (12)
It has to be the long wiring, I triple checked evrything.
from rfid.
This is how I connected it
SDA 5
SCK 18
MOSI 23
MISO19
IRQ /
GND GND
RST 16
3V3 3V
from rfid.
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.
from rfid.
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.
from rfid.
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.
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.
from rfid.
How long do you have it working... Year, month, days? And what protocol, RS485, RS232, ...
from rfid.
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.
Is it this board you are using?
from rfid.
Related Issues (20)
- Message spam if the approximate card is not registered (how to solve it?)
- PICC type: Unknown type HOT 1
- How to extend this library for spresense board HOT 1
- Firmware version
- RST not works HOT 1
- Rfid
- Compile error with Arduino ESP32 release 2.0.8 HOT 5
- WARNING: Communication failure, is the MFRC522 properly connected? what is the problem?
- RC522 Mini Not Work vs RC522 Normal HOT 5
- How to get 5 bytes UID ? HOT 3
- Help i can't get the RC522 module for RFID to work. HOT 4
- Card Avaliable Function
- RFID tag shows lines "-----" instead of actual values
- Example "Minimal-SPI" does not compile HOT 1
- "the ordered comparison of pointer with integer zero" Fix for RP2040 (earlephilhower core > 3.3x)
- Help! How does the uid data is return to the buffer array in PICC_Select
- Help me? ARDUINO RC522
- Missing L1 on Hardware - please help what typ to insert...
- CardReader do not detect new cards
- Unable to read a known version from the rc522. Getting 0x89 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rfid.