KR100306438B1 - Robot test method for robot football game - Google Patents

Robot test method for robot football game Download PDF

Info

Publication number
KR100306438B1
KR100306438B1 KR1019990047712A KR19990047712A KR100306438B1 KR 100306438 B1 KR100306438 B1 KR 100306438B1 KR 1019990047712 A KR1019990047712 A KR 1019990047712A KR 19990047712 A KR19990047712 A KR 19990047712A KR 100306438 B1 KR100306438 B1 KR 100306438B1
Authority
KR
South Korea
Prior art keywords
robot
test
setting
speed
test method
Prior art date
Application number
KR1019990047712A
Other languages
Korean (ko)
Other versions
KR20010039351A (en
Inventor
김종환
박귀홍
Original Assignee
윤덕용
한국과학기술원
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 윤덕용, 한국과학기술원 filed Critical 윤덕용
Priority to KR1019990047712A priority Critical patent/KR100306438B1/en
Publication of KR20010039351A publication Critical patent/KR20010039351A/en
Application granted granted Critical
Publication of KR100306438B1 publication Critical patent/KR100306438B1/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/008Subject matter not provided for in other groups of this subclass by doing functionality tests
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B11/00Automatic controllers
    • G05B11/01Automatic controllers electric

Landscapes

  • Manipulator (AREA)

Abstract

본 발명은 로봇의 테스트 방법에 관한 것으로서, 컴퓨터를 이용하여 로봇의 이상유무를 테스트하는 로봇 테스트 방법에 있어서, 초기에 테스트 프로그램을 실행시키는 과정과; 사용자의 키입력에 따라 컴퓨터의 시리얼 포트 및 통신속도를 설정하는 과정과; 사용자에 의해 로봇의 팀이 선택되면 이를 설정하는 과정과; 모니터의 메뉴상에서 로봇의 속도가 선택되면 이를 자동설정하는 과정과; 설정된 설정정보를 PWM 신호로 만들어 로봇에 전송하는 과정과; 전송된 PWM 신호를 받고서 이에 따라 로봇의 모터를 구동시키는 과정과; PWM 제어신호에 따라 작동되는 로봇의 동작을 관찰하는 과정과; PWM 제어신호에 따라 로봇이 정상적으로 작동되는지 판단하는 과정과; 로봇이 정상적으로 작동되면 다시 테스트 프로그램의 종료여부를 묻는 과정과; 테스트 프로그램의 종료신호가 입력되면 테스트 프로그램을 종료시키는 과정을 수행함으로써 사용자가 간편하게 로봇의 작동상의 이상유무를 확인할 수 있다.The present invention relates to a test method of a robot, the robot test method for testing the presence or absence of a robot using a computer, comprising: initially executing a test program; Setting a serial port and a communication speed of the computer according to a user's key input; Setting a team of robots by the user; Automatically setting the speed of the robot on the menu of the monitor when the speed is selected; Transmitting the set configuration information to a robot by making a PWM signal; Receiving the transmitted PWM signal and driving the motor of the robot accordingly; Observing the operation of the robot operated according to the PWM control signal; Determining whether the robot is normally operated according to the PWM control signal; If the robot is normally operated, asking whether the test program is to be terminated again; When the end signal of the test program is input, the process of terminating the test program is performed so that the user can easily check whether there is an abnormal operation of the robot.

Description

로봇 테스트 방법{Robot test method for robot football game}Robot test method for robot football game}

본 발명은 로봇 테스트 방법에 관한 것으로서, 특히 컴퓨터에 의해 테스트 프로그램이 실행된 상태에서 사용자가 시리얼 포트, 로봇의 팀 및 로봇의 속도를 설정하면 설정에 따른 각 PWM 제어신호가 로봇에 보내지고 이에 따라 로봇이 테스트 구동됨으로써 로봇의 작동상의 이상유무를 확인할 수 있도록 한 것이다.The present invention relates to a robot test method, and in particular, when a user sets a serial port, a team of a robot, and a speed of a robot while a test program is executed by a computer, each PWM control signal according to the setting is sent to the robot and accordingly The test drive of the robot allows the robot to check for abnormalities in its operation.

최근에 와서 로봇을 원격 제어하여 축구게임을 할 수 있는 축구로봇 시스템들이 개발되고 있는데, 기존의 대부분의 축구 로봇들은 구동에 사용되는 모터로 엔코더를 갖고 있는 모터를 사용하였다. 즉, 로봇내의 마이크로 컨트롤러 또는 DSPRecently, soccer robot systems have been developed that can play a soccer game by remotely controlling the robot. Most of the existing soccer robots use a motor having an encoder as a motor used for driving. Ie microcontroller or DSP in a robot

보드에서 모터의 엔코더 값들을 읽어서 모터를 제어하는데 이용하였다.The encoder values of the motor were read from the board and used to control the motor.

축구로봇 시스템에서는 비전 정보를 이용하여 로봇의 위치나 각도를 알 수 있는데 이를 이용하여 호스트 컴퓨터에서는 로봇제어 프로그램에서 전송할 데이터를 계산한다. 이 데이터를 무선통신으로 로봇에게 전달하면 로봇은 호스트 컴퓨터에서 보내준 데이터를 받아서 모터를 제어한다. 모터에 엔코더가 있기 때문에 로봇내에 제어를 위한 폐루프가 형성되며 엔코더 신호를 피드백 신호로 사용한다.In the soccer robot system, vision information can be used to know the position or angle of the robot, and the host computer calculates the data to be transmitted from the robot control program. When this data is transmitted to the robot by wireless communication, the robot receives the data sent from the host computer and controls the motor. Since the motor has an encoder, a closed loop for control is formed in the robot and the encoder signal is used as the feedback signal.

