An STM32F7xx-compatible RFID-RC522 project and library using FreeRTOS (CMSISv2) as a base, UART for serial communication / debugging, SPI for communication with the reader and a servo motor for simulating a door lock.
- Have STM32CubeIDE installed
- Clone the project:
git clone https://github.com/erazemk/stm32f7-mfrc522.git
- Launch
.project
(this will import the project into STM32CubeIDE)
The following is the default pinout, but you can change it in the code if needed.
RFID-RC522 | STM32F769NI |
---|---|
SDA (SS) | D10 |
SCK (SCLK) | D13 |
MOSI | D11 |
MISO | D12 |
IRQ | / |
GND | GND |
RST | 3.3V |
3.3V | 3.3V |
SG90 | STM32F769NI |
---|---|
VCC | 5V |
DATA | D6 |
GND | GND |
The board automatically prints useful info to serial over UART.
To read it use a program like tio
(or screen
or PuTTY) to connect to
the board's USB port (usually COMx
on Windows and /dev/ttyACMx
on Linux).
With a program like tio
the defaults are enough (so tio /dev/ttyACM0
),
but here are the specifics:
- Baud rate: 115200
- Data size: 8 bits
- Parity: None
- Stop bits: 1
This project uses a custom MFRC522 library, parts of which were taken from or inspired by the following libraries: