Hi guys!
I'm trying to use Encoder lib to get rotation direction from my wheels encoders (https://wiki.dfrobot.com/Micro_DC_Motor_with_Encoder-SJ01_SKU__FIT0450).
At small speed it's okay and returns correct value. But when I'm trying to rotate wheel a little bit faster Encoder lib starting to print an opposite direction sign.
What am I doing wrong? Please, help me figure it out.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi guys!
I'm trying to use Encoder lib to get rotation direction from my wheels encoders (https://wiki.dfrobot.com/Micro_DC_Motor_with_Encoder-SJ01_SKU__FIT0450).
At small speed it's okay and returns correct value. But when I'm trying to rotate wheel a little bit faster Encoder lib starting to print an opposite direction sign.
What am I doing wrong? Please, help me figure it out.
Looks like this at slow speed
1
1
1
1
1
1
And this at higher speed
-1
-1
1
-1
1
-1
-1
-1