Please teach me how to use ASCII code with arduino

Please teach me how to use ASCII code with arduino

For example, the odrive page has the following explanation, but I don’t know how to write it with an arduino sketch.
Please give me an example of a sketch when writing with arduino.

Motor Velocity

Format: v motor velocity torque_ff

  • v for velocity
  • motor is the motor number, 0 or 1.
  • velocity is the desired velocity in [turns/s].
  • torque_ff is the torque feed-forward term, in [Nm] (optional).

Example:

v 0 1 0

Hi there - you can see our ODriveArduino library as an example: https://github.com/odriverobotics/ODrive/tree/master/Arduino/ODriveArduino

1 Like