Skip to Content

Nano Sensor and Controller Circuit

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
FunctionComponentPin
D00UART RX
(code upload)
DO NOT USE-
D11UART TX
(code upload)
DO NOT USE-
D22Digital GPIO In (Interrupt)LoRa SX1278-RA02DIO0
D33Digital GPIO In (Interrupt)PIR Motion SensorDigital Out
D44Digital GPIO InMQX Gas SensorDigital Out
D55Digital GPIO Out (PWM)RGB LED ModuleRed Cathode
D66Digital GPIO Out (PWM)RGB LED ModuleGreen Cathode
D77Digital GPIO In--
D88Digital GPIO OutBuzzerDigital In
D99Digital GPIO Out (PWM)RGB LED ModuleBlue Cathode
D1010SPI CSLoRa SX1278-RA02NSS
D1111SPI COPILoRa SX1278-RA02COPI
D1212SPI CIPOLoRa SX1278-RA02CIPO
D1313SPI SCKLoRa SX1278-RA02SCK
A0A0Digital GPIO OutLoRa SX1278-RA02RST
A1A1Digital GPIO OutUltrasonic Distance SensorEcho
A2A2Digital GPIO InUltrasonic Distance SensorTrigger
A3A3Digital InSoil Moisture SensorDigital Out
A4A4I2C SDAI2C LCDSDA
A5A5I2C SCLI2C LCDSCL
A6A6Analog InSoil Moisture SensorAnalog Out
A7A7Analog InMQX Gas SensorAnalog Out