ANGLE is a rotary switch Unit which simply includes a 10K Ohm potentiometer inside. This unit can be used for Continuous signal rotatory control for applications such as volume, brightness, or motor speed.
A potentiometer is a manually adjustable variable resistor with three terminals: Two terminals are connected to a resistive element, the third terminal is connected to an adjustable wiper. The position of the wiper determines the output voltage.
The out voltage is captured and converted by AD on ESP32 on portB.
|0 ~ 2500mV
In M5Stack product system, Normally the Grove color indicates the type of communications.
The Unit's Grove interface is black, specify it is an analog interface that should be connected to the M5Core's GROVE B interface.
EasyLoader is a concise and fast program writer, which has a built-in case program related to the product. It can be burned to the main control by simple steps to perform a series of function verification.
Display knob analog value data.
The code below is incomplete. To get the complete code, please click here
Read the output value of the knob potentiometer