8.2 Communication via DVRT

Select the DVRT option in the Motor Control Library>Communication Support. Follow the instructions provided above the selection drop-down icon.

Add DV run-time from Device Resources>Libraries>Data Visualizer.

Select UART0 from Project Resources.

Update the requested baud rate to 460800.

Select PORTC pin connections for RXD and TXD.

Generate, clean build, program, and open DVRT for the Main Project.

Select the COM”X” for the AVR16EB32 CNANO connection.

Change Streaming ticks to 1.

Add the Speed and POT variables.

Click the Play button and Plot all variables button.

Adjust the data axis. On my_speed set from 0 to the motor nominal RPM speed and on my_pot from 0 to 100. See the results while changing potentiometer values.