비전정보와 로봇내의 모터에서 나오는 엔코더 신호를 사용하기 때문에 로봇을 좀 더 정확하게 제어할 수 있었다.By using vision information and encoder signals from the motors in the robots, the robots could be controlled more accurately.

그러나, 이러한 엔코더가 있는 모터는 대부분 고가이고 외국산이기 때문에 단가가 높아지는 문제점이 있어 현재에는 엔코더 없이 비전정보만을 이용하여 로봇을 제어하는 축구로봇 시스템이 개발되고 있다.However, since most of the motors with encoders are expensive and foreign-produced, there is a problem that the unit price increases. Currently, a football robot system for controlling a robot using only vision information without an encoder has been developed.

그러나, 종래에는 상기와 같은 축구로봇 시스템을 완성시켰을 때 로봇의 동작이 제대로 잘 되는지 등의 이상유무를 체크할 수 있는 소프트웨어적인 테스트 방법이 개발되지 않아 사용자가 번거롭게 문제 발생시마다 하드웨어적인 점검을 해야되는 불편함이 있었다.However, in the related art, when the above-described soccer robot system is completed, a software test method for checking whether the robot works properly is not developed. Therefore, the user should check the hardware whenever trouble occurs. There was discomfort.

본 발명은 상기와 같은 문제점을 해결하기 위하여, 컴퓨터에 의해 테스트 프로그램이 실행된 상태에서 사용자가 시리얼 포트, 로봇의 팀 및 로봇의 속도를 설정하면 설정에 따른 각 PWM 제어신호가 로봇에 보내지고 이에 따라 로봇이 테스트 구동됨으로써 로봇의 작동상의 이상유무를 확인할 수 있도록 한 로봇 테스트 방법을 제공하는데 그 목적이 있다.In order to solve the above problems, when the user sets the serial port, the team of the robot and the speed of the robot in the state where the test program is executed by the computer, each PWM control signal according to the setting is sent to the robot. Accordingly, the object of the present invention is to provide a robot test method that enables the robot to test drive and check the robot for abnormal operation.

본 발명의 목적을 달성하기 위한 기술사상으로서, 컴퓨터를 이용하여 로봇의 동작상태를 테스트하는 로봇 테스트 방법에 있어서,As a technical idea for achieving the object of the present invention, in the robot test method for testing the operating state of the robot using a computer,

로봇의 이상유무 확인을 위해 초기에 테스트 프로그램을 실행시키는 과정과;컴퓨터의 시리얼 포트 및 통신속도를 설정하는 과정과; 로봇의 팀이 선택되면 이를 설정하는 과정과; 메뉴상에서 로봇의 속도가 선택되면 이를 자동설정하는 과정과;설정된 설정정보를 소정 신호형태로 만들어 로봇에 전송하는 과정과; 전송된 제어정보에 따라 작동되는 로봇의 동작을 관찰하는 과정과; 제어정보에 따라 로봇이 정상적으로 작동되는지 판단하는 과정과; 로봇이 정상적으로 작동되면 다시 테스트 프로그램의 종료여부를 묻는 과정과; 테스트 프로그램의 종료신호가 입력되면 테스트 프로그램을 종료시키는 과정을 포함하는 발명이 제시된다.Running a test program initially to check whether there is an abnormality of the robot; setting a serial port and a communication speed of the computer; Setting a team of robots when they are selected; Automatically setting a speed of the robot on a menu; transmitting the robot to a robot by setting the predetermined setting information in a predetermined signal form; Observing the operation of the robot operated according to the transmitted control information; Determining whether the robot is normally operated according to the control information; If the robot is normally operated, asking whether the test program is to be terminated again; When the end signal of the test program is input, an invention including a process of terminating the test program is presented.

도 1은 본 발명에 의해 로봇의 팀과 ID 설정을 한 예를 나타낸 참고도이다.1 is a reference diagram showing an example of setting the ID and the team of the robot according to the present invention.

도 2는 본 발명에 의해 로봇의 ID 설정을 한 예를 나타낸 표이다.2 is a table showing an example of setting the ID of the robot according to the present invention.

도 3은 팀 A의 경우에 딥 스위치 설정을 나타낸 참고도이다.3 is a reference diagram illustrating a dip switch setting in the case of team A.

도 4는 팀 B의 경우에 딥 스위치 설정을 나타낸 참고도이다.4 is a reference diagram illustrating a dip switch setting in the case of Team B.

도 5는 시리얼 케이블을 이용하여 로봇을 테스트하는 경우를 나타낸 참고도이다.5 is a reference diagram illustrating a case of testing a robot using a serial cable.

도 6은 로봇의 점퍼 설정을 나타내는 참고도이다.6 is a reference diagram illustrating jumper settings of a robot.

도 7은 로봇 테스트 프로그램의 일 화면을 나타낸 참고도이다.7 is a reference diagram illustrating a screen of a robot test program.

도 8은 적외선 모듈을 사용한 로봇 테스트의 일 예를 나타낸 참고도이다.8 is a reference diagram illustrating an example of a robot test using an infrared module.

도 9는 적외선 모듈을 사용한 로봇 테스트 프로그램의 한 화면을 나타낸 참고도이다.9 is a reference diagram showing a screen of a robot test program using an infrared module.

