HDD stepper as a rotary encoder

Hello Everyone, :grinning:

I'm new to the forum so please forgive me if I'm doing something wrong. :stuck_out_tongue:

My question is following:

I want to make a project where I use the stepper motor out of HDD as a rotary encoder to read it's rotation direction and distance. Is it possible and how?

Why not use a rotary encoder?

It is possible to make an encoder out of a stepper motor, but it requires sophisticated electronics.

I’d like to use the hdd paired with pro micro as a PC volume control.

Edit:
btw I would also like to implement it as a motorized volume knob so I could control it remotely via IR. I’ve already built some IR circuits and I’m already quite familiar with electronics,but hey, I’m only 16 and I’ve still got a long way to go and lots of stuff to learn :smiley:

mrleongalaxyum:
I'd like to use the hdd paired with pro micro as a PC volume control.

Edit:
btw I would also like to implement it as a motorized volume knob so I could control it remotely via IR. I've already built some IR circuits and I'm already quite familiar with electronics,but hey, I'm only 16 and I've still got a long way to go and lots of stuff to learn :smiley:

For accurate small angles of rotation you'll need to use a stepper or servo.
If you manually turn a stepper by hand, the Arduino will lose track of the current position.