Since we had to use several RFID tags before starting, we needed a procedure to check each UID, a unique ID. I have uploaded the following code with the circuit configured. We have made UIDs display in hexadecimal and decimal notation. The unique number you find here will be used later when you register the card you want to authorize.
In an Arduino program, it’s not possible to have a function that performs two actions with the same name. So, a function has to be declared that moves the servo motor through Bluetooth and a function that moves the servo motor by identifying the user with RFID.
If both operations put into loop () function at once, it will not work normally. So I fixed the error by putting each function separately in the loop function.
Comments