도 10은 본 발명에 의한 로봇 테스트 방법의 처리과정을 나타낸 흐름도이다.10 is a flowchart illustrating a process of the robot test method according to the present invention.

< 도면의 주요 부분에 대한 부호 설명 ><Explanation of Signs of Major Parts of Drawings>

1 : 딥 스위치 2 : 로봇 테스트 핀1: Dip Switch 2: Robot Test Pin

3 : 수신부3: receiver

이하에서는 본 발명의 실시예에 대한 구성 및 작용에 대해서 첨부된 도면을 참조하면서 상세히 설명하기로 한다.Hereinafter, with reference to the accompanying drawings for the configuration and operation of the embodiment of the present invention will be described in detail.

도 10에 도시된 바와같이, 컴퓨터를 이용하여 로봇의 동작상태를 테스트하는 로봇 테스트 방법에 있어서,As shown in Figure 10, in the robot test method for testing the operating state of the robot using a computer,

로봇의 이상유무 확인을 위해 초기에 테스트 프로그램을 실행시키는 과정(스텝100)과;A step of initially executing a test program for checking whether the robot is abnormal (step 100);

사용자의 키입력에 따라 컴퓨터의 시리얼 포트 및 통신속도를 설정하는 과정(스텝101)과;Setting a serial port and a communication speed of the computer according to a user's key input (step 101);

사용자에 의해 로봇의 팀이 선택되면 이를 설정하는 과정(스텝102)과;Setting a team of robots by the user (step 102);

모니터 메뉴상에서 로봇의 속도가 선택되면 이를 자동설정하는 과정(스텝103)과;Automatically setting the speed of the robot on the monitor menu (step 103);

설정된 설정정보를 PWM 신호로 만들어 로봇에 전송하는 과정(스텝104)과;Making the set setting information as a PWM signal and transmitting it to the robot (step 104);

전송된 PWM 신호를 받고서 이에 따라 로봇의 모터를 구동시키는 과정(스텝105)과;Receiving the transmitted PWM signal and driving the motor of the robot accordingly (step 105);

PWM 제어신호에 따라 작동되는 로봇의 동작을 관찰하는 과정(스텝106)과;Observing the operation of the robot operated according to the PWM control signal (step 106);

PWM 제어신호에 따라 로봇이 정상적으로 작동되는지 판단하는 과정(스텝107)과;Determining whether the robot is normally operated according to the PWM control signal (step 107);

로봇이 정상적으로 작동되면 다시 테스트 프로그램의 종료여부를 묻는과정(스텝108)과;If the robot is normally operated, asking whether the test program ends again (step 108);

테스트 프로그램의 종료신호가 입력되면 테스트 프로그램을 종료시키는 과정(스텝109)으로 이루어져 있다.When the end signal of the test program is input, the process of terminating the test program (step 109) is performed.

또한, 상기 로봇 테스트 방법은 컴퓨터에서 시리얼 케이블을 이용하여 로봇의 좌,우측 모터에 PWM 제어신호를 전송해주는 방법과, 컴퓨터에서 적외선 모듈을 이용하여 로봇의 좌,우측 모터에 PWM 제어신호를 전송해주는 방법이 있다.In addition, the robot test method is a method of transmitting a PWM control signal to the left and right motors of the robot using a serial cable from a computer, and a PWM control signal to the left and right motors of the robot using an infrared module from a computer. There is a way.

또한, 상기 로봇의 속도선택 메뉴는 알파벳 l, m, h, r, s로 이루어져 있으며, 사용자에 의해 키보드의 알파벳 l이 선택되면 정방향의 낮은 속도, 알파벳 m이 선택되면 정방향의 중간 속도, 알파벳 h이 선택되면 정방향의 최고 속도로 로봇의 모터가 작동된다.In addition, the speed selection menu of the robot consists of the letters l, m, h, r, s, the lower speed in the forward direction when the letter l of the keyboard is selected by the user, the middle speed in the forward direction, the letter h if the letter m is selected When selected, the robot's motor will run at full speed in the forward direction.

상기와 같은 구성을 갖는 본 발명의 처리과정을 설명하면 다음과 같다.Referring to the processing of the present invention having the configuration as described above is as follows.

축구 로봇이 동작하는지 테스트하기 위해서는 먼저, 로봇의 팀과 ID를 설정해야 한다. 도 1은 실제 로봇의 팀과 ID 설정한 예를 보여주며 그림의 앞쪽이 로봇의 앞쪽방향이 된다.To test if the soccer robot is working, first set up the team and ID of the robot. 1 shows an example of setting a real robot team and ID, and the front side of the figure is the front direction of the robot.

도 1의 왼쪽 위부분에는 4개의 딥(Dip) 스위치가 있는데, 상기 딥 스위치에서 번호 1은 로봇들의 팀을 선택하는데 사용되고, 번호 3 및 번호 4는 로봇의 ID를 설정할 때 사용된다. 그리고 번호 2는 세팅에 사용되지 않는다.In the upper left part of FIG. 1, there are four dip switches, in which a number 1 is used to select a team of robots, and a number 3 and a number 4 are used to set an ID of the robot. And number 2 is not used for the setting.

또한, 딥 스위치의 1번이 위쪽으로 향해 있으면 ON이 되며 접지와 연결이 되는데 이때가 팀 A를 나타내게 된다. 로봇의 ID는 도 2의 표와 같이 설정된다.Also, if No. 1 of the dip switch is upward, it is ON and connected to ground, which indicates team A. The ID of the robot is set as shown in the table of FIG.

