Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Rotational Encoders? (http://www.chiefdelphi.com/forums/showthread.php?t=83095)

DjMaddius 19-02-2010 16:12

Rotational Encoders?
 
Will the normal encoder class read the rotational encoder the same as the ones on the gear boxs?

Or is there a specific way to use the rotational encoders? And if there is, how so?


Examples would be nice!

oddjob 19-02-2010 16:27

Re: Rotational Encoders?
 
Yes.

Code:

  INT32 count_encoder_1;

  Encoder *m_encoder_1;

...

    m_encoder_1 = new Encoder(1, 2, false, Encoder::k4X);
    m_encoder_1->Reset();
    m_encoder_1->Start();
...
    count_encoder_1 = m_encoder_1->Get();


DjMaddius 19-02-2010 16:31

Re: Rotational Encoders?
 
Alright thanks :D

Alan Anderson 20-02-2010 22:01

Re: Rotational Encoders?
 
Quote:

Originally Posted by DjMaddius (Post 924027)
Will the normal encoder class read the rotational encoder the same as the ones on the gear boxs?

Or is there a specific way to use the rotational encoders? And if there is, how so?

Examples would be nice!

Are you talking about the magnetic angular position sensors? How to use them depends mostly on what you want to use them for. It would probably be easiest to read the analog sine/cosine values, which is appropriate for measuring something like the angle of an arm joint.


All times are GMT -5. The time now is 13:54.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi