M5Stack Mini Angle Unit Rotary Switch


Description

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.

Features

  • Output voltage range: 0 ~ 2500mV

  • GROVE interface, support UIFlow and Arduino

  • Two Lego-compatible holes

Specification

ResourcesParameter

Output voltage

0 ~ 2500mV

Net weight

6g

Gross weight

23g

Product Size

32*24*22mm

Package Size

73*46*30mm

*In M5Stack product system, Normally the Grove color indicates the type of communications.*

  • Black: Single BUS (AD ,DA ,GPIO)

  • Red: I2C

  • Blue:UART

  • White: Others(depends)

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

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.

Download Windows Version Easyloader Download MacOS Version Easyloader

Description: Display knob analog value data.

Pinout

M5Core(GROVE B)GPIO36GPIO265VGND

ANGLE Unit

Sensor Pin

5V

GND

Schematic

Learn

DIY Protractor with M5StickCDIY Protractor with M5StickCM5StickC + Angle unit = Protractor (detecting range: 0-180 degrees)

Example

Arduino

The code below is incomplete. To get the complete code, please click here

UIFlow

UIFlow2.0UIFlow2.0This tutorial will show you how to initialize the configuration using the UIFlow2.0 graphical programming platform

ANGLE Unit Programming Guide

Feature Introduction

Read the output value of the knob potentiometer

  • Get value Return potentiometer value

Usage

Last updated