I am new to Arduino and trying to build an RFID lock but keep on getting this error even though i have all possible RIFD libraries.
Here is my code:
d LockArduino #include <Servo.h> #include <SPI.h> #include <RFID.h>
What is the exact name of the libraries that you have installed?
There is a high chance that the name is not RFID.h
It is much more likely that the name is
MFRC522.h or something like that. The libraries are named after the Type of the chip that manages the reading. Because there are different chips that need different control-algorithms.
If you open the Arduino-library-manager and search for "RFID" which libraries did you install?
Thanks so much these are the names of the libraries i have installed:
MFRC225
adafruitmfrc630
adafruitpn532
rfiddb
and much more,but I couldn't find library called only RFID
So is there a question left?
You haven't yet described which exact hardware you were using. Please provide the exact type of the microcontroller-board and the components you are using.
Please provide links to product-descriptions and whenever possible provide download-links to datasheets or attach the datasheets to a posting
You are the one that wants help. So help yout potential helpers through making it easy to help you
Most sensors and devices that are used with a microcontroller have integrated circuit-chip that does most of the details for sensoring or controlling something.
Your RFID-reader has its own special-purpose-"microcontroller"-Chip called MFRC522.
So do a google-search for Datasheet MFRC522
google will find multiple sources where the datasheet can be downloaded.
an MFRC522 is pretty common. But the really important information for every potential user here is the chip-type which ismentioned in the amazon-product-description.
Only with knowing your RFID-reader is based on the Chip-type MFRC522 makes it possible for helpers to give advice:
Use a library that is able to control a MFRC522-Chip.
GitHub is the most common place for libraries of al kinds.
So do a google-search with the keywords Github Arduino MFRC522 to find the documentation and example-codes for this chip.
take a look at the examples. If you have questions about which MFRC522-library to use or which example-code to use just post the links to the webistes you have been looking at and ask this questions here in the forum.
Working this way shows: You are investing own effort into learning and now you have questions. By providing the links to the websites you make it easy for other users to look up these websites. This sort of questions is very welcomed. For most users it is fun to answer this kind of questions.
Thank you I managed to find the library but now I am getting this error
'class RFID' has no member named init
here's the code: #include <Servo.h> #include <SPI.h> #include <RFID.h>