Gravity: 360 Degree Rotary Encoder Module

SKU: SEN0502

The Gravity Visual Rotary Encoder Module, resembling a potentiometer, is a versatile encoder switch with I2C output, designed for ease of use and precision. Featuring a 360° rotary function with 20 pulses per revolution, each pulse corresponds to a detent marked by LED lights, allowing users to visually monitor the encoder's real-time status. Configurable accuracy ranges from 1 to 51 per detent, enabling fine-tuned control over device settings. This module's cascade feature empowers users to control multiple output devices, such as adjusting light brightness, color, volume, and speed, using a single I2C interface, making it ideal for diverse application scenarios.

Front of 360-degree rotary encoder module with 16 pins and central knob for Arduino.-DFRobot product sku:SEN0502 image.

Downloadable Resources

  • Docs
  • Tech Specs
  • 1. Example Code for Arduino-Adjust Gain Coefficient

    This article guides users through adjusting the gain coefficient of a rotary encoder using Arduino, including hardware setup, software installation, and sample code implementation.

    2. Example Code for Arduino-Get Basic Information

    This article offers a comprehensive guide on using Arduino to gather basic data from a rotary encoder module, including hardware setup, software installation, wiring instructions, and sample code to retrieve and display encoder information such as PID, VID, firmware version, communication address, gain coefficient, and current counts.

    3. Example Code for Arduino-Reset Encoder

    This blog post offers detailed guidance on resetting a rotary encoder using Arduino, including hardware and software prerequisites, wiring setup, and sample code implementation for precise encoder value management.

    4. Example Code for Arduino-RGB Color Adjustment

    This article guides readers through the process of using Arduino and rotary encoders to adjust RGB LED colors, providing detailed instructions on hardware and software setup, wiring, and sample code for precise color control.

    5. Example Code for Arduino-Control LED Brightness

    This article offers a comprehensive guide on controlling LED brightness using Arduino, featuring detailed instructions on hardware and software setup, I2C settings, and sample code implementation.

    6. Example Code for Arduino-Control Servo Angle

    The article offers a comprehensive guide and example code for controlling servo motor angles using Arduino, focusing on setup with a rotary encoder module, necessary libraries, and step-by-step instructions for achieving precise servo movements in DIY projects.

    Reference

    The article is a detailed guide on the Rotary Encoder Module, covering its I2C communication protocol, address settings via DIP switches, and main API functions for encoder control, including reading module information, getting and setting encoder values, and detecting button presses.

    Specification

    Parameter Value
    Operating Voltage 3.3V~5V
    Total Rotating Angle 360°
    Pulses Per Revolution 20
    Interface two Gravity connectors; I2C
    Cascadable Device Number 4
    Rotation Lifespan 30000±200 Cycles
    Contact Resistance ≤100mΩ
    Insulation Impedance 100MΩ above
    Oscillation <10ms press
    Operating Temperature -30℃~+80℃
    Accuracy 1~51
    Minimum Settable Value 1(Light up one LED when rotating 2.5 turns)
    Maximum Settable Value 51(Light up one LED when rotating 1 detent)
    Storage 0~1023
    Dimension 37×37mm/1.46×1.46”

    Pinout

    Board Overview

    Num Label Description
    1 VCC/+ Power+
    2 GND/- Power-
    3 SCL/C I2C Clock line
    4 SDA/D I2C Data line

    Was this article helpful?

    TOP