Abstract:Aiming to meet the demand for rapid and non-destructive assessment of crop nutrient status under field conditions, a handheld multiband crop nutrient detector was developed. The instrument employed seven characteristic wavelengths of 450 nm, 545 nm, 590 nm, 645 nm, 750 nm, 800 nm, and 1 050 nm, and adopted an active reflectance optical configuration with annular illumination and central detection. Interchangeable large- and small-aperture probes were provided to accommodate different leaf morphologies and measurement areas. The hardware system was built around an STM32F411 microcontroller and consisted of four functional boards: MAIN, LED, LCD, and KEY. The software system was based on the HAL library and the μC/OS Ⅱreal-time operating system, enabling light-source control, signal acquisition, reflectance calculation, model inference, result display, positioning, and data upload. Effective reflectance signals were extracted by using 8 kHz light-source modulation, 256 kHz synchronous sampling, and dual-phase digital lock-in processing. Standard reflectance panel calibration and in-field referencing were further employed to improve the accuracy and stability of reflectance measurements. Performance tests showed that the mean absolute errors for the 50% and 10% standard reflectance panels were 0.394 8 and 0.117 9 percentage points, respectively. For measurements of real leaves using two instruments, the correlation coefficients across the seven wavelengths ranged from 0.946 to 0.993, while the root mean square errors ( RMSE) ranged from 0.152 to 1.630 percentage points. Seven-band reflectance values and seven vegetation indices were subsequently used as candidate features. Through feature selection and five-fold cross-validation, prediction models were developed for leaf chlorophyll and total nitrogen contents in wheat and rice. The coefficients of determination (R2) for wheat and rice chlorophyll-content models were 0.821 and 0.859, with mean absolute percentage errors (MAPE) of 5.66% and 4.95% , respectively. The corresponding R2 values for wheat and rice total-nitrogen-content models were 0.639 and 0.691, with MAPE values of 6.07% and 9.32% , respectively. These results indicated that the developed instrument can provide satisfactory reflectance measurement accuracy, stability, and inter-instrument consistency. It can effectively estimate leaf chlorophyll content in wheat and rice, which showed potential for estimating leaf total nitrogen content, thereby providing technical support for the rapid field assessment of crop nutrient status.