摘要
板球走迷宫系统是一种建立在板球控制系统基础上,对图像处理进一步强化的控制系统,通过分析板球走迷宫系统对多特征图像处理的要求以及二维平面运动控制,设计了以树莓派为图像处理平台,以OpenCV+Linux+Python为软件基础,以STM32为平板控制芯片。上层系统(树莓派)以图像处理作为核心,依靠开源视觉库OpenCV实现板球走迷宫系统的多特征图像处理。下层系统(STM32)接收上层系统发送的串口数据,结合平板倾角,通过PID控制方法控制芯片输出PWM驱动数字舵机,从而实现板球在平板上的运动控制,以达到走迷宫的效果。软件算法方面,上层系统软件算法采用Python语言编程,实现图像处理、串口信息发送。下层系统采用C语言编程,实现串口数据解析、PID控制功能和系统参数调试及显示功能。
The cricket-walking maze system is a control system that is based on a cricket ball control system and further strengthens the image processing. In this paper, by analyzing the requirements of multi-characteristic image processing and the two-dimensional plane motion control of the cricket-walking maze system, the Raspberry Pi is used as the image processing platform, OpenCV +Linux +Python is used as the software foundation, and STM32 is the tablet control chip. The upper layer system(Raspberry Pi) uses image processing as its core, relying on open source vision library OpenCV to realize multi-feature image processing of the cricket-walking maze system. The lower layer system(STM32) receives the serial port data sent by the upper layer system and combines the tilt angle of the flat panel to control the chip output PWM to drive the digital servo via the PID control method so as to realize the movement control of the cricket ball on the flat panel to achieve the effect of walking the maze.In terms of software algorithms, the upper-level system software algorithm uses Python language programming to implement image processing and serial port information transmission. The lower system uses C language programming to implement serial data analysis, PID control functions, and system parameter debugging and display functions.
出处
《科学技术创新》
2018年第27期66-70,共5页
Scientific and Technological Innovation
基金
浙江省基础公益研究计划项目(LGF18F010008)