Skip to content

Rotary Encoder

mean00 edited this page Feb 15, 2021 · 1 revision

Mod vs Vanilla

Versions

The code can be built for 4 versions :

  1. Vanilla : Using the default hardware, the rotary encoder is unresponsive, because the rotary encoder pins are shared with the screen. When the screen is refreshed, you lose some rotations.
  2. USB : In that setup the rotary encoder is connected to the PB14/PB15 PINS and usb is activated
  3. Vanilla + GD32F303 4 USB + GD32F303

**/!\ Warning version **>= 1.05 are now using PB14 and PB15 which were not used and easily reachable on the board.

The GD32F303 is much better :

  • Running at 96 Mhz it is almost twice as fast
  • The ADC frequencies have more values, giving better sampling without dropping/duplicating samples
  • The GD32F303 has a hardware FPU

The USB mod is actually made of 2 separate modifications :

  • Rotary change : I strongly suggest to do it, it really makes the unit work better
  • Connect USB : You can skip that one, it is not really needed, and not used at the moment.

The USB part is described here blog2

Rotary change

Cut the 2 pins on the left from below (the ones in red): Rotary1

Connect left and right (white and green) to PB14 and PB15 : Rotary2

Clone this wiki locally