Arduino Fingerprint Attendance System W/ Cloud Data Storage
by Electropeak in Circuits > Arduino
4829 Views, 11 Favorites, 0 Comments
Arduino Fingerprint Attendance System W/ Cloud Data Storage
You can read this and other amazing tutorials on
ElectroPeak's official website
Overview
Nowadays, learning about IoT devices operation and implementation is so essential due to the increasing use of IoT systems. In this tutorial, we are going to make a fingerprint attendance device with Arduino, which in addition to storing the logging information and working hours on the memory card, uploads this information on the Thingspeak platform as soon as it is connected to the Internet and You can download this information from the panel in various formats, such as CSV.
What You Will Learn
- Introduction to the Thingspeak
- Uploading data on Thingspeak using Nodemcu
- Make an attendance device with the fingerprint sensor and Arduino
What Is Thingspeak?
Iot (Internet of things) is a platform in which there are a number of things connected to the Internet, interacting with individuals and other devices, and usually, upload data on cloud computing for analysis.
Thingspeak is an IoT platform that lets you display and collect live data in cloud computing.
Interfacing With Thingspeak and Uploading Data
Follow the steps below to start the Thingspeak connection:
Step 1) Enter the Thingspeak.com website and create an account.
Step 2) Login after activating your account and click on New Channel in the My Channel section.
Step 3) In the new window opened for you, write a name for your panel and any description if it is necessary. Determine the number of fields that you need by assigning their names. The remaining parts are optional. Save the panel after completing the information.
Step 4) Now go to API Keys in your panel.
Step 5) You need the Channel ID and Write API Key to transmit data, so write them down.
Step 6) Download the Thingspeak library and add it to your Arduino IDE.
Step 7) Go to the Arduino IDE. Open the WriteMultipleFiels from examples part and enter the SSID, Password, Channel ID, and Write API Key values.
After uploading the code, you will see some random numbers uploaded in fields 1 to 4 of your panel. The same structured code is used in the attendance system for uploading data.
Note
Wait at least 15 seconds between each time you upload the data on the Thingspeak panel.
Downloads
Required Materials
Hardware Components
Micro SD TF Card Adapter Module *1
3.5" TFT Color Display Screen Module *1
NodeMCU ESP8266 ESP-12E Board *1
Software Apps
Creating Attendance System Using the Fingerprint Sensor and Arduino
In this system, after registering the entry and exit of a person by his fingerprint, the information including date, name, time of arrival, time of departure and working hours for the employee are stored on the SD card. Then this information will be sent to Thingspeak at the time you have specified. In the absence of the Internet connection, unpublished data is stored and will be forwarded to Thingspeak as soon as it is connected to the Internet. Since the information is stored in the EEPROM of the microcontroller, they will not be lost in case of a power outage.
Circuit
After connecting all modules, put the LCD shield on the Arduino.
Tip
Since the LCD Shield covers some of the Arduino pins, you can border wire to a specific pin from the bottom of the board, if you need these pin.
Code
You need the following libraries for this code:
Adafruit-Fingerprint-Sensor-Library
Now download the following code and upload it to your Arduino. This code is written for 11 people with default names, but you can change them and remove it from the default mode. To register a new name, simply connect the device to your computer and press the key to enter the register mode, then open the Serial Monitor and follow the registration process as is shown on the Serial Monitor.
Download the code from above:
You can learn more about using an SD card, the clock module, and the LCD in the following links:
SD Card Module w/ Arduino: How to Read/Write Data
How to Use DS1307 RTC Module with Arduino & Make a Reminder
Absolute Beginner’s Guide to TFT LCD Displays by Arduino.
Nodemcu executes the task of uploading the information in this system. It takes the uploading information from Arduino through the serial port and returns the status of uploading to Arduino. Upload the following code on your Nodemcu.
First, change the Channel ID and Write API Key according to your Thingspeak Panel.
The String_Analuze (); function in this code divides the Nodemcu input strings into the date, name, arrival and departure time, and working hours, and sends this information to Thingspeak. Then if the uploading process is successful, it sends the character “1”, and otherwise it sends the character “0” to the Arduino.
Assembling the Attendance Device
You can use the following maps and Plexiglass with different colors or any other material to build the body of the attendance device.
Download the device body laser cut map from above:
After placing electronic components and assembling the entire body, install it in the desired location. Now, just plug a 12V adapter to the device and it starts working.
Downloads
What's Next?
- Try to use more icons on the LCD.
- Try to add an RFID option to the system.
- Try to upload the data on the google spreadsheets instead of Thingspeak.
If you find this tutorial helpful and interesting please like us on facebook.