Skip to main content

Interface Board

The interface board uses an independent MCU (STM32G0B0RET6) to manage external IO, power, and peripheral control. It communicates with the core processing board via UART0.

Interface Overview​

External Interfaces β€” Exposed on the device enclosure for user access:

#FunctionDescriptionCategory
1Alarm I/OAlarm input/outputProduct
2RS-485Serial communication busProduct

On-Board Resources β€” Implemented features:

#FunctionChip/ModuleDescriptionCategory
3IR-CUT DriverIR-CUT deviceDay/night filter switchingInternal
4Light Sensor DetectionPhotoresistorADC ambient light samplingInternal
5IR Light Board DriverExternal light boardNear/Far-IR LED PWMInternal
6LENS DriverAN41908A-VBASPI lens driverInternal
7System LEDβ€”Blue status LEDInternal
8Temperature SensorLMT87DCKADC temperature samplingInternal
9Bidirectional ResetSN74LVC1G14DCK + PD8SoC resets MCU (chip) / MCU resets Processor Board (PD8)Internal
10RTCSupercapacitorVBAT power-fail retentionInternal

Internal Reserved Resources β€” Reserved features, not yet enabled:

#FunctionChip/ModuleDescriptionCategory
11Radar Power Enableβ€”PB0 power controlInternal (Reserved)
12Dual-Light Board DriverExternal light boardWhite/Red LED PWMInternal (Reserved)
13Fan Driverβ€”12V fan enableInternal (Reserved)
14Heaterβ€”12V heater enableInternal (Reserved)

Debug Interfaces β€” For development and debugging:

#FunctionDescriptionCategory
15ST-LINKSWD debug portDebug
16Debug UART1USART1Debug

External Interfaces​

Alarm I/O​

Alarm input/output on the device enclosure.

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

RS-485​

RS-485 serial communication on the device enclosure.

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

On-Board Resources​

IR-CUT​

IR-CUT day/night filter driver.

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

Light Sensor Detection​

Photoresistor ADC sampling for ambient light threshold detection, driving automatic day/night mode switching.

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

Light Board Drivers​

The interface board controls external light boards via PWM (independent physical modules connected via connectors).

IR Light Board (Near-IR/Far-IR):

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

LENS Driver (AN41908A-VBA)​

The MCU SPI1 interface controls the AF auto-zoom and autofocus lens module. The SoC-side SPI CS1 is also connected to the same chip (default control path), while the MCU side handles 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 (Master reset)
PD3PLS2 (Step control 2)
PD2PLS1 (Step control 1)
PD1VD_FZ (Vertical drive Focus/Zoom)
PD0LS_FZ (Limit switch Focus/Zoom)

System LED​

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

Temperature Sensor (LMT87DCK)​

PinFunction
PB2Temp_ADC (Temperature ADC sampling)

Main Board Reset​

MCU controls core processing board reset via PD8. Conversely, the SoC can also reset the MCU via H_GPIO_18 (SN74LVC1G14DCK) (see Core Board).

PinFunction
PD8POWER_RST (Core processing board reset control)

RTC​

MCU VBAT powered by external supercapacitor to maintain RTC operation, synchronized with core processing board system time.

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

Internal Reserved Resources​

Radar Power Enable​

MCU controls the radar module power switch.

PinFunction
PB0Radar_EN (Radar power enable)

Dual-Light Board Driver​

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

Fan Driver​

PinFunctionNote
PB9FAN_EN (Fan enable)12V

Heater​

PinFunctionNote
PA15HEAT_EN (Heater enable)12V

Debug Interfaces​

MCU SWD debug port for firmware flashing and online debugging.

PinFunction
PA14SWDCLK / BOOT0
PA13SWDIO

UART1 (Debug Serial Port)​

PinFunction
PA10USART1_RX (Receive)
PA9USART1_TX (Transmit)