팀 B의 경우도 도 2의 표와 같이 로봇의 ID를 설정한다. 단, 팀 B로 설정하기 위해서는 딥 스위치의 1번을 OFF(아래쪽)로 세팅한다. 팀 A와 팀 B의 경우, 딥 스위치의 설정에 대해 도 3 및 도 4에서 나타내었다.In the case of team B, the ID of the robot is set as shown in the table of FIG. However, to set team B, set number 1 of the dip switch to OFF (down). In the case of team A and team B, the setting of the dip switch is shown in FIGS. 3 and 4.

도 3 및 도 4와 같은 방법으로 로봇의 팀과 ID를 설정한 후 로봇을 테스트 하면 된다. 로봇을 테스트하는 방법에는 시리얼 케이블을 이용하는 방법과 적외선 통신을 이용하는 두가지 방법이 있는데 먼저, 시리얼 케이블을 이용하여 로봇을 테스트 하는 방법에 대해 살펴보면 다음과 같다.After setting the team and ID of the robot in the same manner as in FIGS. 3 and 4, the robot may be tested. There are two ways to test a robot, one using a serial cable and one using infrared communication. First, the method of testing the robot using a serial cable is as follows.

시리얼 케이블을 이용한 테스트를 위해서 로봇의 점퍼를 컴퓨터쪽으로 설정해야 하고 이를 도 5에서 나타내었다.For the test using the serial cable, the jumper of the robot must be set to the computer side, which is shown in FIG. 5.

제공된 CD에서 압축된 파일을 풀면 Robot-test 디렉토리에 Oly-test라는 프로그램이 있다. 이는 컴퓨터에서 시리얼 케이블(Serial cable)을 이용하여 로봇의 좌,우측 모터에 PWM 제어신호를 전송해주는 테스트 프로그램이다.If you unzip the file from the provided CD, there is a program called Oly-test in the Robot-test directory. This is a test program that transmits PWM control signals from the computer to the left and right motors of the robot using a serial cable.

상기 테스트 프로그램이 실행되면(스텝100), 도 7과 같은 화면이 컴퓨터 모니터에 뜬다. 또한, 시리얼 케이블을 이용하여 로봇을 테스트하려면 로봇의 점퍼(Jumper)를 도 6처럼 설정해야 한다.When the test program is executed (step 100), the screen shown in Fig. 7 is displayed on the computer monitor. In addition, to test the robot using a serial cable, the jumper (Jumper) of the robot must be set as shown in FIG. 6.

여기서 점퍼는 2가지 중에서 하나를 선택할 때 사용하는 부품이며, 수놈은 3핀이고 암놈은 2핀이다. 수놈은 로봇의 기판에 고정되어있고 2핀인 암놈을 가지고서 시리얼 케이블을 사용하여 로봇을 테스트할 것인지, 적외선 통신을 이용하여 로봇을 테스트할 것인지 선택하게 된다. 로봇의 앞쪽은 딥 스위치가 있는 부분이며 시리얼 케이블이 연결된 쪽이 로봇의 뒤쪽이다.The jumper is a part used to select one of two types, male is 3 pin and female is 2 pin. The male chooses whether to test the robot using a serial cable or an infrared communication with a two-pin female fixed to the robot's board. The front of the robot is where the dip switch is located, and the back of the robot is where the serial cable is connected.

또한, 오른쪽 위쪽에는 2개의 점퍼가 있는데, 점퍼 1(JP 1)은 로봇이 무선으로 데이터를 받는 경우 인버터(Inverter)를 거칠지 안 거칠지를 설정하는 것이고 점퍼 2는 로봇이 데이터를 무선으로 받는지 유선으로 받는지를 설정하는 것이다.In addition, there are two jumpers in the upper right corner. Jumper 1 (JP 1) sets whether the robot receives the data wirelessly or not. The jumper 2 sets whether the robot receives the data wirelessly. Is to set the destination.

RF 모듈을 사용하는 경우 이외에는 점퍼 1은 인버터를 사용하지 않는 것으로 설정한다. 이에 대한 것을 도 6에서 나타내었다.Except when using an RF module, jumper 1 is set not to use an inverter. This is illustrated in FIG. 6.

프로그램을 실행하면 사용자는 모니터상에 뜬 화면을 보면서 키보드 또는 마우스 등을 이용해 다음과 같이 설정조작을 해야한다.When you run the program, the user should see the screen displayed on the monitor and use the keyboard or mouse to perform the following settings.

첫째로 컴퓨터의 시리얼 포트중에서 로봇 테스트를 위해 1번을 사용할 것인가, 2번을 사용할 것인가를 물어보는 화면이 디스플레이되고. 계속해서 로봇이 어느 팀으로 설정되는지를 묻는 화면이 디스플레이된다.First, a screen will be displayed asking if you want to use 1 or 2 to test the robot from the computer's serial port. A screen is then displayed asking which team the robot is set to.

이때, 로봇의 ID와는 상관없이 모든 로봇들에게 같은 PWM 신호를 보내므로 로봇의 ID를 신경쓰지 않아도 된다.At this time, the same PWM signal is sent to all robots regardless of the ID of the robot, so the ID of the robot does not have to be worried about.

테스트 프로그램의 처리중 컴퓨터의 시리얼 포트에서 어떤 포트를 사용할 것인지를 물어보았을 경우에. 여기서는 로봇 테스트를 하기 위해 시리얼 케이블을 연결한 직렬(Serial) 포트의 번호를 넣는다.When the test program asks which port to use on the computer's serial port. For the robot test, enter the serial port number to which the serial cable is connected.

