Blame view

RIOT/tests/driver_feetech/README.md 827 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  # About
  
  This application is intended for testing Feetech TTL bus.
  It is especially designed to test Feetech SCS15 servomotors.
  
  # Usage
  
  To have the list of available commands :
  ```
  help
  ```
  
  You will need to initialize one UART at 1000000 baudrate (if the servomotor is in factory configuration) :
  ```
  init 1 1000000
  ```
  
  To ping the servomotor :
  ```
  ping 1
  ```
  
  Be careful ! If 2 servomotors with the same ID are connected on the same bus, you will have no response.
  Factory configuration ID is 1, you need to change this to connect an other servo.
  
  To scan every connected servomotors (IDs from 0 to 253) :
  ```
  scan
  ```
  
  To read a servo register :
  ```
  read 1 PRESENT_POSITION
  ```
  
  To move a servo, you need to enable the torque and set the goal position [0-1024] :
  ```
  write 1 ENABLE_TORQUE 1
  write 1 GOAL_POSITION 512
  ```