Page 4
Under the supervision of Seeed Technology Inc., this manual has been compiled and published which covered the latest product description and specification. The content of this manual is subject to change without notice.
1. Introduction 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.
4. Usage 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...
Page 9
void loop() (encoder.rotate_flag ==1) (encoder.direct==1) index_LED++; (index_LED>23) index_LED=24; SenttocircularBar(index_LED); else index_LED--; if(index_LED<0) index_LED=0; SenttocircularBar(index_LED); encoder.rotate_flag void SenttocircularBar(int index) (int i=0;i<24;i++) (i<index) LED[i]=0xff; else LED[i]=0; circularLED.CircularLEDWrite(LED); Upload it to your Arduino/Seeeduino, please refer to here to learn how to upload sketches. You can see:...
Page 10
Note: It is able to generate another signal when it’s being pressed down. However due to the limitation of the number of Grove signal cable, the module is made without output of this signal.
Need help?
Do you have a question about the Grove-Encoder and is the answer not in the manual?
Questions and answers