How to interface RFID with Odinub?

Hello everyone, now in this tutorial we will connect our Odinub board with the RFID and read the tags. RFID belongs to a group of technologies referred to as Automatic Identification and Data Capture (AIDC). AIDC methods automatically identify objects, collect data about them, and enter those data directly into computer systems with little or no human intervention.

This project is basically dealing with concerns in the field of security and privacy issues in the digital era. The most important thing is that the tag is scanned using wireless signals. This medium is currently used in many digital electronics and mediums where the registration or verification of people is in process. RFID is an acronym for “Radio-Frequency Identification” and refers to a technology whereby digital data encoded in RFID tags or smart labels (defined below) are captured by a reader via radio waves. This is similar to barcoding in that data from a tag or label are captured by a device that stores the data in a database. This, however, has several advantages over systems that use barcode asset tracking software. The most notable is that RFID tag data can be read outside the line-of-sight, whereas barcodes must be aligned with an optical scanner.

About: The RFID tags are very cheap and can store the details up to a few bytes or kilobytes. These tags can store any personal detail or event details as well. And hence, can trigger the microcontroller or processor to some events. Evenly these tags are made up of durable plastics or thin-film materials that could be used as a debit card or can take the shape of the keychain.

Application: As an illustration, the Attendance system in any school, or college or Office premises. This project can reduce the amount from the time being taken in the Attendance and as this system is all digital, the attendance data of the people present in the room can be stored in the cloud on a real-time basis.

Below are a few images that will show you through the process of interfacing the RFID with Odinub.

This tutorial contains only 3 STEPS:

Step-1: Connect the RFID with the UART pins of Odinub. Connect 5volt and Ground pins. Now connect Tx pin of RFID with Rx pin of UART-1 on pin-7 of Odinub.

Step-2: Open the terminal on your Odinub and follow the step below. 
Now to check the serial port, type the go-to main directory. 

Step 2.1 go to

cd ../ ../

The above command would take you to the home folder.

Step 2.2:


ls - would list all the documents and folders in the directory.

Step 2.3:

ls -l/dev/tty

The above command would list the ports and would guide to the directory of the serial ports.
This will show the port with highlighting pen. That ensures that the serial port is working.
Image:1 shows the path to the directory of Serial Port

ls -l/dev/ttyS1

Image:2 Shows the Serial Port highlighted
Image:3 shows the OUTPUT when the RFID tag is scanned.
To write the program open nano editor using the following command: 

sudo nano

This will open the new window to write the program. You can copy-paste our program and paste it by clicking the Right-Click on mouse pointing in the terminal. 

Step-3: Run the Python Script. For that, you would get the code below in the code section.


To run the python script, after copying it in a py file, follow these commands:
> CTRL+X to save the file.
> You will be asked to enter Y to save or overwrite the file, Press Y.
> Note: if any commands do not run, or if permissions are denied, write sudo before the commands.
> To run the py file, type sudo python
> And here you go. And now as you scan the Tags around the RFID receiver you will hear a sound as BEEP. This would be the feedback if the RFID TAG is scanned.

These are a few simple steps to execute the RFID project with Odinub. As a matter of fact, RFID tags are typically made from durable plastic, and the tag is embedded between the layers of plastic. These help in increasing the use of digital technologies and also help in reducing the usage of Papers that help in making the environment green, again.

Developers are always welcomed to share their ideas and projects! Do let us know below if you find this helpful. Thank you.

Code :
Code Title :
Code Language :
0 Commenting Overall Comment