Lâp trình điều khiển đóng mở cổng với Module RFID-RC522 và Arduino Nano

Thảo luận trong 'Thiết bị điều khiển' bắt đầu bởi chinh trung, 8/4/18.

  1. chinh trung

    chinh trung Moderator

    1. Thiết bị:
    + 01 Board Arduino nano.
    + 01 Module RFID-RC522.
    + 01 Mạch hiển thị 8LED WS2812.
    + 01 Mạch điêu áp 12V/8V LM2596 để bảo vệ Board Arduino nano
    + 01 mạch còi Buzzer

    2. Chọn Board:
    +
    Cài đặt phần mềm Arduino IDE v.1.8.4.
    + Cài đặt drivers:
    - đối với win 32bit: vào thư mục Arduino IDE v.1.8.4\drivers --> dpinst-x86.exe --> enter.
    - đối với win 64bit: vào thư mục Arduino IDE v.1.8.4\drivers --> dpinst-amd64.exe --> enter.
    + Vào Tool --> chọn Board "Arduino nano'

    3. UPLOAD:
    Upload file đính kèm vào board Nano.

    4. Sơ đồ đấu dây:
    4.1. Module RFID-RC522:
    RC522
    --------------------Nano-------LM2596--------Nguồn

    -------------------------------Vin-----------8V--------------12V
    Vcc---------------------------3.3V
    RST---------------------------D8
    GND------------------------GND----------GND-----------GND
    IRQ--------------------------N/C (Not connect)
    MISO-------------------------D12
    MOSI-------------------------D11
    SCK---------------------------D13
    SDA---------------------------D10

    4.2. WS2812:
    WS2812---
    ---------------Nano

    4-7VDC-----------------------5V
    GND-------------------------GND
    DIN---------------------------D5
    DOUT------------------------N/C

    4.3.Buzzer:
    Buzzer
    ---------------------Nano

    GND-------------------------GND
    I/O----------------------------D3
    VCC---------------------------3.3V

    5.Ref:
    +
    https://www.brainy-bits.com/card-reader-with-an-arduino-rfid-using-the-rc522-module/
    + http://linhkiennghean.vn/san-pham/Module-RFID--RC522-sp769450
    + http://hshop.vn/products/mach-hien-thi-neopixel-8-rgb-led-ws2812
    + http://hshop.vn/products/mach-buzzer-5v
    6. Lib:
    + https://github.com/ljos/MFRC522

    + https://github.com/FastLED/FastLED/releases

    Các file đính kèm:

    Chỉnh sửa cuối: 11/9/18

Chia sẻ trang này