도 7에서는 사용자는 COM 1을 선택하였다. 이때 전송속도(Braud rate)는 자동적으로 19200으로 설정하게끔 프로그램되어 있다.In FIG. 7, the user selects COM 1. The baud rate is programmed to automatically set to 19200.

그 다음으로 사용자는 테스트 로봇의 팀을 선택하게 된다.The user then selects a team of test robots.

이때, 사용자는 로봇의 딥 스위치가 팀 A인 경우에는 소문자 a를, 팀 B인 경우에는 소문자 b를 입력하면 된다.In this case, the user may enter a lowercase a when the dip switch of the robot is team A, and a lowercase b when the team B is a team.

여기까지가 로봇 테스트 프로그램을 사용하기 위해서 초기화 하는 부분이고그 다음부터가 실제 로봇을 테스트하는 부분이다.This is the part to initialize to use the robot test program and the next part to test the actual robot.

여기서, 사용자는 모니터상의 로봇속도 선택 메뉴를 보면서 키보드를 조작하여 로봇의 속도선택을 하면 된다. 이때, 사용자가 키보드 l을 누르면 낮은 속도(순방향)를, 키보드 h를 누르면 최고속도에 해당되는 PWM값을 로봇에 전달하게 된다. 그리고 키보드 n을 누르면 역방향으로 최고속도에 해당하는 PWM 값을 로봇에 전달하게 된다(스텝104).Here, the user can select the speed of the robot by operating the keyboard while looking at the robot speed selection menu on the monitor. At this time, when the user presses the keyboard l, the robot transmits the low speed (forward) and the PWM value corresponding to the highest speed when the keyboard h is pressed. When the keyboard n is pressed, the PWM value corresponding to the maximum speed in the reverse direction is transmitted to the robot (step 104).

또한, 키보드 r은 오른쪽, 왼쪽 바퀴의 PWM값을 사용자가 입력할 수 있게 해준다. 이때, 입력하는 값의 범위는 십진수 0에서 255까지이다.In addition, the keyboard r allows the user to enter the PWM values for the right and left wheels. At this time, the value range is 0 to 255 decimal.

사구간(Deadzone)영역을 생각하면 127 값 근처에서는 로봇의 바퀴가 움직이지 않을 것이다. 알파벳 s는 로봇의 오른쪽 및 왼쪽 모터에 127의 값을 전달하므로 로봇이 움직이지 않는다.Considering the deadzone, the robot's wheels will not move around the 127 value. The letter s transmits a value of 127 to the right and left motors of the robot, so the robot does not move.

한편, 로봇이 컴퓨터로부터 사용자의 설정에 의한 PWM값을 받게 되면 그 값에 따라 모터를 구동시키게 된다(스텝105).On the other hand, when the robot receives a PWM value set by the user from the computer, the robot drives the motor according to the value (step 105).

또 계속해서 컴퓨터는 로봇의 동작을 아래와 같이 관찰하게 된다(스텝106).Subsequently, the computer observes the operation of the robot as follows (step 106).

즉, 사용자는 로봇 테스트 프로그램에서 키보드의 알파벳 h를 눌렸는데 두 모터가 모두 회전하지 않으면 로봇의 전원이 온(ON) 되었는지를 조사하고 그리고 시리얼 케이블이 제대로 연결되었는지를 확인한다.In other words, if the user presses the letter h on the keyboard in the robot test program and both motors do not rotate, check whether the robot is powered on and verify that the serial cable is properly connected.

그래도 동작을 안하면 컴퓨터의 시리얼포트가 동작하는지 조사한다.If that doesn't work, check whether your computer's serial port is working.

만일 양쪽 중에서 한쪽 모터만 회전하지 않으면 모터에 이상이 있는지를 조사한다. 로봇의 전원을 끄고 손으로 움직이는 않는 바퀴를 회전시켜본다. 한쪽 모터가 움직이지 않는다면 그 모터의 기어부분을 잘 살피고 먼지 등을 제거한 후 다시 시도해본다. 그래도 안되면 모터 케이블을 분리한 후 모터에 직접 전원을 연결하여 모터의 이상유무를 확인한다.If only one of the two motors does not rotate, check whether the motor is abnormal. Turn off the robot and try to rotate the wheel that does not move by hand. If one motor does not move, check the gear part of the motor, remove the dust and try again. If that doesn't work, disconnect the motor cable and connect the power directly to the motor to check for motor failure.

키보드의 알파벳 h을 눌렀는데 바퀴가 빨리 돌지 않으면 로봇에 연결한 밧데리의 상태가 안 좋은 것이므로 새로 충전한 밧데리를 이용한다.If you press the letter h on the keyboard and the wheel does not spin quickly, the battery connected to the robot is in bad condition, so use the newly charged battery.

위와 같이 점검을 했는데도 로봇이 동작을 안하면 로봇의 팀과 ID 세팅, 그리고 통신쪽 세팅을 살핀다.If the robot doesn't work after checking as above, the robot's team, ID setting, and communication setting are checked.

상기와 같은 계속해서 로봇이 정상적인 동작을 했는지 여부를 확인한 후(스텝107), 체크가 모두 끝나면 프로그램 종료여부를 묻게 되는데(스텝108) 이때, 사용자가 키보드의 알파벳 x를 누르면 이 테스트 프로그램이 종료하게 된다(스텝109)After checking whether the robot has been operated normally (step 107), when the check is completed, the program is queried (step 108). If the user presses the letter x on the keyboard, the test program is terminated. (Step 109)

