VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » Knowledge, science, education » GreatScott!
HACKED! : Using an HDD Motor as a Rotary Encoder!

HACKED! : Using an HDD Motor as a Rotary Encoder!

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
HACKED! : Using an HDD Motor as a Rotary Encoder! klazzera: hello, i've done a similiar project in the past, but instead of using each period of the sine wave as a one step, i calculated the angle of the rotor continuously with practically infinite resolution only limited by the resolution of the ADC. the three phase voltage values are actually x-y-z coordinates on a tilted circle in 3d space. the normal vector of the circle was (1, 1, 1) as far as i remember, and doing some simple trigonometry, you can calculate the exact angle of the rotor as long as it's rotating fast enough to generate a measurable voltage. you can calculate the speed from the angle itself, however, the radius of the circle is also the speed itself.
Date: 2020-09-05

Comments and reviews: 9


Well. I don't really think that is very useful as a rotary encoder, since you have to spin it quickly to induce enough voltage and then you have to make it incremenet/decrement very slowly if you wanna be able to precisely control anything.
I guess not having steps is kinda cool, but I would have used a BLDC motor with hall effect sensors in it or something so you can also spin it slowly without it just ignoring the rotation. But in that case you might as well use an optical rotary encoder with no steps like the clarostat 600-128 for example and maybe add a metal knob with a fair bit of mass to give it some inertia.

reply

The V-level dependance on speed of rotation is a main problem even with a squaring amps. You will shurely loose some of encrements if apply this as positioning encoder. Look at price of normal optical encoder. It is cheap, precise and perfect. Just use motor as motor.
reply

SHEEESH. WONT A NEMA17 STEPPER ALSO WORK?
Funny watching a NEMA17 FIRING LEDS without a battery too.
I guess much work is left to me.
A spring-loaded spool, a NEMA17.
A CLOSED LOOP SPOOLED CABLE/CHAIN, AND A NEMA17.
A HANDWHEEL AND H-BRIDGE.

reply

I'm wondering: you are spinning the wheel quite fast and still the counted number needs more than one rotation to increase / decrease. This looks like the detection of the HIGH-LOW-HIGHtransitions work unreliable
reply

We can increase the resolution by a factor of 3 by using interrupt on each of the 3 inputs.
The global position counter is incremented/decremented by each interrupt.

reply

Mate, YouTube is full of clever people coming up with clever ideas, based on previous clever ideas. Yours is magnificent. And really well explained too.
reply

How do I apply this to a powered motors. Like a robot or a trolley you can push direction and it will power it automatically or reverse.
reply

Great video! I've always wondered, can the arm control mechanism be used to change the angle of a mirror to produce light images?
reply

This guys speaks really good English. Once he learns how to speak dummy, Ill be able to understand what hes taking about.
reply
Add a review, comment






Other channel videos