|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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! |
|
#2
|
|||
|
|||
|
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();
|
|
#3
|
||||
|
||||
|
Re: Rotational Encoders?
Alright thanks
![]() |
|
#4
|
|||||
|
|||||
|
Re: Rotational Encoders?
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| pic: Saving weight (and rotational mass) | M4 Sherman | Extra Discussion | 11 | 09-08-2006 00:20 |
| Encoders | Ctx32 | Programming | 8 | 13-05-2006 23:54 |
| 3 Encoders | stephenthe1 | Programming | 5 | 17-11-2005 19:21 |
| multi rotational potentiometers | jdawson | Electrical | 8 | 27-01-2003 08:12 |