Is it being pulled over a roller or pulley so you can measure the number of rotations of the roller? A simple quadrature encoder will do this easily. US Digital make some really nice absolute encoders that will allow you to measure the rope down to fractions of a millimeter.
If it's being pulled past a window, perhaps the sensor out of an optical mouse can be used?
You can measure wire or rope. Basically a wheel pressed against the rope so it will turn as the rope is pulled. The circumference of the wheel is known. Count the revolutions times the circumference and there is your rope length. You design the rest and the Arduino connection.
MorganS:
Is it being pulled over a roller or pulley so you can measure the number of rotations of the roller? A simple quadrature encoder will do this easily. US Digital make some really nice absolute encoders that will allow you to measure the rope down to fractions of a millimeter.
If it's being pulled past a window, perhaps the sensor out of an optical mouse can be used?
Hello, what do you mean with the US Digital encoder?
Is it possible to use a pulley with a potentiometer?
You can get pots that are continuous rotation, but as they rely on part making physical contact with another for resistance, I think you'd wear it out mechanically pretty quick. Encoders are meant to be turned continuously. Another option is a series of magnets around the spinning shaft/perimeter of pulley, and Hall sensors on the fixed frame.
8 magnets on one side, 8 on the other at the gaps of the first side, get 16 pulses per turn of the pulley. No mechanical parts to wear out.
Or a series of dark bands and optical light/dark detectors, could be even finer sensing, and can establish a zero point too.
Thank you for the helpfull answers. I am thinking about using a pulley and "rotary encoder module" to measure the position and rotations of the pulley. The only problem is the attachment of the encoder to the pulley.
Since the pin of the pulley is not turning around I have no idea how to connect it to eachother to measure reliable positioning of the pulley.
A rotary encoder puts out a series of pulses that your sketch must interpret as the pulley rotation.
I suggested a couple of ways to get pulses from the turning pulley.
dave-in-nj suggested another way to get one pulse per rotation.
CrossRoads:
A rotary encoder puts out a series of pulses that your sketch must interpret as the pulley rotation.
I suggested a couple of ways to get pulses from the turning pulley.
dave-in-nj suggested another way to get one pulse per rotation.
castel:
In this case the accuracy will be too low.
how are we to know ? you have not given us any clue as to what you need. is your project in need of 10 decimal places for a mm ? or do you need to know 'to the inch'
my friend, we have given you lots of ways to do this. each one can work. you have to pick one you like. shooting down ideas without details is of no help to anyone.
what if you put 2 dots ? double the resolution. 4 ? double it again, one at each spoke ? one in between each of those ?
ever hear of a pulley ? add a pulley, 3:1 and your wheel with dots spins 3 times faster, ergo, 3 times the resolution. I am well over 0.001 mm, but now you have to pull the rope really slow so the counter can keep up.
As previous posters have asked - what is the practical application for this, as that may help to drive the possible solutions?
I use this exact scenario to determine how much anchor line I have deployed on my boat when overnighting or fishing offshore, but I use a combination of a rotary encoder on a polyurethane roller and counter of how many milliseconds the anchor windlass motor was engaged in the down direction to do the counting
This gets me within a foot or so with ~500ft of anchor deployed which is more than perfectly acceptable, but I have a desired outcome and a solution to meet it.
dave-in-nj:
how are we to know ? you have not given us any clue as to what you need. is your project in need of 10 decimal places for a mm ? or do you need to know 'to the inch'
my friend, we have given you lots of ways to do this. each one can work. you have to pick one you like. shooting down ideas without details is of no help to anyone.
what if you put 2 dots ? double the resolution. 4 ? double it again, one at each spoke ? one in between each of those ?
ever hear of a pulley ? add a pulley, 3:1 and your wheel with dots spins 3 times faster, ergo, 3 times the resolution. I am well over 0.001 mm, but now you have to pull the rope really slow so the counter can keep up.
I am sorry, I am kind of new to Arduino! I'm not shooting down any ideas at all. Let me explain some more of the practical application:
A rope is being pulled out manualy with a pulley system to move some weights. the rope has a diameter of about 0,5cm. I need to know the amount of cord being pulled out at realtime. (resolution about 0,5). I have allready thinking about measuring the distance the weights move but that's improssible because of practical issues. So I wanted to measure the displacement of the rope by adding a pulley somewhere in the circuit atached to a rotary encoder in order to measure the displacement.
So, I hope you have an idea of the project now. If I use a rotary encoder, the rope has to be pulled out very slowly otherwise the encoder won't measure?
What units? Half a what -- meter, centimeter, milimeter?
If I use a rotary encoder, the rope has to be pulled out very slowly otherwise the encoder won't measure?
Rotary encoders are designed for motorized use and can be very fast. I doubt there is any way a manually pulled rope will turn a pulley too fast. The resolution will determined by the diameter on the pulley with the encoder, and the number of counts per revolution from the encoder. Slippage, as Paul_KD7HB points out will need to be controlled if you wish accurate measurement from pulley turns.
I thing the slippery could be avoided when the weight is heavy enough. Is that correct?
Yes. The amount of the weight, the texture of the rope and pulley, and the friction of the pulley axle , and the maximum acceleration of the pulls. I doubt it will be a problem in practice.