摘要
系统将STM32系列芯片和OpenMV作为处理器采集图像信息,并获取小球在平板上的位置坐标,通过串口传输数据给主控制器完成小球的位置信息采集。主控制器根据串口数据将坐标信息融合PID算法转换为PWM信号,控制执行机构执行相应的动作,并通过上位机来调节参数,实现了预期的效果。
In the system,STM32 series chips and openmv are used as processors to collect image information,obtain the position coordinates of the ball on the flat plate,and transmit data to the main controller through the serial port to complete the position information collection of the ball.According to the serial port data,the main controller converts the PID algorithm of coordinate information fusion into PWM signal,controls the actuator to perform the corresponding action,and adjusts the parameters through the upper computer,achieving the expected effect.
作者
许彪
焦禹淦
Xu Biao;Jiao Yugan(Zhengzhou Institute of Technology,Xinzheng Henan 451150,China)
出处
《信息与电脑》
2020年第5期75-77,共3页
Information & Computer