6
$\begingroup$

For a pet project, I am trying to fly a kite using my computer. I need to measure how far a cord extends from a device. I also need to somehow read out the results on my computer. So I need to connect this to my pc, preferably using something standard like USB.

Since the budget is very small, it would be best if I could get it out of old home appliances or build it myself.

What technology do I need to make this measurement?

$\endgroup$
0

3 Answers 3

4
$\begingroup$

Sure, here are a couple of choices for you:


For high end, you can look at a 200 counts per revolution rotary encoder like this one:

$30 Sparkfun 200 Counts Per Revolution Rotary Encoder

Rotary Encoder

You'll need a microcontroller like an Arduino to count the rotations, there's some sample code to play with.


$5 Adafruit 24 Counts Per Revolution Rotary Encoder 24 CPR Rotary Encoder

Cheaper, not quite as much community support in comments.


For a little more fun, you can combine the rotary encoder with a gearmotor so you could control the kite string with one piece of equipment.

$40 Pololu 64 Counts Per Revolution Encoder + Gearmotor Pololu Gearmotor with encoder

$\endgroup$
2
  • $\begingroup$ Thanks for all the good links and tips. There's a whole world opening up for me here! $\endgroup$
    – kramer65
    Mar 18, 2013 at 9:32
  • $\begingroup$ You're welcome. It's a ton of fun! $\endgroup$ Mar 19, 2013 at 1:13
2
$\begingroup$

Maybe you could take one from an old computer mouse, and count the light pulses directly from the mouse board so you could tell the length of the cord.

$\endgroup$
2
  • $\begingroup$ Examples: one, two, three $\endgroup$
    – Ian
    Mar 17, 2013 at 20:18
  • $\begingroup$ That is simply brilliant! Not only can I choose from mechanical and optical variants, they also already have a USB-cable attached! I think I will try this first. I love the high DYI part of this! $\endgroup$
    – kramer65
    Mar 18, 2013 at 9:46
1
$\begingroup$

I like @kramer65's answer but because you indicated you might like to make an encoder, I thought I'd share some information on that.

http://www.societyofrobots.com/sensors_encoder.shtml shows a very common way of making a rotary encoder. You attach a disk with evenly spaced holes or reflective surfaces depending on implementation to your shaft. You align a light sensor with the holes and count the number of holes that pass to determine how much the shaft has turned. This has the disadvantage of not being able to determine direction but there was ways to modify the design to add that feature.

An example of a homemade encoder.

More information can be found in these places:

http://groups.csail.mit.edu/mac/users/pmitros/encoder/

http://thedenneys.org/pub/robot/encoders/

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.