다음은 적외선(IR) 모듈을 사용하여 로봇의 이상유무를 테스트 하는 경우이다.The following is an example of testing the robot for abnormality using an infrared (IR) module.

적외선 모듈을 이용하여 로봇테스트를 하기 위해서는 도 8과 같이 로봇의 점퍼 2를 무선통신(RF) 방향으로 바꾸어야 한다. 이것에 대해서는 이미 도 5에서 자세히 설명한 바 있다.In order to test the robot using the infrared module, jumper 2 of the robot must be changed in the direction of radio communication (RF) as shown in FIG. 8. This has already been described in detail with reference to FIG. 5.

도 8 에 도시된 바와같이 이곳에도 4개의 점퍼가 있는데 이것들은 통신속도As shown in Figure 8, there are four jumpers here,

(Braud rate)를 설정할 때 사용된다.Used to set the (Braud rate).

실험 시스템에서는 보통 19200bps의 통신속도를 사용하므로 점퍼 3에 암놈의 점퍼가 있어야 한다. 나머지 1,2,4는 암놈의 점퍼를 연결하지 않는다.The experimental system usually uses a baud rate of 19200bps, so jumper 3 should have a female jumper. The remaining 1,2,4 do not connect female jumpers.

또한, 적외선 모듈에서 점퍼는 특정핀을 연결하는지의 유무를 결정하게 된다.In addition, the jumper in the infrared module determines whether or not to connect a specific pin.

제공된 CD에서 압축된 파일을 풀면 IR-test 디렉토리에서 test1라는 프로그램이 있다. 이 프로그램은 컴퓨터에서 적외선 모듈을 사용하여 로봇의 좌우측 모터에 PWM 제어신호를 전송해주는 테스트 프로그램이다.After unpacking the compressed file from the provided CD, there is a program called test1 in the IR-test directory. This program is a test program that transmits PWM control signals to the robot's left and right motors using an infrared module in a computer.

우선, 이 테스트 프로그램을 실행시키게 되면(스텝100) 도 9과 같은 화면이 뜨게 된다.First, when this test program is executed (step 100), a screen as shown in Fig. 9 appears.

즉, 모니터 화면상으로 사용자에게 컴퓨터의 시리얼 포트에서 어떤 포트를 사용할 것인지를 물어본다. 여기에 사용자는 로봇 테스트를 하기 위해 시리얼 케이블을 연결한 직렬포트의 번호를 넣으면 된다(스텝101).That is, the monitor screen asks the user which port to use on the computer's serial port. To do this, the user enters the serial port number to which the serial cable is connected (step 101).

도 8과 같이 사용자가 COM1을 선택하게 되면 이때, 전송속도(Braud rate)가 19200으로 자동설정되게 된다. 그 다음으로 사용자는 모니터 화면을 보면서 테스트 로봇의 팀을 선택한다. 즉, 사용자는 로봇의 딥 스위치가 팀 A인 경우에는 소문자 a를, 팀 B인 경우에는 소문자 b를 입력한다(스텝102).As shown in FIG. 8, when the user selects COM1, the baud rate is automatically set to 19200. Next, the user selects a team of test robots while looking at the monitor screen. That is, the user inputs a lowercase a when the dip switch of the robot is team A and a lowercase b when it is team B (step 102).

여기까지가 로봇 테스트 프로그램을 사용하기 위해서 초기화하는 부분이고 그 다음부터가 실제 로봇을 테스트하는 부분이 된다.This is the part to initialize to use the robot test program, and then the part to test the actual robot.

즉, 사용자의 키보드 입력에 따라 로봇의 속도가 설정되는데, 이때, 키보드 l은 낮은 속도(순방향)를, 키보드 m은 중간속도(순방향)를, 키보드 h는 최고속도에 해당되는 PWM 값을 로봇에게 전달하게 된다. 또 키보드 n은 역방향으로 최고속도에 해당하는 PWM 값을 전달하게 된다(스텝103,104).That is, the speed of the robot is set according to the user's keyboard input, where the keyboard l is the low speed (forward), the keyboard m is the middle speed (forward), and the keyboard h is the PWM value corresponding to the maximum speed. Will be delivered. In addition, the keyboard n transmits the PWM value corresponding to the maximum speed in the reverse direction (steps 103 and 104).

또, 키보드 r을 선택하면 로봇의 좌,우측 바퀴의 PWM 값을 사용자가 입력할수 있게 된다. 이때, 입력하는 값의 범위는 십진수 0에서 255까지이다.In addition, if the keyboard r is selected, the user can input the PWM value of the left and right wheels of the robot. At this time, the value range is 0 to 255 decimal.

또한 사구간(Deadzone) 영역을 생각하면 127 값 근처에서는 로봇의 바퀴가 움직이지 않을 것이다.Also, considering the dead zone, the robot's wheels will not move around the 127 value.

키보드 알파벳 s는 로봇의 좌우측 모터에 127의 값을 전달하므로 로봇이 움직이지 않는다. 이 테스트 프로그램을 종료하려면 알파벳 x를 누른다.The keyboard letter s transmits a value of 127 to the robot's left and right motors, so the robot does not move. To exit this test program, press the letter x.

이 테스트 프로그램은 시리얼 케이블을 이용하여 로봇을 테스트하는 프로그램과 실행방법이 동일하다.This test program is the same as the program to test the robot using the serial cable.

