Skip to main content

AI-PC Board Interfaces

The AI-PC interface board manages all peripherals and communication interfaces through an independent MCU (STM32G0B0RET6), and communicates with the core processing board via UART0.

Interface Overview​

#FunctionDescription
1Alarm IN/OUTβ€”
2RS-485β€”
3Radar Power EnablePB0
4Wiegand Protocolβ€”
5IR-CUT DriverIR-cut device
6Light Sensor ADCThreshold
7Dual-Light LED Driverβ€”
8IR Board Driverβ€”
9LENS DriverSPI
10System Indicator LEDβ€”
11Temperature Sensorβ€”
12Fan Driverβ€”
13ST-LINKβ€”
14Debug UART1β€”
15Heaterβ€”
16Board Resetβ€”
17RTCβ€”

Alarm & Communication​

Alarm I/O​

PinFunctionNote
PB13Alarm_IN0External alarm input 0
PB14Alarm_IN1External alarm input 1
PA8Alarm_OUT0Alarm output 0 (level output)
PA9Alarm_OUT1Alarm output 1 (shared with USART1_TX)

RS-485​

PinFunction
PC4RS485_TXD3 (Transmit)
PC5RS485_RXD3 (Receive)
PB1RS485_EN (Transceiver enable)

Wiegand Protocol​

PinFunction
PC7Wiegand_1 (Data line 1)
PC6Wiegand_0 (Data line 0)

Radar Power Enable​

PinFunction
PB0Radar_EN (Radar power enable)

Imaging & Optics​

IR-CUT​

PinFunctionNote
PB8IR_CUT_EN (IR-CUT driver enable)Supports auto / day / night mode switching

Light Sensor​

PinFunctionNote
PA1PD_ADC (ADC1_IN1, photoresistor sampling)Ambient light threshold detection

Dual-Light LED Board​

PinFunction
PB4PWM_R (Red light PWM)
PB5PWM_W (White light PWM)
PB6R_CTL (Red light switch control)
PB7W_CTL (White light switch control)

IR Board Driver​

PinFunction
PC9PWM_Far (Far IR PWM)
PC8PWM_Near (Near IR PWM)

LENS Driver​

SPI interface for motorized zoom and autofocus lens control. The MCU-side LENS Driver works in conjunction with the core processing board side, with the MCU responsible for lens homing and limit protection.

PinFunction
PA5SPI1_CLK (SPI clock)
PA6SPI1_MISO (SPI master in slave out)
PA7SPI1_MOSI (SPI master out slave in)
PA4SPI1_CS (SPI chip select)
PB3LENSPOWER_EN (Lens power enable)
PD6F_RST (Focus reset)
PD5Z_RST (Zoom reset)
PD4RSTB (Global reset)
PD3PLS2 (Step control 2)
PD2PLS1 (Step control 1)
PD1VD_FZ (Vertical drive Focus/Zoom)
PD0LS_FZ (Limit switch Focus/Zoom)

System Management​

System Indicator LED​

PinFunctionNote
PD9SYS-LED (System status indicator)Blue, MCU direct control

Temperature Sensor (LMT87DCK)​

PinFunction
PB2Temp_ADC (Temperature ADC sampling)

Fan Driver​

PinFunctionNote
PB9FAN_EN (Fan enable)12V, shared with heater, auto-switching by temperature threshold

Heater​

PinFunctionNote
PB9Heater drive (shared enable pin with fan)12V, shared PB9 with fan

Debug & Control​

PinFunction
PA14SWDCLK / BOOT0
PA13SWDIO

UART1 (Debug Serial Port)​

PinFunction
PA10USART1_RX (Receive)
PA9USART1_TX (Transmit)

Board Reset​

PinFunction
PD8POWER_RST (Core processing board reset control)

RTC​

MCU VBAT is connected to a supercapacitor to maintain RTC operation and synchronizes system time to the core processing board.

FunctionDescription
RTC PowerVBAT with external supercapacitor
Time SyncMCU RTC synchronized to core processing board
Power-off RetentionSupercapacitor maintains RTC operation