RFID RC522 and Normal DC Motor

by ngrigoriev in Circuits > Arduino

14181 Views, 36 Favorites, 0 Comments

RFID RC522 and Normal DC Motor

2015-02-09 13.39.28.jpg

My inspiration comes from a link: https://www.instructables.com/id/Arduino-RC522-RFI... On my own I have a DC motor and RFID RC522. By keeping those both in mind, I was wondering if I could do something useful as door unlocking/locking. So let's start!

For this project we need:

-Arduino board

-DC motor

-L298N chip (motor driver)

-Power Supply (5V-12V)

-Resistances (3x220OHM)

-RGB LED

-RFID RC522 (with a tag and a card)

Connect Motor Driver to Arduino Board and to DC Motor

L298N (not 10ohm).png

Arduino pins_________Motor Driver (L298N) pins

GND____________pin#1 (Current Sensing)

D2______________pin#5 (Input1)

D3______________pin#7 (Input2)

A3______________pin#6 (Enable1)

5V______________pin#9 (Logic Supply Voltage)

GND____________pin#8 (GND)

Power Supply

+(5-12V)_________pin#4(Supply Voltage)

-________________pin#8(GND)

Connect RFID RC522 to Arduino Board

RFID .png
2015-02-07 23.15.29.jpg
2015-02-07 23.19.36.jpg

Arduino pins____________RFID RC522 pins

D9____________________RST

D10___________________SDA

D11___________________MOSI

D12___________________MSO

D13___________________SCK

3.3V___________________3.3V

GND__________________GND

Connect RGB LED to Arduino

2015-02-07 23.32.01.jpg
2015-02-07 23.32.27.jpg

Arduino pins________ RGB pins

A0________________ pin#1 (Red)

A1________________pin#2 (Green)

A2________________pin#3 (Blue)

Sketch and Libraries

Here is the sketch: RFIDDoorLockVersion1

library:MFRC522