Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Encoder library is not X4
2015 年 02 月 11 日
22:04:57
zerozaber
Moderator
Forum Posts: 52
Member Since:
2015 年 02 月 11 日
Offline

I found out that Encoder.read is X2. Meaning that using with 100 CPR encoder will result in 200 CPR.
Is it possible to read quadrature (X4) encoder?

And reading in Unsigned int is hard to use in motion control, I wish there is another library which read to signed int and reset to 0 with hard code.

2015 年 02 月 12 日
11:40:52
cucubutter
Moderator
Forum Posts: 84
Member Since:
2014 年 04 月 10 日
Offline

Hi , you can use the parameters MODE_STEP_DIR_x2, MODE_CWCCW_x2 and MODE_AB_PHASE_x2.

And which function did you read in Unsigned int???

2015 年 02 月 12 日
14:35:29
zerozaber
Moderator
Forum Posts: 52
Member Since:
2015 年 02 月 11 日
Offline

Enc0.read();

2015 年 02 月 12 日
22:46:46
Android_Lin
Moderator
Forum Posts: 211
Member Since:
2014 年 04 月 01 日
Offline

Hello, zerozaber
you can get the signed int value from Enc0.read() by:
int ret = (int) Enc0.read();

Forum Timezone: Asia/Taipei

Most Users Ever Online: 66

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Dinosaur: 27

leutenecker: 13

mrZagg: 10

lukeross: 8

tomka: 8

smeezekitty: 8

hippy: 8

Ekkehard: 8

UIdahoCIT: 8

blaxxun: 7

Member Stats:

Guest Posters: 0

Members: 1520

Moderators: 14

Admins: 5

Forum Stats:

Groups: 2

Forums: 10

Topics: 239

Posts: 1082

Newest Members: Olegeffep, bradfang, markjensen, carryjhn, garfpinpsivenste, sragdoterlesscu, uledthapeton, srelesponreuterf, prinriaquochilddist, cobdor7

Moderators: Glaux: 70, uaa: 11, guigra: 17, asian55: 22, Android_Lin: 211, bcarroll: 12, cucubutter: 84, recycled-air: 12, stevemork: 16, zerozaber: 52, pongraczi: 20, George Andrews III: 56, poto: 11, garpastym: 20

Administrators: eveshih: 1, anthony: 31, viky6: 0, roboard: 135, hcl: 0