Angle measurement of dc motor with encoder?

Hi all,

I am trying to read the angle of a dc motor with encoder using arduino uno board.I want to use this engine :

http://www.roboweb.net/rw-ml-1350.html

360 degree necessary to measure and with %1 sensitivity of

What do I need?

Hi Kinqwolf,
Well, you'll need a driver to drive the motor itself, obviously.
If you want to read encoder, you can use 2 different approaches:

  1. Use Encoder library. Encoder Library, for Measuring Quadarature Encoded Position or Rotation Signals
    In most cases it's great, simple and pretty accurate. It's good if you are position-dependant and can use all your resources counting "ticks" from encoder. You can even do a lot more stuff at the same time, but at some moment you'll find that your arduino can't handle any more procedures... Here is option 2 for this situation:
  2. Use external counter and poll it time to time. I personally use this chip: HCTL-2022 (http://australia.rs-online.com/web/p/decoders-demultiplexers/4965642/). I will require a bit of an extra programming, but you'll get all your resources back and will be able to read your encoder not when it "ticks" another count, but anytime you want.

I suggest to go for #1 option, and if you think it does not satisfy you, try #2.

Avalonnw:
Hi Kinqwolf,
Well, you'll need a driver to drive the motor itself, obviously.
If you want to read encoder, you can use 2 different approaches:

  1. Use Encoder library. Encoder Library, for Measuring Quadarature Encoded Position or Rotation Signals
    In most cases it's great, simple and pretty accurate. It's good if you are position-dependant and can use all your resources counting "ticks" from encoder. You can even do a lot more stuff at the same time, but at some moment you'll find that your arduino can't handle any more procedures... Here is option 2 for this situation:
  2. Use external counter and poll it time to time. I personally use this chip: HCTL-2022 (http://australia.rs-online.com/web/p/decoders-demultiplexers/4965642/). I will require a bit of an extra programming, but you'll get all your resources back and will be able to read your encoder not when it "ticks" another count, but anytime you want.

I suggest to go for #1 option, and if you think it does not satisfy you, try #2.

Thank you for your response, I've seen these methods. I want to do exactly, measure the angle of rotation by moving a disc.

For example:

Go with the library first.

Avalonnw:
Go with the library first.

Thanks but Can you share an example of the encoding here? and the engine's output shaft 12000 CPR (counts per revolution) value

I think if you follow the link I provided, you'll find all the useful information there as well as some example code.