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.
Resources | Parameter |
---|---|
Output voltage | 0 ~ 2500mV |
Net weight | 6g |
Gross weight | 23g |
Product Size | 32*24*22mm |
Package Size | 136*92*22mm |
*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.
M5Core(GROVE B) | GPIO36 | GPIO26 | 5V | GND |
---|---|---|---|---|
ANGLE Unit | Sensor Pin | 5V | GND |
The code below is incomplete. To get the complete code, please click here