Author Topic: cheap easy way to measure rotation of a platform?  (Read 4406 times)

0 Members and 3 Guests are viewing this topic.

Offline CopperConeTopic starter

  • Super Contributor
  • ***
  • Posts: 1415
  • Country: us
  • *knock knock*
cheap easy way to measure rotation of a platform?
« on: September 17, 2017, 09:48:06 am »
I wanted to put a platform that rotates some where, and have some kind of display that tells me the angle its at.

Is there some kind of easy existing (and cheap, the platform will be home made) project for this?. The accuracy does not need to be great, maybe only 5%.  I don't see an easy solution, everything I can think of involves gear and slop error... can't exactly make gears at home easily, would need to order brass etc.

I would prefer some kind of analog solution, with an analog signal proportional to rotation angle, that resets when it gets to 360. This way I can make a scaling network out of op-amps and use a multimeter as a display.

Also, I can do a 1-1 ratio accurately (i will be cutting the platters with a hole saw out of wood), the size is not a problem

I may just use a camera and a feed to visually ascertain the rotation angle (I have all these things).

Also, I have two identical hard drive motors. If its possible so that they mimic each others position some how ( i think I saw something like this in an old military system), I could put one up on the wall with a disk on it to show me the rotation (this would be even better and simpler). I forget how they linked magnetic encoders together, if they were special some how, etc. Really don't give a hoot about how I get the information, so long I can decode it. I have considered using a long stick with a handle like a periscope too (though unappealing).
« Last Edit: September 17, 2017, 09:51:35 am by CopperCone »
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #1 on: September 17, 2017, 10:50:54 am »
Put a track with 5- or 6-bit Grey code on the underside of the platform and read it with reflective optical sensors. That'll give you a resolution of 1/32 or 1/64.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 12459
  • Country: ch
Re: cheap easy way to measure rotation of a platform?
« Reply #2 on: September 17, 2017, 10:57:34 am »
Or what about using analog optical sensing, with either a gray gradient, or a black ramp, in either case, read with a reflective optocoupler?
 


Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #4 on: September 17, 2017, 11:35:24 am »
Or what about using analog optical sensing, with either a gray gradient, or a black ramp, in either case, read with a reflective optocoupler?

Nice idea, but compensating for ambient light would be a nightmare.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16362
  • Country: za
Re: cheap easy way to measure rotation of a platform?
« Reply #5 on: September 17, 2017, 11:47:11 am »
360 degree potentiometer, like used in RC servos as feedback, or if you only have a limited range of rotation how about a regular 270 degree pot as a potential divider. Otherwise a shaft encoder with index pulse to give an absolute reset point, and use an up/down counter to measure the rotation around the axis. This can be implemented as 3 LED reflective sensors and a suitable white and black checkerboard on the turning part.

As to the HDD motors, that will work if you want to transmit speed information, using a syncro transmission, but it does not work well at low speed as the magnetic field change will not be enough to overcome friction in the bearings, plus the slow rate will induce a low voltage. There you need to have a wound rotor that is excited with AC, so that the 3 phases transmit a voltage phase and amplitude proportional to angular displacement to the receiving endm it will only wokr with permanent magnet as speed transmission otherwise.
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4413
  • Country: nz
Re: cheap easy way to measure rotation of a platform?
« Reply #6 on: September 17, 2017, 01:18:30 pm »
Or what about using analog optical sensing, with either a gray gradient, or a black ramp, in either case, read with a reflective optocoupler?

Nice idea, but compensating for ambient light would be a nightmare.

Why? Is it likely to be extreme?

A laser-printed Gray-coded ring is dead easy and cheap to make, and accurate. Laminated, if it will be in the elements.

You could calibrate by pointing an extra sensor at a known white or known black area. Or, you could use a modified Gray code that doesn't have all-0s and all-1s codes, so you can calibrate the sensors against each other.

A quick Google search doesn't find anything about this idea, but I just made something up myself. Here's a 3 bit Gray code without 000 or 111:

001 011 010 110 100 101

From there, you can construct codes with more bits by the usual technique: reverse the sequence, append it to the original, and add a 0 to all the elements of one half and a 1 to all the elements of the other half. i.e. for 4 bits:

0001 0011 0010 0110 0100 0101 1101 1100 1110 1010 1011 1001

This construction will always give 3/4 * N^2 codes for an N bit code (instead of the usual 2^N). There may be another construction that would allow you to use 0111 and 1000 as well, which are not used in the above code, but it will probably be more complex.
 

Offline Assafl

  • Frequent Contributor
  • **
  • Posts: 602
