Qwiic Twist read absolute position

Hello

I am using [Qwiic Twist - RGB Rotary Encoder Breakout connected to an Arduino.

I am trying to read the absolute position od the encoder.

I tried Example1 that uses getCount() function, but when I unplug the power from the USB and plug it back, the count starts from 0.

Thanks for the help.](SparkFun Qwiic Twist - RGB Rotary Encoder Breakout - DEV-15083 - SparkFun Electronics)

The encoder used in that breakout is not an absolute encoder; it has no way of determining when it is at a home or 0 position. Even if you modify the code on the breakout board to save the position, there is no way to detect whether it has been turned while the power is off.

/mike

That too bad, one of your agents said that it is an absolute encoder. That’s why I decided to buy this one.

https://i.ibb.co/vPZ8sxL/Annotation-202 … 010454.png

This is from the comments in the product webpage https://www.sparkfun.com/products/15083

When powered up, it keeps track of the position (calling where it was at powerup “0”) in firmware . Looking at the datasheet for the encoder (located on the “documents” tab), the part used is a quadrature encoder, so there is no way to know what happens when power is off. I have added a comment to the product page.

/mike

(BTW, I have no connection with SparkFun other than a customer…)

Yes, that’s what I am getting from it.

This is just a regular INCREMENTAL encoder, this is not an ABSOLUTE encoder.

thanks