한편, 적외선 모듈을 이용하여 로봇을 테스트 할 때는 중계기가 사용되는데, 상기 중계기에는 89C51이라는 마이크로컨트롤러가 들어있어 컴퓨터에서 중계기로 데이터를 보낼 때 각 로봇의 PWM 데이터 뒤에 Oxaa를 넣어서 보내게 된다.Meanwhile, a repeater is used to test robots using an infrared module. The repeater includes a microcontroller called 89C51, which sends Oxaa after each robot's PWM data when sending data from the computer to the repeater.

사용자의 설정에 따라 PWM 제어정보가 로봇에 전달되어 로봇이 작동하게 되면 컴퓨터는 다시 로봇의 동작을 관찰하게 된다(스텝106).According to the user's setting, when the PWM control information is transmitted to the robot and the robot operates, the computer observes the robot's operation again (step 106).

즉, 적외선 모듈을 사용한 테스트에서 로봇이 동작을 안하는 경우에는 점퍼 2의 설정이 올바른지 조사한다. 이러한 조사는 도 6 및 도 8에서 처럼 로봇의 점퍼가 무선통신쪽으로 설정되었는지 확인하는 것을 말한다. 그리고 중계기의 전원이 들어왔는지를 중계기의 LED로 조사하고 중계기의 입력 전압이 9V 이상인지도 살핀다.In other words, if the robot does not operate in the test using the infrared module, check whether the jumper 2 is set correctly. This investigation refers to checking whether the jumper of the robot is set to the wireless communication side as shown in FIGS. 6 and 8. And it checks whether the repeater's power is turned on by the repeater's LED and checks whether the repeater's input voltage is 9V or more.

그밖에는 시리얼 케이블을 이용한 테스트에서 살펴본 방법대로 로봇을 조사하면 되고 이후의 과정은 시리얼 케이블을 이용한 로봇 테스트 처리과정과 동일한다.Otherwise, the robot can be examined as described in the test using a serial cable, and the following process is the same as the robot test process using a serial cable.

이상의 설명에서 알 수 있는 바와같이, 본 발명은 컴퓨터를 이용하여 로봇의 동작상태를 테스트하는 로봇 테스트 방법에 있어서,As can be seen from the above description, the present invention provides a robot test method for testing the operation state of a robot using a computer,

로봇의 이상유무 확인을 위해 초기에 테스트 프로그램을 실행시키는 과정(스텝100)과; 컴퓨터의 시리얼 포트 및 통신속도를 설정하는 과정(스텝101)과; 로봇의 팀이 선택되면 이를 설정하는 과정(스텝102)과; 메뉴상에서 로봇의 속도가 선택되면 이를 자동설정하는 과정(스텝103)과;A step of initially executing a test program for checking whether the robot is abnormal (step 100); Setting a serial port and a communication speed of the computer (step 101); Setting a team of robots (step 102); Automatically setting the speed of the robot on the menu (step 103);

상기 자동설정하는 과정의 설정정보를 PWM 신호로 만들어 로봇에 전송하는 과정(스텝104)과; 전송된 PWM 신호를 받고서 이에 따라 로봇의 모터를 구동시키는 과정(스텝105)과; PWM 제어신호에 따라 작동되는 로봇의 동작을 관찰하는 과정(스텝106)과; PWM 제어신호에 따라 로봇이 정상적으로 작동되는지 판단하는 과정(스텝107)과; 로봇이 정상적으로 작동되면 다시 테스트 프로그램의 종료여부를 묻는 과정(스텝108)과; 테스트 프로그램의 종료신호가 입력되면 테스트 프로그램을 종료시키는 과정(스텝109)을 수행함으로써 사용자가 간편하게 로봇의 작동상의 이상유무를 확인할 수 있다.Converting the setting information of the automatic setting process into a PWM signal and transmitting the same to the robot (step 104); Receiving the transmitted PWM signal and driving the motor of the robot accordingly (step 105); Observing the operation of the robot operated according to the PWM control signal (step 106); Determining whether the robot is normally operated according to the PWM control signal (step 107); If the robot is normally operated, asking whether the test program ends again (step 108); When the end signal of the test program is input, the process of terminating the test program (step 109) is performed so that the user can easily check whether there is an abnormal operation of the robot.

Claims (4)

