Grove - Encoder


3.3V 5.0V Digital

This module is an incremental rotary encoder. It encodes the rotation signal from the axis and output the signal by electronic pulse. The Grove – Encoder is one of the Grove series and has a standard Grove interface. When you need to add a rotary knob to your project, for example a volume knob for a speaker, a selection panel or a digital input, this will be your first choice.


  • Incremental encoder.
  • Grove Interface.
  • 360 degree rotary.


Item Min Typical Max Unit
Voltage 4.5 5 5.5 V
Current 10 20 30 mA
Dimension 20x 20 mm
Net Weight 12 g

Platforms Supported

Getting Started

This Grove-Encoder is very easy to use with the Encoder Lib designed by seeedstudio. Simply connect this module to the D2 connector of Base Shield and you can start using. The following is a introduction of how to make a Circular LED bar.

  • This Circular LED bar consists of an Encoder and a Grove-CircularLED module. Connect the two modules to Base shield as the following picture:

  • In the project, the TimeOne Lib and Encoder Lib and CircularLED Library are needed. Download all the librarys and install them to your Arduino IDE.

  • Restart the Arduino IDE and open the example by the path: File->Examples->Encoder->EncodeCircuiBar.

#include <CircularLED.h>
#include <Encoder.h>
#include <TimerOne.h>
CircularLED circularLED;
unsigned int LED[24];
int index_LED;
void setup()
void loop()
    if (encoder.rotate_flag ==1)
    if (
      if (index_LED>23)
    encoder.rotate_flag =0;
void SenttocircularBar(int index)
  for (int i=0;i<24;i++)
    if (i<index)
  • Upload it to your Arduino/Seeeduino. You can see:


It is able to generate another signal when it is being pressed down. However due to the limitation of the number of Grove signal cables, the module is made without output of this signal.


ArduinoWioBeagleBoneRaspberry PiLinkIt ONE


The platforms mentioned above as supported is/are an indication of the module's hardware or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking