Hello all, i am new to the Arduino world. I've been assigned to a project, that has to do with length measurement. What i really want is to design something to count the length of a rope that is on a plastic reel. is there a sensor that the rope can go through a custom wheel, and then base on the wheel perimeter, count the length of the rope?
Any guidance is much appreciated
I remember a science programme on TV a while back, about an immediate-post-Soviet research station in Antarctica, taking ice core samples from great depth in the ice-cap.
The cable attached to sampler passed over a pulley, where a simple switch was pressed each revolution by a peg attached to the pulley.
The switch was wired across the '=' key of a cheap, off-the-shelf calculator!
Yes. This is a very nice simple project for a new Arduino user. There are many ways to detect when the custom wheel has made a rotation. The simplest would be a momentary contact switch that is activated by something protruding from the wheel. The rest is simple math. Depending on the method you choose to detect a rotation, you may have to consider contact bounce. - Scotty
AWOL:
where a simple switch was pressed each revolution by a peg attached to the pulley.
The switch was wired across the '=' key of a cheap, off-the-shelf calculator!
I thought about this, but i have a problem with this concept. Based on your example they could measure the depth. What if i want to know how much line is left until i get the ice samples when the ice sample is on its way to the surface
What if i want to know how much line is left until i get the ice samples when the ice sample is on its way to the surface
If you can count the outgoing rope you can count the incoming rope. At most you need a method of knowing which way the rope is going. Are you controlling the rope or just measuring?
Actually the application is a little bit different. We have several large reels with different diameters of rope. We have ro cut the rope as long as customer wants.
So what i want to do is to
1: count the rope on the reel by reeling out the line
2: re count the rope by reeling in (just to make sure reading 1 was correct)
3: measure 100 feet and cut.
4: measure 150 feet and cut
5: substract 250 feet from average of 1 and 2 so we know how much rope is left on the reel
The only way I can see to do that is as AWOL said, run the rope over a pulley and count the revolutions. If there are several ropes and the reels are next to each other you could have several pulleys all fixed to an axle and an encoder (real or home-made with a switch) on the end of the axle. Then calibrate for each rope size.
The only problem I think is that with no load on the rope you could get slippage, maybe some sort of spring-loaded idler wheel to keep pressure on the rope and pulley.
Rather than count revolutions, which give you low precision, put a rotary optical encoder on a shaft with a rubber cylinder that presses against the rope and another cylinder, not necessarily rubber. The diameter of the rubber cylinder can be large, to handle all sizes of ropes.
For each revolution the encoder puts out multiple pulses, which your arduino counts.
Use an interrupt routine that triggers on any type of encoder pulse, determines the direction up or down, and modifies a variable called Length.
Your main loop can read a button and reset Length, display Length on an lcd panel, or even read a keypad preset and then set a light or beep when it goes down to zero.
These encoders are slightly expensive. I would not use the $10 detent-type encoders popularly used for user knob input with Arduinos.
If this is a onesy project, there are some bargains on ebay. (Like 280873016907 )
Previously I would just weigh the reel to find out how much product was left on it.
Looking at the resolution of TOF sensors now, I could envision one of those measuring into the reel to determine the distance away actual product was inside the reel and making a fairly good estimation of remaining length based on a good math formula.