Projects
Nano Circuit 1

Nano Circuit 1 (Access Control Circuit)

This circuit will have a keypad and an RFID card reader connected to a Nano. The Nano will read the data and display it on the LCD, send it to the ESP32 over UART, and write the data to the default Serial port so that it can be read by the Node-RED flow.

Components

Note the component output is from the pin pov, needs to be mapped to the corresponding board pin.

ComponentFunctionVoltagePins
KeypadInput digits.5VDigital Out
RFID ReaderRead RFID cards and tags.5VSPI
I2C LCD 16x2To display data.5VI2C
LED ModuleUsed as a visual indicator.3.3VDigital Out

Circuit Diagram

Pico Circuit Diagram

Connections

Board pin numbers are those printed on the board while code pin numbers need to be used in code (generally indicated in the pinout diagram as the GPIO pin number). They may be the same or different, depending on the board.

Board Pin
Code Pin
Pin ModeComponentPin
D22Digital InKeypadR4
D33Digital InKeypadR3
D44Digital InKeypadR2
D55Digital InKeypadR1
D66Digital InKeypadC1
D77Digital InKeypadC2
D88Digital InKeypadC3
D99Digital InKeypadC4
D1010SPI CSRFID ReaderSDA
D1111SPI COPIRFID ReaderCOPI
D1212SPI CIPORFID ReaderCIPO
D1313SPI SCKRFID ReaderSCK
A0A0Digital OutRFID ReaderRST
A1A1Software UART RXESP3213 (TX1)
A2A2Software UART TXESP3214 (RX1)
A3A3Analog In--
A4A4I2C SDAI2C lCDSDA
A5A5I2C SCLI2C LCDSCL
A6A6Analog InGreen LEDAnode
A7A7Analog InBlue LEDAnode

Code

The code for this circuit is distributed across multiple files, so will not be displayed here. It will be available for download for subscribers.