User manual CC_SHBR12
Cc-Smart Technology Co., Ltd
ANALOG Joystick Mode Connection:
4. UART Command Feature:
This driver support ASCII UART command line. User can use UART interface to
communicate with the driver.
Any Smart Driver is addressed in the manufacture and work as Slave Mode in the
UART Network. A MCU can work as Mater mode and communicate to many slave (Smart
Driver)
UART Parameter
Baud Rate: 115200
Word Length: 8 Bit
Stop Bits: 1
Parity: None
UART Command:
Host Send Format:
Nx [?] [Dy] [Az] [C] [R1607] [Gj] [S] \n
Nx: x = address of driver (0 Broadcast)
?: Help Command, this will ignore other commands (x>0)
Dy: y = duty(-1000 =< y <=1000; y>0: dir=1; y<=0: dir =0)
Az: z= Acceleration(0 =< j <= 65000); z=0: No Ramming
C: Clear error
R1607:Reset MCU
K: Need send back the rx command.
S: Check sum of command S = [atoi(x)] + [atoi(y)] + [atoi(z)]
G: Get driver information (G1: One Time; G3 get to Ultil new data).
Example1: N0 ? \n (Request address of all exist driver in Uart Network)
Example2: N1 ? \n (Request Help from driver 1)
Example3: N1 D500 A200 G3 \n (Set driver velocity =50% and Get state).
Host Request Help from driver X:
Nx ? \n (x>0)
Note: With Dy command, The Period of two Frames < 5 second (to keep the bridge
running)
VRx
GND
VCC
JOYSTI
ADD: n+x
...., n+1
TX
RX
GND
ADD: n
MCU
Maste
r