1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_feetech
Gerson Fernando Budke 4a9f0efb6d boards: introduce atmega328p-xplained-mini
Add ATmega328P Xplained Mini board.  The board is an official
development kit from MCHP based on the Arduino UNO, reduced
hardware, with a xplainedmini debugger and CDC ACM serial
converter.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
2021-03-27 14:10:19 -03:00
..
app.config.test tests/driver_{d,e,f}*: add Kconfig configuration files 2020-12-02 10:16:49 +01:00
main.c tests: make use of ARRAY_SIZE macro 2019-08-06 19:43:54 +02:00
Makefile tests, examples: remove chronos references 2020-08-05 14:32:58 +02:00
Makefile.ci boards: introduce atmega328p-xplained-mini 2021-03-27 14:10:19 -03:00
README.md tests/driver_feetech: initial support 2017-03-27 15:51:36 +02:00

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