Hey guys, I would love to generate a signal when the Encoder is pressed down. It says everywhere that this signal can be generated but nowhere it’s explained how to do that.
Has anyone figured this out already?
I know that I won’t get this signal over the Grove cable but I don’t need to…
Thanks in advance!
Hi There
I tried and succeeded .
You can cut the marked signal line and connect it to Vcc.
This is my modified photo.Thanks.
This is my code.
</s>#include <Encoder.h>
#include <TimerOne.h>
void setup()
{
encoder.Timer_init();
Serial.begin(9600);
}
void loop()
{
if (encoder.rotate_flag ==1)
{
if (encoder.direct==0)
{ Serial.println("backward rotated!");}
else
{Serial.println("forward rotated!");}
encoder.rotate_flag =0;
}
}<e>
grove encoder schematic has a signal glitch at pins SIGA,SIGB,
fix it look at a pic