摘要
本文以相扑机器人小车为研究对象,在BASICStampEditorV2.4.2软件开发平台上对BASICStamp2控制嚣进行PBASIC语言编程,通过改变脉冲信号对伺服电机进行控制,从而改变机器人运行速度、时间和方向,使机器人小车能够完成向前、向后和旋转等动作。利用声音传感器接收哨音频率完成小车的启动动作,并通过红外线传感器完成机器人追逐物体,以及黑色边界检测功能。最后实现了机器人能自动追逐对手并将其推出界外,同时保持自己留在界内的功能。
In this paper, by taking the sumo robot trolley as the study object, the BASIC Stamp 2 control module is programmed by using PBASIC language on the BASIC Stamp Editor V2.4.2 software development platform, by means of altering the pulse signals for controlling the servo motor, thus the running speed, time and direction of the robot are changed, so it makes the robot trolley to be able to complete the movements of forward, backward, rotary, and so on. The start action of the robot trolley is implemented by mak- ing use of the sound sensor for receiving the frequency of whistle, and the functions of robot object chasing as well as the black boundary detection are also completed by using the infrared sensors. Finally, the function that the robot can automatically chase the rivals and further push them over the foul line, meanwhile, keep itself inside the boundary is realized.
出处
《自动化信息》
2011年第8期40-42,共3页
Automation Information