컴퓨터를 이용하여 로봇의 이상유무 확인을 테스트하는 로봇 테스트 방법에 있어서,In the robot test method for testing the confirmation of the abnormality of the robot using a computer, 초기에 테스트 프로그램을 실행시키는 과정과;Initially executing a test program; 사용자의 키 입력에 따라 컴퓨터의 시리얼 포트 및 통신속도를 설정하는 과정과;Setting a serial port and a communication speed of the computer according to a user's key input; 사용자에 의해 로봇의 팀이 선택되면 이를 설정하는 과정과;Setting a team of robots by the user; 모니터 메뉴상에서 로봇의 속도가 선택되면 이를 자동설정하는 과정과;Automatically setting the speed of the robot on the monitor menu when the speed is selected; 설정된 설정정보를 소정 신호형태로 만들어 로봇에 전송하는 과정과;Transmitting the set setting information in a predetermined signal form to a robot; 전송된 제어정보에 따라 작동되는 로봇의 동작을 관찰하는 과정과;Observing the operation of the robot operated according to the transmitted control information; 제어정보에 따라 로봇이 정상적으로 작동되는지 판단하는 과정과;Determining whether the robot is normally operated according to the control information; 로봇이 정상적으로 작동되면 다시 테스트 프로그램의 종료여부를 묻는 과정과;If the robot is normally operated, asking whether the test program is to be terminated again; 테스트 프로그램의 종료신호가 입력되면 테스트 프로그램을 종료시키는 과정을 포함하는 것을 특징으로 하는 로봇 테스트 방법.And a step of terminating the test program when an end signal of the test program is input. 청구항 1에 있어서, 상기 로봇 테스트 방법은 컴퓨터에서 시리얼 케이블을 이용하여 로봇의 좌우측 모터에 PWM 제어신호를 전송해주는 것을 특징으로 하는 로봇 테스트 방법.The robot test method of claim 1, wherein the robot test method transmits a PWM control signal to left and right motors of the robot using a serial cable from a computer. 청구항 1에 있어서, 상기 로봇 테스트 방법은 컴퓨터에서 적외선 모듈을 이용하여 로봇의 좌우측 모터에 PWM 제어신호를 전송해주는 것을 특징으로 하는 로봇 테스트 방법.The robot test method of claim 1, wherein the robot test method transmits a PWM control signal to left and right motors of the robot using an infrared module in a computer. 청구항 1에 있어서, 상기 로봇의 속도선택 메뉴는 알파벳 l, m, h, r, s로 이루어져 있으며, 사용자에 의해 키보드의 알파벳 l이 선택되면 정방향의 낮은 속도, 알파벳 m이 선택되면 정방향의 중간 속도, 알파벳 h이 선택되면 정방향의 최고 속도로 로봇의 모터가 작동되는 것을 특징으로 하는 로봇 테스트 방법The method of claim 1, wherein the speed selection menu of the robot consists of alphabets l, m, h, r, and s. , If the letter h is selected, the robot test method characterized in that the motor of the robot operates at the maximum speed in the forward direction
KR1019990047712A 1999-10-30 1999-10-30 Robot test method for robot football game KR100306438B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990047712A KR100306438B1 (en) 1999-10-30 1999-10-30 Robot test method for robot football game

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990047712A KR100306438B1 (en) 1999-10-30 1999-10-30 Robot test method for robot football game

Publications (2)

Publication Number Publication Date
KR20010039351A KR20010039351A (en) 2001-05-15
KR100306438B1 true KR100306438B1 (en) 2001-10-29

Family

ID=19617811

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990047712A KR100306438B1 (en) 1999-10-30 1999-10-30 Robot test method for robot football game

Country Status (1)

Country Link
KR (1) KR100306438B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7050937B2 (en) 2003-07-18 2006-05-23 Samsung Electronics Co., Ltd. Performance measurement system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108613823B (en) * 2018-07-13 2024-04-09 苏州劲翔电子科技有限公司 Testing device for automatically planning mower
KR102457268B1 (en) 2021-06-03 2022-10-20 주식회사 피치랩 Safety impactk apparatus for robot

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5051676A (en) * 1988-10-08 1991-09-24 Fanuc Ltd. Robot program checking method
JPH05173623A (en) * 1991-12-25 1993-07-13 Honda Motor Co Ltd Check program generation system of robot controller
JPH08137531A (en) * 1994-11-14 1996-05-31 Nippon Telegr & Teleph Corp <Ntt> Device and method for testing operating of robot control software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5051676A (en) * 1988-10-08 1991-09-24 Fanuc Ltd. Robot program checking method
JPH05173623A (en) * 1991-12-25 1993-07-13 Honda Motor Co Ltd Check program generation system of robot controller
JPH08137531A (en) * 1994-11-14 1996-05-31 Nippon Telegr & Teleph Corp <Ntt> Device and method for testing operating of robot control software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7050937B2 (en) 2003-07-18 2006-05-23 Samsung Electronics Co., Ltd. Performance measurement system

Also Published As

Publication number Publication date
KR20010039351A (en) 2001-05-15

Similar Documents

Publication Publication Date Title
CN107053143B (en) Industrial robot demonstrator based on WEB control and use method
JP2006297589A (en) Control method of industrial robot, robot, system and computer program
JP7036800B2 (en) Methods for operating industrial control systems and corresponding control systems
CN101370421B (en) Electrically bendable endoscope
KR100306438B1 (en) Robot test method for robot football game
CN106405162A (en) Automatic rotation testing apparatus and test method thereof
CN109375941B (en) Novel master-slave flash boot loader software upgrading method applied to combination instrument
CN101663853A (en) Data transmission assembly
CN103852718A (en) Testing system and method for keyboard
JPH1173201A (en) Communication system
CN217821293U (en) EPS moment of torsion and rotor angle sensor centering frock
JPS58163004A (en) Programming device of plural sequencers
JP3221502B2 (en) Robot control method
CN107659517A (en) PoE switch and management system based on local management
US20080294821A1 (en) Series-Connected Control System
JPH05257515A (en) Radio manual operation panel and method for coupling between this panel and numerical controller
JPH06301615A (en) Method and device for monitoring field operation by multifunction type portable input/output device
JP4042234B2 (en) FA network and robot controller
US6614196B1 (en) Vehicle with running mechanism and lifting mechanism
CN217305730U (en) Distributed combined trigger keyboard device of universal integrated circuit test system
JPH0519841A (en) Instructing control panel connection device
JPH11288310A (en) Robot device
JP3110958B2 (en) Plant maintenance equipment
CN107208918B (en) Air conditioner
CN112947135B (en) Novel crawler crane control system

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20071203

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee