Control Module

Joystick Module

Description: The joystick module is an analog thumbstick that provides X and Y axis position values. It typically includes a spring-loaded mechanism that returns to the center position when released. The module outputs two analog voltages (0–3.3V) that correspond to the X and Y positions.

Connection:

W55MH32

Joystick Module

3V3

VCC

GND

GND

PA0 (ADC)

VRX (X-axis)

PA1 (ADC)

VRY (Y-axis)

Test Code: GitHub

Demo:

Joystick test

Button Module

Description: The button module is a digital input device that outputs a HIGH or LOW signal depending on the press state. The module can be used for user input, triggering events, or mode selection.

Connection:

W55MH32

Button Module

3V3

VCC

GND

GND

PG8

Signal

Test Code: GitHub

Demo:

Button module test

Potentiometer Module

Description: The potentiometer module is an analog input device that provides a variable voltage output based on the position of its knob. It is commonly used for volume control, brightness adjustment, or as a user input for setting parameters. The output voltage ranges from 0V to VCC, which can be read using an ADC pin.

Connection:

W55MH32

Potentiometer Module

3V3

VCC

GND

GND

PA0 (ADC)

Signal

Test Code: GitHub

Demo:

Potentiometer module test