摘要
以Arduino为主控芯片,以STM32和LDC1000电感数字传感器为小车循迹模块,设计与制作了一个可自动循迹的小车。整个小车系统分为采集、处理、控制三部分:首先,采用LDC1000采集铁丝轨迹信息并将其转化为数字信号传输给数据处理模块;然后,以STM32作为系统处理模块,根据设计的算法处理输入的数据后,再输出不同的值;最后采用Arduino主控芯片,根据STM32输入的值,即铁丝是否偏离轨道的值,控制电机转动,从而调整小车方向,确保小车在规定的平面跑道自动沿铁丝方向循迹前进。经测试,该小车能够对0.6-0.8mm细铁丝循迹前进,行进过程中能够检测到硬币并报警,同时可以在显示屏上实时显示其行驶距离和行驶时间。
In this design,Arduino is used as the main control chip,STM32 and LDC1000 inductor/digital converter is used as the tracking module of the trolley,and an automatic tracking trolley is designed and manufactured.The whole trolley system is divided into three parts:acquisition,processing and control.Firstly,the LDC1000 sensor is used to collect the information of the metal race track and convert it into digital signals for transmission to the data processing module.Then,taking STM32 as the system processing module,the input data is processed according to the pre-designed algorithm,and different values are output;Finally,Arduino master control chip is used to judge whether the trolley deviates from the track according to the metal distance signals detected and calculated,so as to control the direction adjustment of the trolley and make the trolley automatically track along the wire direction on the specified plane runway.Tests show the trolley can track 0.6-0.8mm thin iron wire,detect coins and give an alarm in the process of traveling,and display the traveling distance and running time of the trolley on the display screen in real time.
作者
杨潞霞
安琪霞
曹砚江
Yang Luxia;An Qixia;Cao Yanjiang(Department of Computer,Taiyuan Normal University,Jinzhong Shanxi,030619;Bussiness College of Shanxi University,Taiyuan Shanxi,030031)
出处
《电子测试》
2022年第1期19-22,共4页
Electronic Test
基金
山西省高等学校教学改革创新项目(J2018237)。