50.5. QEIV2 UVW Encoder

50.5.1. Overview

Qeiv2 UVW Encoder project demonstrates configuring the UVW encoder and obtaining its data, then printing the data through a serial console.

50.5.2. Configurations

  • Connect the UVW signal of the UVW encoder to the QEI_A, QEI_B, QEI_Z on the development board.

  • Make the encoder rotate quickly.

50.5.3. Running the Demo

  • Power on, open the serial terminal, log as following:

----------------------------------------------------------------------
$$\   $$\ $$$$$$$\  $$\      $$\ $$\
$$ |  $$ |$$  __$$\ $$$\    $$$ |\__|
$$ |  $$ |$$ |  $$ |$$$$\  $$$$ |$$\  $$$$$$$\  $$$$$$\   $$$$$$\
$$$$$$$$ |$$$$$$$  |$$\$$\$$ $$ |$$ |$$  _____|$$  __$$\ $$  __$$\
$$  __$$ |$$  ____/ $$ \$$$  $$ |$$ |$$ /      $$ |  \__|$$ /  $$ |
$$ |  $$ |$$ |      $$ |\$  /$$ |$$ |$$ |      $$ |      $$ |  $$ |
$$ |  $$ |$$ |      $$ | \_/ $$ |$$ |\$$$$$$$\ $$ |      \$$$$$$  |
\__|  \__|\__|      \__|     \__|\__| \_______|\__|       \______/
----------------------------------------------------------------------
qeiv2 uvw encoder example
pos:0x95555555
pos:0x15555555
pos:0x15555555
pos:0x6aaaaaaa
pos:0x95555555
pos:0xeaaaaaaa
pos:0x15555555
pos:0x6aaaaaaa
pos:0x95555555
pos:0xeaaaaaaa
pos:0x15555555
pos:0x6aaaaaaa
pos:0x95555555
pos:0x95555555
pos:0x15555555
pos:0x15555555
pos:0x95555555
pos:0x95555555
pos:0xeaaaaaaa
pos:0x15555555
pos:0x6aaaaaaa
pos:0x95555555
pos:0xeaaaaaaa
pos:0x15555555
pos:0x6aaaaaaa
pos:0x95555555
pos:0xeaaaaaaa