ROBOTIS-GIT / DynamixelShield

DynamixelShield Library for Arduino
Apache License 2.0
17 stars 10 forks source link

Sending Bytes through LN-101/Serial-USB Converter #23

Closed grndctrl2majtom closed 3 years ago

grndctrl2majtom commented 3 years ago

Do you have any examples on how to write a user defined angle to the dynamixel shield using the LN-101? I am having some issues with DEBUG_SERIAL.available, DEBUG_SERIAL.read functions.

ROBOTIS-Will commented 3 years ago

Hi @grndctrl2majtom There are some examples in the default library that use available() and read(). One of them is the factory_reset and you can refer from line 62. In order to receive multiple letters, you might want to use string type of variable and something like readString() to read multiple characters. You can convert the string variable to a float to use for the setGoalPosition() of DYNAMIXEL Shield API.

ROBOTIS-Will commented 3 years ago

This issue will be closed as there isn't recent activity. Please feel free to reopen when necessary.