I spent a lot of time on this project before, and I was fortunate to have discovered the potential of this simple recorder when designing the attendance recorder for local companies. The first prototype is based on Arduino and is just a conceptual product. The system used is the performance of the long version of the Arduino, and it also integrates many contemporary features. The RFID module was used in the early stages of development and can now be replaced with NFC modules. The detailed production process is described below for the reader's reference.
Step 1: What do you need?
we need:
- Arduino Mega 2560
- Ethernet Shield W5100 with SD card slot
-Micro RTC module
- Labeled RFID-RC522 module
-9V Power Supply
- Ethernet cables, circuit boards and some cables.
- (green and red or two-color) LED lights with 220 ohm resistors
- 8 ohm impedance speaker
Step 2: Planning
Set some requirements before you start designing:
Every employee must be able to have their own identity and be able to identify it. Ability to view the history of each employee, hours or arrival and departure work must be saved. In addition, the working time must be calculated from the arrival time and the departure time.
Identify the problem
We can divide the problem into three sub-questions: identify the employee, save the history and calculate the working hours, and browse the history. The first sub-problem can be solved with a radio frequency identification reader with some tags. The second problem, saving history can be solved with some kind of external memory module, such as SD card. The third problem is composed of communication and graphical user interfaces, which can be solved with a simple web server.
The third step: hardware equipment
The picture above is the connection between the modules. For SPI communication, we use hardware SPI (MISO, MOSI and CLK are all the same, SS pin Ethernet corresponds to pin 10, SD card corresponds to pin 4 and RFID reader is pin 6, RFID RST pin to pin 7 ). The LEDs are connected to 2 and 3 and the speakers are connected to the pins. Tiny RTC modules are connected through pins 20 and 21 of the I2C module. The 9V power supply is connected to the Arduino's external power connector. The Ethernet shield is connected to the computer (or router) through a twisted pair Cable .
Step 4: Arduino code
The above flowchart shows how the code should work. We wrote the web server with an Ethernet library instance. The rest of the code is an example from the RFID library, an example of the SD library and an RTC library example.
We use some HTML interface in HTML and CSS code in Notepad. The code is documented, so I won't do it again.
Step 5: Test with the RFID data collector of the web server
We tested all three of the expected features: we can now read the tag, identify it, record the employee's arrival time, departure time, and day of work. We did a short system run video.
Step 6: Summary
The picture above is our solution: the central part is the arduino mega 2560 platform. The RFID reader, Ethernet shield and microSD card are connected to the Arduino via SPI communication. The micro RTC module is connected through an I2C communication interface. In addition, when the card is successfully read, the indicator light and the small speaker are used for display.
Finally, we did a verification of our requirements. Here is the result: each employee can be identified by an RFID tag, and the history of each employee can be displayed. It is possible to record and store the arrival time, off-duty time, and working time of each employee within one month. From the results of the verification, we can conclude that the project was successfully completed. The project provides us with an application platform that is used daily by local companies.
This article is selected from the "Wireless Communications Special Issue", more quality content, download now
Yidashun offer full replacement NEC power Adapter for laptop with best service at the most competitive prices! All our NEC Laptop Charger are Brand New Replacement Product, works as Genuine parts, 100% OEM Compatible!! Our adapter with smart IC to protect your laptop with over current protection, over load protection, short circuit protection, over heat protection.
If your original NEC laptop adapter is not work anymore, please tell us your laptop model, we will help select the correct OEM replacement models for you. we offer a full 1 year warranty for our adapters.
NEC Laptop Charger,NEC Charger,NEC Adapter,NEC Computer Laptop Charger
Shenzhen Yidashun Technology Co., Ltd. , https://www.ydsadapter.com