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:
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: