connect@howdiyworld.com
|

Attendance System

What is Needed?

What is Needed?

RFID Reader (EM18)
RFID tag
9V Battery
Jumpers
HowDIY

BLOCK DIAGRAM

Procedure

  1. RFID Reader (EM18), RFID tag, 9V Battery
  2. Connection
  3. Program
  4. Output

Procedure

RFID Reader (EM18)

A radio frequency identification reader (RFID reader) is a device used to gather information from an RFID tag, which is used to track individual objects. RFID is a technology similar in theory to bar codes. However, the RFID tag does not have to be scanned directly, nor does it require line-of-sight to a reader.

RFID Tag

RFID tags are affixed to items in order to track them using an RFID reader and antenna. RFID tags transmit data about an item through radio waves to the antenna/reader combination. When the tag receives the transmission from the reader/antenna, the energy runs through the internal antenna to the tag’s chip.

9V Battery

A battery is a device consisting of one or more electrochemical cells with external connections for powering electrical devices such as flashlights, mobile phones, and electric cars.

Connections

  • Connect RFID Reader’s Tx to 10th pin
  • Connect RFID Reader’s Ground (GND) to 6th pin
  • Connect 9V battery’s Positive (+) to RFID Reader’s VCC
  • Connect 9V battery’s Negative (-) to RFID Reader’s Ground (GND)

Program

import serial
import datetime
# Include Library
ser = serial.Serial (“/dev/ttyS0", 9600) #select

serial file
f=open(“/home/pi/Documents/LP/attendance_data.txt", “w") # Open the Text file
i=0
while i<3: # loop a=(str)(ser.readline(12)) # Read a value from card print(a) # print card number x =(str)(datetime.datetime.now()) # get date and time from rapberry pi print(x) # print date and time f.write("Card No:"+a+"Date&time:"+x+"n") #write the dara i=i+1 #increament f.close #close the file[/kc_column_text][/kc_tab][kc_tab title="Output" _id="536247" tab_id="output"][kc_title text="T3V0cHV0" _id="767063" type="h2"][kc_column_text _id="611122"]If you move RFID tag near to RFID Reader, It reads data from tag and saves to text file in HowDIY.To stop the process press Ctrl + C.

Social media & sharing icons powered by UltimatelySocial
Facebook
Twitter
YouTube
LinkedIn
Instagram