Re: cheap easy way to measure rotation of a platform?
« Reply #7 on: September 17, 2017, 01:34:45 pm »
You could pilfer an encoder disk and the respective slot sensor from a discarded inkjet printer. They work well even under ambient lighting condition...
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #8 on: September 17, 2017, 01:37:18 pm »
Or what about using analog optical sensing, with either a gray gradient, or a black ramp, in either case, read with a reflective optocoupler?

Nice idea, but compensating for ambient light would be a nightmare.

Why? Is it likely to be extreme?


If you'd bother to read the thread, you'll see that a Grey-coded ring is exactly what I proposed. My comment was on a suggestion to use an analog gray gradient scale, which is something completely different.

Note the difference between "Grey" and "gray".

« Last Edit: September 17, 2017, 01:48:23 pm by Benta »
 
The following users thanked this post: sokoloff

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #9 on: September 17, 2017, 01:42:59 pm »
You could pilfer an encoder disk and the respective slot sensor from a discarded inkjet printer. They work well even under ambient lighting condition...

Yeah, but those only give pulse signals, no absolute position. So you'd have to bring the platform to a known position and count from there. And if the platform goes back and forth, your signal would be gibberish. Even a quadrature encoder does not handle that situation well.
 

Offline Assafl

  • Frequent Contributor
  • **
  • Posts: 602
Re: cheap easy way to measure rotation of a platform?
« Reply #10 on: September 17, 2017, 01:59:07 pm »
You could pilfer an encoder disk and the respective slot sensor from a discarded inkjet printer. They work well even under ambient lighting condition...

Yeah, but those only give pulse signals, no absolute position. So you'd have to bring the platform to a known position and count from there. And if the platform goes back and forth, your signal would be gibberish. Even a quadrature encoder does not handle that situation well.

Yup - I thought he controlled the rotation with the motors but reread it and he wants the motors to act like 3 phase Selsyns. BTW - Selsyn's would work but they are difficult to find cheap (and need a supply)...
 

Offline brucehoult

  • Super Contributor
  • ***
  • Posts: 4413
  • Country: nz
Re: cheap easy way to measure rotation of a platform?
« Reply #11 on: September 17, 2017, 02:01:33 pm »
Or what about using analog optical sensing, with either a gray gradient, or a black ramp, in either case, read with a reflective optocoupler?

Nice idea, but compensating for ambient light would be a nightmare.

Why? Is it likely to be extreme?


If you'd bother to read the thread, you'll see that a Grey-coded ring is exactly what I proposed. My comment was on a suggestion to use an analog gray gradient scale, which is something completely different.

Note the difference between "Grey" and "gray".

I think you'll find the name of the gentleman who invented the one-bit-changes-at-a-time code was Frank Gray.
 
The following users thanked this post: mathsquid

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #12 on: September 17, 2017, 02:07:53 pm »
Meh.
 

Offline Richard Crowley

  • Super Contributor
  • ***
  • Posts: 4319
  • Country: us
  • KJ7YLK
 
The following users thanked this post: Gyro

Offline EmmanuelFaure

  • Regular Contributor
  • *
  • Posts: 154
  • Country: 00
Re: cheap easy way to measure rotation of a platform?
« Reply #14 on: September 17, 2017, 07:49:57 pm »
Magnetometer. Nowadays they're available for a bargain, and they requiere no additional hardware.
 

Offline Fungus

  • Super Contributor
  • ***
  • Posts: 17066
  • Country: 00
Re: cheap easy way to measure rotation of a platform?
« Reply #15 on: September 17, 2017, 07:54:27 pm »
Magnetometer. Nowadays they're available for a bargain, and they requiere no additional hardware.

Yep. Just glue one anywhere on the turntable and take a reading from the vertical axis.

So long as there's no huge spinning magnets near it, it should work.

nb. They're a bit jumpy so you'll need to average multiple readings.
 

Offline bson

  • Supporter
  • ****
  • Posts: 2407
  • Country: us
Re: cheap easy way to measure rotation of a platform?
« Reply #16 on: September 17, 2017, 08:13:36 pm »
The gray code strip and two sensors 90 degrees (half a period) apart and you get a quadrature encoded signal.  Benefit: super simple.  Drawbacks: requires illumination and light sensors tend to require regular realignment.  Great for prototyping with sheet metal or aluminum.

If the diameter is large enough you can attach a gear belt inside out and couple it with a suitable gear to a shafted optical quadrature encoder.  Can also be manufactured with teeth (no belt needed) and a rock solid encoder mount slot.

You can also run a friction belt drive shaft-to-encoder shaft.  Simple but prone to slipping when worn.
 

Offline CopperConeTopic starter

  • Super Contributor
  • ***
  • Posts: 1415
  • Country: us
  • *knock knock*
Re: cheap easy way to measure rotation of a platform?
« Reply #17 on: September 17, 2017, 08:32:52 pm »
I like seanB's idea the best, it can be decoded very easily, even using a cheap multimeter. for some reason I totally forgot about potentiometers. If they have wire versions that don't ware then I'm in.

