-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eb4c0b3
Showing
159 changed files
with
17,865 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.pio | ||
.vscode/.browse.c_cpp.db* | ||
.vscode/c_cpp_properties.json | ||
.vscode/launch.json | ||
.vscode/ipch |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Continuous Integration (CI) is the practice, in software | ||
# engineering, of merging all developer working copies with a shared mainline | ||
# several times a day < https://docs.platformio.org/page/ci/index.html > | ||
# | ||
# Documentation: | ||
# | ||
# * Travis CI Embedded Builds with PlatformIO | ||
# < https://docs.travis-ci.com/user/integration/platformio/ > | ||
# | ||
# * PlatformIO integration with Travis CI | ||
# < https://docs.platformio.org/page/ci/travis.html > | ||
# | ||
# * User Guide for `platformio ci` command | ||
# < https://docs.platformio.org/page/userguide/cmd_ci.html > | ||
# | ||
# | ||
# Please choose one of the following templates (proposed below) and uncomment | ||
# it (remove "# " before each line) or use own configuration according to the | ||
# Travis CI documentation (see above). | ||
# | ||
|
||
|
||
# | ||
# Template #1: General project. Test it using existing `platformio.ini`. | ||
# | ||
|
||
# language: python | ||
# python: | ||
# - "2.7" | ||
# | ||
# sudo: false | ||
# cache: | ||
# directories: | ||
# - "~/.platformio" | ||
# | ||
# install: | ||
# - pip install -U platformio | ||
# - platformio update | ||
# | ||
# script: | ||
# - platformio run | ||
|
||
|
||
# | ||
# Template #2: The project is intended to be used as a library with examples. | ||
# | ||
|
||
# language: python | ||
# python: | ||
# - "2.7" | ||
# | ||
# sudo: false | ||
# cache: | ||
# directories: | ||
# - "~/.platformio" | ||
# | ||
# env: | ||
# - PLATFORMIO_CI_SRC=path/to/test/file.c | ||
# - PLATFORMIO_CI_SRC=examples/file.ino | ||
# - PLATFORMIO_CI_SRC=path/to/test/directory | ||
# | ||
# install: | ||
# - pip install -U platformio | ||
# - platformio update | ||
# | ||
# script: | ||
# - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
// See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
// for the documentation about the extensions.json format | ||
"recommendations": [ | ||
"platformio.platformio-ide" | ||
], | ||
"unwantedRecommendations": [ | ||
"ms-vscode.cpptools-extension-pack" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "My Server", | ||
"host": "localhost", | ||
"protocol": "sftp", | ||
"port": 22, | ||
"username": "username", | ||
"remotePath": "/", | ||
"uploadOnSave": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"type": "PlatformIO", | ||
"task": "Build", | ||
"problemMatcher": [ | ||
"$platformio" | ||
], | ||
"group": "build", | ||
"label": "PlatformIO: Build" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2023 IRPCPRO | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
 | ||
|
||
# Attendance Device V2 | ||
|
||
C++ Attendance Device project witch FingerPrint and NFC Card Reader with modules `Arduino mega 2560` and `Arduino Ethernet shield w5100`, `NFC PN V3` and `Fingerprint ZFM60`. | ||
|
||
All the needed files, Altium PCB circuit, 3D model case and Flowchart are in `FILES` directory | ||
|
||
## Authors | ||
|
||
- [@irpcpro](https://github.com/irpcpro) | ||
|
||
|
||
## Requirements | ||
|
||
- Cinema 4D (if you want `to edit the case of the device) | ||
- Altium Designer (if you want to edit the PCB circuit of the device) | ||
- Visual Studio Code [with  PlatformIO plugin] | ||
|
||
|
||
## Demo | ||
|
||
`Video` How to Design and make Attendance device | ||
|
||
- [Youtube video](https://www.youtube.com/watch?v=_ly7LJzFc-U) | ||
|
||
|
||
## Needed Architecture | ||
|
||
- CPU Architecture : `32 bit` | ||
- OS/ABI: `UNIX - System V` | ||
- Machine: `Atmel AVR 8-bit microcontroller` | ||
- Version: `0x1` | ||
|
||
|
||
## Needed Devices | ||
|
||
| row | Module | count | | ||
|----:|------------------------------------------------|-------| | ||
| 1 | 100K Ω Variable Resistor | 1 | | ||
| 2 | 3-pin light switch | 1 | | ||
| 3 | Arduino mega 2560 | 1 | | ||
| 4 | LCD 2 in 16 | 1 | | ||
| 5 | DS3231 RTC | 1 | | ||
| 6 | 3V Lithium battery for RTC | 1 | | ||
| 7 | Buzzer | 1 | | ||
| 8 | 100 ohm resistance | 1 | | ||
| 9 | LED Red | 1 | | ||
| 10 | LED Green | 1 | | ||
| 11 | DIP Switch | 3 | | ||
| 12 | Pcs Female Spade Terminal Connector | 10 | | ||
| 13 | 2 Pin Crooked Jack Male | 5 | | ||
| 14 | Keypad 4X4 Matrix Black 16-Button | 1 | | ||
| 15 | arduino ethernet shield w5100 | 1 | | ||
| 16 | NFC PN v3 | 1 | | ||
| 17 | Fan 4 in 4 | 1 | | ||
| 18 | Fan protector 4 in 4 | 1 | | ||
| 19 | DC Power Jack Adapter Male and female | 1 | | ||
| 20 | Flat cable 17 pin | 1 | | ||
| 21 | Box Header + IDC 17PIN | 1 | | ||
| 22 | 40 Pin 2.54mm 20mm Long Header Pins Male | 1 | | ||
| 23 | 40 Pin 2.54mm 15mm Pins Male | 1 | | ||
| 24 | Micro SD Ram 8Gig | 1 | | ||
| 25 | 2-Pin KCD3-101 On/Off Rocker Switch | 2 | | ||
| 26 | Transistor 2n222 | 2 | | ||
| 27 | Fingerprint ZFM60 | 1 | | ||
| 28 | Adaptor 12v 10Amp | 1 | | ||
| 29 | Lithium battery 12v 3Amp | 1 | | ||
| 30 | Screw | n | | ||
| 31 | Wire red and blue 0.4mm (each 3 meters) | 1 | | ||
| 32 | Board UPS DC 12v model 712 | 1 | | ||
| 33 | Transistor TIP41c | 1 | | ||
| 34 | Diode 16V 330uf | 1 | | ||
| 35 | 4-pin board connector Smooth male and female | 2 | | ||
| 36 | Connector Header male and female (22-05-3041) | 2 | | ||
| 37 | LM2596 2Amp | 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
|
||
This directory is intended for project header files. | ||
|
||
A header file is a file containing C declarations and macro definitions | ||
to be shared between several project source files. You request the use of a | ||
header file in your project source file (C, C++, etc) located in `src` folder | ||
by including it, with the C preprocessing directive `#include'. | ||
|
||
```src/main.c | ||
|
||
#include "header.h" | ||
|
||
int main (void) | ||
{ | ||
... | ||
} | ||
``` | ||
|
||
Including a header file produces the same results as copying the header file | ||
into each source file that needs it. Such copying would be time-consuming | ||
and error-prone. With a header file, the related declarations appear | ||
in only one place. If they need to be changed, they can be changed in one | ||
place, and programs that include the header file will automatically use the | ||
new version when next recompiled. The header file eliminates the labor of | ||
finding and changing all the copies as well as the risk that a failure to | ||
find one copy will result in inconsistencies within a program. | ||
|
||
In C, the usual convention is to give header files names that end with `.h'. | ||
It is most portable to use only letters, digits, dashes, and underscores in | ||
header file names, and at most one dot. | ||
|
||
Read more about using header files in official GCC documentation: | ||
|
||
* Include Syntax | ||
* Include Operation | ||
* Once-Only Headers | ||
* Computed Includes | ||
|
||
https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
Thank you for opening an issue on an Adafruit Arduino library repository. To | ||
improve the speed of resolution please review the following guidelines and | ||
common troubleshooting steps below before creating the issue: | ||
|
||
- **Do not use GitHub issues for troubleshooting projects and issues.** Instead use | ||
the forums at http://forums.adafruit.com to ask questions and troubleshoot why | ||
something isn't working as expected. In many cases the problem is a common issue | ||
that you will more quickly receive help from the forum community. GitHub issues | ||
are meant for known defects in the code. If you don't know if there is a defect | ||
in the code then start with troubleshooting on the forum first. | ||
|
||
- **If following a tutorial or guide be sure you didn't miss a step.** Carefully | ||
check all of the steps and commands to run have been followed. Consult the | ||
forum if you're unsure or have questions about steps in a guide/tutorial. | ||
|
||
- **For Arduino projects check these very common issues to ensure they don't apply**: | ||
|
||
- For uploading sketches or communicating with the board make sure you're using | ||
a **USB data cable** and **not** a **USB charge-only cable**. It is sometimes | ||
very hard to tell the difference between a data and charge cable! Try using the | ||
cable with other devices or swapping to another cable to confirm it is not | ||
the problem. | ||
|
||
- **Be sure you are supplying adequate power to the board.** Check the specs of | ||
your board and plug in an external power supply. In many cases just | ||
plugging a board into your computer is not enough to power it and other | ||
peripherals. | ||
|
||
- **Double check all soldering joints and connections.** Flakey connections | ||
cause many mysterious problems. See the [guide to excellent soldering](https://learn.adafruit.com/adafruit-guide-excellent-soldering/tools) for examples of good solder joints. | ||
|
||
- **Ensure you are using an official Arduino or Adafruit board.** We can't | ||
guarantee a clone board will have the same functionality and work as expected | ||
with this code and don't support them. | ||
|
||
If you're sure this issue is a defect in the code and checked the steps above | ||
please fill in the following fields to provide enough troubleshooting information. | ||
You may delete the guideline and text above to just leave the following details: | ||
|
||
- Arduino board: **INSERT ARDUINO BOARD NAME/TYPE HERE** | ||
|
||
- Arduino IDE version (found in Arduino -> About Arduino menu): **INSERT ARDUINO | ||
VERSION HERE** | ||
|
||
- List the steps to reproduce the problem below (if possible attach a sketch or | ||
copy the sketch code in too): **LIST REPRO STEPS BELOW** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Thank you for creating a pull request to contribute to Adafruit's GitHub code! | ||
Before you open the request please review the following guidelines and tips to | ||
help it be more easily integrated: | ||
|
||
- **Describe the scope of your change--i.e. what the change does and what parts | ||
of the code were modified.** This will help us understand any risks of integrating | ||
the code. | ||
|
||
- **Describe any known limitations with your change.** For example if the change | ||
doesn't apply to a supported platform of the library please mention it. | ||
|
||
- **Please run any tests or examples that can exercise your modified code.** We | ||
strive to not break users of the code and running tests/examples helps with this | ||
process. | ||
|
||
Thank you again for contributing! We will try to test and integrate the change | ||
as soon as we can, but be aware we have many GitHub repositories to manage and | ||
can't immediately respond to every request. There is no need to bump or check in | ||
on a pull request (it will clutter the discussion of the request). | ||
|
||
Also don't be worried if the request is closed or not integrated--sometimes the | ||
priorities of Adafruit's GitHub code (education, ease of use) might not match the | ||
priorities of the pull request. Don't fret, the open source community thrives on | ||
forks and GitHub makes it easy to keep your changes in a forked repo. | ||
|
||
After reviewing the guidelines above you can delete this text from the pull request. |
Oops, something went wrong.