※The above appearance is designed by the students of the design department.I am only responsible for the design of internal circuits and programs.
Item | Amount |
---|---|
Arduino pro mini ATMEGA328P 5V/16M | x1 |
Miafare MFRC522 module | x1 |
5V Bz | x1 |
One way relay module | x1 |
SY-L60S Magnetic lock | x1 |
Electronic transformer 12V-1A | x1 |
PL2303HXD USB to TTL cable | x1 |
Breadboard | x1 |
5V mobile phone charger | x1 |
Mobile phone charging cable | x1 |
Dupont Line | x20 |
Pro mini pin | PL2303HDX cable pin |
---|---|
GND | black line |
VCC | red line |
RX0 | green line |
TX0 | white line |
Step 1:
Connect pro mini pin and PL2303HXD line.
Step 2:
Choose correct board model and port.
Step 3:
Before you upload your code, you need to click the Reset button of pro mini and upload your code.
When the status bar display the Uploading..., and release the Reset button, and you can see the Done uploading.
Pro mini pin | MFRC522 module |
---|---|
VCC | 3.3V |
RST | 9 |
GND | GND |
MISO | 12 |
MOSI | 11 |
SCK | 13 |
SDA | A4 |
Pro mini pin | RGB LED module |
---|---|
GND | - |
6 | G |
3 | R |
5 | B |
Pro mini pin | Relay module |
---|---|
GND | - |
VCC | + |
7 | S |
Pro mini pin | Bz |
---|---|
GND | - |
10 | + |
Electronic transformer 12V-1A | Relay module | SY-L60S Magnetic lock |
---|---|---|
+ | COM | |
- | black line | |
NC | red line |