|
Wemos D1mini开发板单片机 V2.2.0 ESP8266迷你WiFi板 4MB FLASH,购买未焊接 |
x 1 | |
|
Pushbutton |
x 2 | |
|
0.96" oled screen. |
x 1 | |
|
slideswitch |
x 1 | |
|
18650 Battery and holder |
x 1 | |
|
Mini 5v Step Up module. |
x 1 | |
|
RFID Card Module |
x 1 |
|
arduino IDEArduino
|
|
|
Soldering Iron Kit |
Wireless RFID Card Copier.
Wireless RFID Card Copier
In today's digital world, security and accessibility are of paramount importance. As smart devices become ubiquitous, RFID cards have become a popular choice for keyless entry and identification. There are instances where you might need to clone or back up an RFID card for legitimate uses. Enter the "Wireless RFID Card Copier," a compact device that reads and replicates RFID cards with ease. Powered by the versatile D1 Mini microcontroller and equipped with an OLED screen for immediate feedback, this device is both functional and fascinating.
Disclaimer:
The "Wireless RFID Card Copier" is intended only for legitimate uses. Unauthorized duplication of RFID cards can be unlawful and unethical. Always secure permission and employ responsibly. Adhere to safety guidelines during assembly and use to prevent potential accidents.
Potential Applications:
- Backup Utility: Create copies of your office or home RFID cards, ensuring you have a spare in case the original is lost.
- Learning Instrument: An ideal hands-on tool for those wanting to grasp RFID technology and microcontroller-based projects.
- Diagnostics: Useful for professionals to verify RFID system operations or troubleshoot issues.
Building Guide - The Wireless RFID Card Copier:
Gather the Necessary Tools and Materials:
- D1 Mini microcontroller (integrated into the PCB)
- I2C 0.96" OLED Screen
- MFRC522 RFID module
- Two push-buttons
- Custom PCB designed to fit the D1 Mini and components
- Micro USB cable (for programming and power)
- Soldering iron, solder, flux
- Tweezers or small pliers
Assembly:
- Prepare Your Workspace: Select a well-illuminated, tidy workspace to ensure precision and safety.
- Place the D1 Mini on PCB: Your custom PCB is designed to integrate the D1 Mini directly, so simply slot the D1 Mini into its dedicated location on the PCB.
- Integrate the OLED Screen: Solder the OLED's SDA and SCL pins to the corresponding locations designated on the PCB.
- Install the RFID Module: Ensure the RFID module's SDA and RST pins are connected to their designated spots on the PCB.
- Position the Buttons: Secure one button to the position labeled for "Select Mode" and the other for "Execute" on the PCB.
- Power Configuration: The D1 Mini can be powered directly via its micro USB port, also serving as the programming conduit.
- Programming the D1 Mini:
- The heart of the "Wireless RFID Card Copier" is its code. Using the Arduino IDE:
- Install required libraries: Adafruit_SSD1306, Wire, and MFRC522.
- Connect the D1 Mini to your computer via the micro USB cable.
- In the Arduino IDE, select the D1 Mini board and the corresponding COM port.
- Copy and paste the provided code into the IDE.
- Hit "Upload" to transmit the code to the D1 Mini.
- Once uploaded, your RFID Card Copier is primed for action!
Conclusion:
Merging the evolving world of RFID technology with the thrill of DIY projects, the "Wireless RFID Card Copier" exemplifies modern electronic capabilities. Embarking on this project not only deepens your understanding of RFID systems but also equips you with a tool to effortlessly clone and backup cards. Dive in with enthusiasm and marvel at a device that’s both captivating and immensely useful.
#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include <MFRC522.h>
#define SCREEN_WIDTH 128
#define SCREEN_HEIGHT 64
#define OLED_RESET -1
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define RST_PIN D8
#define SS_PIN D3
MFRC522 rfid(SS_PIN, RST_PIN);
#define BUTTON_SELECT D0
#define BUTTON_EXECUTE D4
bool mode = 0; // 0 = Read, 1 = Write
byte readData[18];
void setup() {
Serial.begin(115200);
pinMode(BUTTON_SELECT, INPUT_PULLUP);
pinMode(BUTTON_EXECUTE, INPUT_PULLUP);
SPI.begin();
rfid.PCD_Init();
display.begin(SSD1306_SWITCHCAPVCC, 0x3C);
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(SSD1306_WHITE);
display.setCursor(0, 0);
updateDisplay();
}
void updateDisplay() {
display.clearDisplay();
display.setCursor(0, 0);
display.println("Mode:");
display.println(mode ? "Write" : "Read");
display.display();
}
void loop() {
if(!digitalRead(BUTTON_SELECT)) {
mode = !mode;
delay(200); // debounce
updateDisplay();
}
if(!digitalRead(BUTTON_EXECUTE)) {
if(mode && readData[0] != 0) {
// Write Mode
writeRFID(readData);
display.println("Data Written");
display.display();
delay(1000);
updateDisplay();
} else {
// Read Mode
readRFID();
display.println("Data Read");
display.display();
delay(1000);
updateDisplay();
}
delay(200); // debounce
}
}
void readRFID() {
if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial())
return;
MFRC522::MIFARE_Key key;
for (byte i = 0; i < 6; i++) key.keyByte[i] = 0xFF;
byte block = 1;
byte len = 18;
rfid.PCD_Authenticate(MFRC522::PICC_CMD_MF_AUTH_KEY_A, block, &key, &(rfid.uid));
rfid.MIFARE_Read(block, readData, &len);
rfid.PICC_HaltA();
rfid.PCD_StopCrypto1();
}
void writeRFID(byte *data) {
if (!rfid.PICC_IsNewCardPresent() || !rfid.PICC_ReadCardSerial())
return;
MFRC522::MIFARE_Key key;
for (byte i = 0; i < 6; i++) key.keyByte[i] = 0xFF;
byte block = 1;
rfid.PCD_Authenticate(MFRC522::PICC_CMD_MF_AUTH_KEY_A, block, &key, &(rfid.uid));
rfid.MIFARE_Write(block, data, 16);
rfid.PICC_HaltA();
rfid.PCD_StopCrypto1();
}
Wireless RFID Card Copier.
*PCBWay community is a sharing platform. We are not responsible for any design issues and parameter issues (board thickness, surface finish, etc.) you choose.
- Comments(0)
- Likes(4)
- Engineer Oct 27,2023
- Donald McClintick Oct 26,2023
- Engineer Oct 23,2023
- Inaki Iturriaga Oct 20,2023
- 0 USER VOTES
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
More by Inaki Iturriaga
- GPS Mobile Beacon Building a GPS Emergency Beacon: A DIY TutorialWelcome to our latest DIY project: creating a GPS Eme...
- Wireless RFID Card Copier. Wireless RFID Card CopierIn today's digital world, security and accessibility are of paramount impor...
- Piezo Alert System. Within the fast-evolving sphere of security tools and home automation, creativity often paves the wa...
- Wifi Weather Station - Sensors board WiFi Weather Station - Sensor unitIn our digital era, many electronics projects integrate diverse se...
- RC Receiver Build Your Own RC ReceiverHarnessing advanced electronics and precise control systems, the RC Receiv...
- Universal RC Controller Build Your Own Universal RC RemoteHarnessing the power of custom PCBs and wireless communication, th...
- Continuous GPS Tracker This compact and efficient tracker provides real-time location updates, making it ideal for surveill...
- Air Quality Monitor Welcome to our DIY tutorial on assembling an Air Quality Monitoring Device. This project is perfect ...
- Automatic Watch Winder Automatic Watch WinderIn the realm of luxury timepieces and watch aficionados, an automatic watch is...
- Handheld GPS Within the swiftly advancing realm of portable technology and travel essentials, innovation often sh...
- Dual Motor Controller for Model Robotics In the thrilling world of robotics and DIY engineering, innovation continues to soar to new heights....
- Altitude Indicator with Beeper for Rocketry Altitude Indicator for Model RocketryIn our ever-advancing technological landscape, countless projec...
- Wifi Weather Station - Display unit WiFi Weather Station - Display UnitIn this technologically advanced age, countless electronics proje...
- Positon Breakout Board Position Sensors Breakout Board In today's era of advanced technology, many electronics projects req...
- Ambient Sensors Breakout Board In today's world, electronics projects often require the integration of multiple sensors to collect ...
- Infrared Launch Controller IntroductionHave you ever wanted to remotely launch a rocket, drone or other device using infrared t...
- Altimeter Datalogger with Display. Building TutorialAltimeter Datalogger with Display.Components needed:BMP280 sensorI2C to 16x2 displa...
- Remote Igniter + 3D printed Case. Remote IR Igniter.Build an Infrared remote ignitor for model rocket testing and launching!This guide...
-
-
-
-
-
-
3D printed Enclosure Backplate for Riden RD60xx power supplies
154 1 1 -
-