# luat-rc522 **Repository Path**: sukui/luat-rc522 ## Basic Information - **Project Name**: luat-rc522 - **Description**: 合宙Luat读写RC522 - **Primary Language**: Lua - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 13 - **Created**: 2019-09-02 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # luat-rc522 #### 介绍 合宙Luat读写RC522 本程序修改自 https://github.com/capella-ben/LUA_RC522 关系如下 ``` -- This is a port of: -- https://github.com/ondryaso/pi-rc522 -> Python -- https://github.com/ljos/MFRC522 -> Arduino -- https://github.com/capella-ben/LUA_RC522 -> ESP8266 by Ben Jackson ``` #### 软件架构 * 何为Luat, 请查阅 http://wiki.openluat.com/ * 何为RC522 IC卡/门禁卡的读取模块 * 何为Air202/Air720 合宙出品的GSM通信模块 ![what_is_rc522](what_is_rc522.jpg) 图片来源 https://blog.csdn.net/Leytton/article/details/73480974 #### 接线要求 |Color|RC522|Air202 S6| func | |-----|-----|---------|------| |绿 | RST | GPIO 3 | reset| |红 | 3.3v| - | 额外3.3v供电| |黑 | GND | GND | 与电源共地| |紫 |MISO | SPI_DI | rc522->air202| |蓝 |MOSI | SPI_DO | air202->rc522| |黄 |SCK | SPI_CLK | SPI 时钟 | |棕 |SDA | GPIO 2 | SPI 片选| ![接线实拍图](luat_rc522_linked.jpg) 注意: 供电必须是3.3v!注意共地!!否则不稳!! #### 文件说明 RC522.lua -- 驱动程序 test.lua -- 测试程序 main.lua -- demo的入口 #### 使用截图 ![Luat下载界面](luat_downloading.jpg) ![启动和读卡](luat_rc522_reading.jpg) #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request