Let's control KeiganMotor by Windows PC using open source software "Tera Term".

Please update KeiganMotor firmware to the latest.
KeiganMotor KM-1 Firmware

You can download Tera Term from the following site.

Tera Term Home Page

 

Tera Term Environment Settings

At first, you config serial port settings with Tera Term.

Please select the USB port connecting to KeiganMotor, and set baudrate to 115200 and set flow control to "hardware".

 

 

Demo using macro

When sending bytes with Tera Term, it is hard by manual input. Here we use macro function of Tera Term. You can read and execute any macro from menus [Control] > [Macro].

Please download the following sample and make sure that KeiganMotor moves.

Download km-1_teraterm_demo_1

Set the speed to 1 radian/second, then run forward for 10 seconds, and run reverse for 10 seconds and stop.

The contents of macro is as follows.

; KeiganMotor KM-1 Teraterm Macro Demo
; Set the speed to 1 radian/second, then run forward for 10 seconds, and run reverse for 10 seconds and stop.
send $51$00$00$00$00 ;enable()
send $58$00$01$3F$80$00$00$00$00 ;speed(1) //[rad/sec]
send $60$00$02$00$00 ;runForward()
send $92$00$03$00$00$27$10$00$00 ;wait(10000) //[msec]
send $61$00$04$00$00 ;runReverse()
send $92$00$05$00$00$27$10$00$00 ;wait(10000) //[msec]
send $6D$00$06$00$00 ;stop()

 

Display HEX with Tera Term

KeiganMotor echos received bytes array.
This function may be deprecated and change to more readable logging function in the future .

Tera Term can display hexadecimal after the following configuration. 

You edit TERATERM.INI in the Tera Term installed directory. In most cases, it will be in C:\Program Files (x86)\teraterm.

Before

; Display all characters (debug mode)
Debug=off
; Debug mode type which can be selected by user.
; on|all = All types
; off|none = Disabled debug mode
; normal = usual teraterm debug mode
; hex = hex output
; noout = disable output completely
DebugModes=all

After

; Display all characters (debug mode)
Debug=on
; Debug mode type which can be selected by user.
; on|all = All types
; off|none = Disabled debug mode
; normal = usual teraterm debug mode
; hex = hex output
; noout = disable output completely
DebugModes=hex

Next, you restart Tera Term and press Shift key and Escape key at the same time and turn on hexadecimal display.

By this configuration, you can see hexadecimal returned by KeiganMotor on Tera Term.

When you execute the above macro  demo_1, the log will be as follows.