Checking my textbooks (and the datasheet) the time for the encoder to spin down from it’s max speed to zero would be under ½ a second. So if you spun it with your fingers it would stop right away!
A little late but try: (I have the address pin connected to ground)
i2cslave %10010000, i2cslow, i2cbyte
readi2c 0, (b0,b1)
sertxd(“Byte 1 of the Temp Reg is: ” ,#b0,13,10)
sertxd(“Byte 2 of the Temp Reg is: ” ,#b1,13,10)
To change the device configuration: (i.e. Shutdown + Extended Mode)
writei2c 1, (%11100001,%10110000)
readi2c 0, (b0,b1)
…
Product COM-11102 | about 3 months ago
It looks like this is an incremental encoder and gray code does not apply. See:
http://en.wikipedia.org/wiki/Quadrature_encoder#Traditional_incremental_encoders
Product COM-11102 | about 3 months ago
Checking my textbooks (and the datasheet) the time for the encoder to spin down from it’s max speed to zero would be under ½ a second. So if you spun it with your fingers it would stop right away!
Product SEN-09694 | about 2 years ago
May I add; make all the I2C parts have a similar pinout (at least the I2C lines) so that they can be stacked.
Product SEN-09418 | about 2 years ago
A little late but try: (I have the address pin connected to ground)
i2cslave %10010000, i2cslow, i2cbyte
readi2c 0, (b0,b1)
sertxd(“Byte 1 of the Temp Reg is: ” ,#b0,13,10)
sertxd(“Byte 2 of the Temp Reg is: ” ,#b1,13,10)
To change the device configuration: (i.e. Shutdown + Extended Mode)
writei2c 1, (%11100001,%10110000)
readi2c 0, (b0,b1)
…