I did not want to code anything...

The grey-code strips are also interesting, but I think my base diameter would be longer then one printer paper, so I would need to go to some place with a super printer to print it. It reminds me of what a digital caliper does. I can see it having problems at the interface, maybe.

 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #18 on: September 17, 2017, 08:33:20 pm »
Quote
The gray code strip and two sensors 90 degrees (half a period) apart and you get a quadrature encoded signal.

OK, intriguing concept.
What's the advantage of a Gray-coded output AND a quadrature output?

The Gray-code strip will give you 5- or 6-bit (or more) static parallel logic outputs. What more is needed for position detection?

I'm not trying to put this concept down, but more interested in the additional benefits.
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 6166
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #19 on: September 17, 2017, 08:39:20 pm »
I like seanB's idea the best, it can be decoded very easily, even using a cheap multimeter. for some reason I totally forgot about potentiometers. If they have wire versions that don't ware then I'm in.

I did not want to code anything...

The grey-code strips are also interesting, but I think my base diameter would be longer then one printer paper, so I would need to go to some place with a super printer to print it. It reminds me of what a digital caliper does. I can see it having problems at the interface, maybe.

If you can find a 360-degree pot, go for it. Nice and simple solution.

Concerning the Gray-code strips: no problem. With your limited demand for resolution, glue them together from two or more pieces.

 

Offline CopperConeTopic starter

  • Super Contributor
  • ***
  • Posts: 1415
  • Country: us
  • *knock knock*
Re: cheap easy way to measure rotation of a platform?
« Reply #20 on: September 17, 2017, 09:04:11 pm »
got a nice 360 degree potentiometer from ebay. I will put it into a scaling circuit so that a harbor freight 5$ multi meter will read from 0-3.6 volts.  I found one of the meters to be accurate to the 0.01 count (+- ~1 count most of the time, so one degree)

Much nicer then having to program or decode binary in my head.

A little bit pricey (25$ total + 4 wire shielded cable), but so much better then trying to figure out why encoders are being funny, counting backwards, micro controller issues, etc. It looks like the microcontroller solution would be like, 3$ for the screen, 3$ for the MCU, 3-10$ for the encoder off ebay, and chassis work (plus coding).

Hopefully I can fit the scaling circuit  and its power supply inside of the multimeter battery compartment.
« Last Edit: September 17, 2017, 09:09:59 pm by CopperCone »
 

Offline zeqing

  • Regular Contributor
  • *
  • !
  • Posts: 84
  • Country: de
Re: cheap easy way to measure rotation of a platform?
« Reply #21 on: September 21, 2017, 03:34:37 am »
Or what about using analog optical sensing, with either a gray gradient, or a black ramp, in either case, read with a reflective optocoupler?

+1, once measured a DC motor rotary speed upto 10 K/minite with the reflective optocoupler.... just add or write a black line on white paper, and makes the paper rotate with the platform.
 
The following users thanked this post: tooki

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11703
  • Country: my
  • reassessing directives...
Re: cheap easy way to measure rotation of a platform?
« Reply #22 on: September 21, 2017, 05:18:44 am »
gray code you need 7 bit if you need 5 degree and more accuracy. 6 bit only give you 360/64 = 5.6 degree if you can live with that, but graycode is digital solution. from what you described, 360 degree potentiometer (just like a modded servo motor) will be opamp (analog) friendly...
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online Jeroen3

  • Super Contributor
  • ***
  • Posts: 4129
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: cheap easy way to measure rotation of a platform?
« Reply #23 on: September 21, 2017, 06:20:20 am »
I would prefer some kind of analog solution, with an analog signal proportional to rotation angle, that resets when it gets to 360.
Continous mechanical rotation potentiometers.
 

Offline Leo Bodnar

  • Frequent Contributor
  • **
  • Posts: 811
  • Country: gb
Re: cheap easy way to measure rotation of a platform?
« Reply #24 on: September 21, 2017, 05:53:26 pm »
got a nice 360 degree potentiometer from ebay. I will put it into a scaling circuit so that a harbor freight 5$ multi meter will read from 0-3.6 volts.  I found one of the meters to be accurate to the 0.01 count (+- ~1 count most of the time, so one degree)

Much nicer then having to program or decode binary in my head.

A little bit pricey (25$ total + 4 wire shielded cable), but so much better then trying to figure out why encoders are being funny, counting backwards, micro controller issues, etc. It looks like the microcontroller solution would be like, 3$ for the screen, 3$ for the MCU, 3-10$ for the encoder off ebay, and chassis work (plus coding).

4 wires?  You might have a bought a sin/cos output potentiometer.  No big deal but still needs decoding.

Leo


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf