EcoModding Lurker
Join Date: Mar 2016
Location: italy
Posts: 40
Thanks: 5
Thanked 2 Times in 2 Posts
|
Quote:
Originally Posted by MPaulHolmes
Type the following in realterm (or whatever serial streaming software you are using):
stream-poscnt 1
data-stream-period 100
Then, make one complete revolution (turning the motor slowly by hand), noting the starting value for poscnt and the ending value for poscnt.
The difference between the 2 values for poscnt will be 4 times the resolution of your encoder.
|
ticks per rev: 1024 clockwise rotation
00000,
00000,
00000,
00001,
00002,
00000,
00001,
00003,
00001,
00002,
00003,
00000,
00002,
00004,
00000,
00001,
00002,
00000,
00002,
00003,
00000,
00001,
00002,
00000,
anticlockwise:
00000,
65535,
65534,
00000,
65535,
65533,
00000,
65534,
65532,
00000,
65533,
65531,
65535,
65533,
65535,
65534,
65532,
00000,
65534,
65533,
65535,
65534,
65534,
00000,
00000,
ticks per rev: 2048 clockwise rotation
00000,
00000,
00000,
00001,
00001,
00002,
00000,
00002,
00002,
00001,
00002,
00000,
00001,
00003,
00000,
00002,
00004,
00000,
00001,
00002,
00001,
00001,
00003,
00000,
00001,
00003,
00000,
00001,
00003,
00000,
00000,
00000,
00000,
anticlockwise:
00000,
00000,
65529,
65534,
65531,
00000,
65534,
65532,
00000,
65534,
65532,
65535,
65534,
65535,
65535,
65534,
65533,
65534,
65534,
00000,
65535,
65534,
00000,
00000,
|