Demo File: stm32f4_encoder_demo_target.mdl
Demo File: stm32f4_encoder_demo_host.mdl
This example demonstrates how to use the Encoder Read Block.
The target model is configured to:
|Read Encoder Channel A and B using pin A8 and E11 respectively.
|Output encoder direction and count as binary data packet via UART pin B6.
The host model is configured to read aMG Converter - N (USB-UART converter) channel B and display the received binary data packet as display and plot.
As a motor turn encoder count and direction is updated and displayed on the host PC.