View Full Version : Counting number of turns
mstfldmr
07-02-2014, 06:37
Hello,
how can we count the number of dc motor turns with the allowed parts?
chi-town-biker
07-02-2014, 07:28
Use an encoder.
Something like this:
http://www.andymark.com/product-p/am-0180.htm
mstfldmr
07-02-2014, 07:43
we don't have them. and we don't have time to order them from US. any other suggestions?
we don't have them. and we don't have time to order them from US. any other suggestions?
Do you have a string potentiometer?
mstfldmr
07-02-2014, 08:47
Do you have a string potentiometer?
is it different than a regular potentiometer?
Chadfrom308
07-02-2014, 08:55
What is turning? Wheels? Warm drive? Arm?
Try to get your hands on an encoder or gear tooth sensor (hall effect sensor) (Pretty much the same as an encoder)
Potentiometers normally go only 1-10 turns, encoders dont have a limit.
Pranit T
07-02-2014, 08:58
If you have a light sensor/photoreflective sensor, you can put a pulley in front of it, and paint it half white and half black. Connect the pulley to the motor. You can now track the number of times the motor rotates based on the number of times the light sensor counts it sees the white or black pass by.
You can fine tune this by adding more sections of black/white rather than just one of each colour. We did this on our 2009 bot to tune the PID for the shooting wheel.
is it different than a regular potentiometer?
Yes, it measures distance by the unraveling of a string around a spool. I was going to suggest that you could wrap the string around whatever you are counting the rotations of and use the circumference of the "wheel" to figure out the number of rotations, but it would only work if the rotating object only has to rotate a small number of times like a winch and it cannot rotate very fast. I have never seen this on a robot, but it could work I suppose. Could you reveal what this would be used for?
http://www.andymark.com/product-p/am-2618.htm
chi-town-biker
07-02-2014, 10:08
Digikey in Turkey sells many types of encoders but not made by US Digital. Maybe someone can find a comparable model. I'm not sure I can match all the specs.
DjScribbles
07-02-2014, 10:14
It depends on what your purpose is:
As others have suggested, the standard approach in many cases is encoders; there are other types available as well, there were some magnetic encoders in First choice this year, and I found a few of these (http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CCgQFjAB&url=http%3A%2F%2Fwww.ams.com%2Feng%2FProducts%2FPo sition-Sensors%2FRotary-Magnetic-Position-Sensors%2FAS5130&ei=GvX0Uv6ZH6G2yAGj3YGIBg&usg=AFQjCNH5hRofqyJ0NurW1fGpud3XzeCV2A&sig2=PFamWuQhHJjXGueU5NAJ8w&bvm=bv.60799247,d.aWc) in our electronics boxes (we didn't order them that I know of, so they may have come in the kit this year or last), which if you can get them sourced from the EU may be much easier to get.
If you are measuring wheel speed, you can also build a hall effect sensor quite easily with some magnets, a few discrete electical components and one latching hall effect sensor like this (https://www.sparkfun.com/products/9312) (see the datasheet on sparkfun and build the typical 3-wire circuit). These work well in high velocity measurements like a shooter wheel, but not for high precision stuff like drive trains or arms where a single revolution is a big movement.
If you need to control the position of an arm, a simple potentiometer (ideally one with 10Kohms of resistance, definitely more than 1Kohm), the poteniometer can tell you the exact position of an object (you need to convert the voltage to degrees manually though) but they aren't typically built to withstand high speeds (even continuous potentiometers would not be a good idea for anything that spins over a 120rpm or so)
Tem1514 Mentor
07-02-2014, 10:36
If you have been around since Logomotion the line tracking sensors will work to give you a simple rotation feedback for a 'slow moving' shaft.
You could also try using the encoders inside an the older style 'ball' mouse. But this will take a little bit of electronic work on your part to interface it to the digital sidecar.
tr6scott
07-02-2014, 11:00
If you have been around since Logomotion the line tracking sensors will work to give you a simple rotation feedback for a 'slow moving' shaft.
I guess that depends on your definition of slow... Our frisbee shooter wheel ran at 3600 RPM direct coupled to CIM, with essentially the same photoeye from Banner as the AB line trackers. We also had three reflectors per revolution, to increase the "encoder" ticks. The cRio handles these speeds without issue.
http://www.chiefdelphi.com/forums/showthread.php?t=105965
Edit: found the line tracker part number was/is 42EF-D1MNAK-A2 looking up the data sheet from AB shows a 1ms response time. For round numbers, say you only want to push it to 1 Rev per 5ms that still gets you to 12,000 RPM range.
We accurately recorded 5000rpm with 3 pulses per rev last year using the encoder class, last year with the banner sensor.
BBray_T1296
07-02-2014, 11:03
Yes, it measures distance by the unraveling of a string around a spool. I was going to suggest that you could wrap the string around whatever you are counting the rotations of and use the circumference of the "wheel" to figure out the number of rotations, but it would only work if the rotating object only has to rotate a small number of times like a winch and it cannot rotate very fast. I have never seen this on a robot, but it could work I suppose. Could you reveal what this would be used for?
http://www.andymark.com/product-p/am-2618.htm
I know Team 2468 used the Andymark String Pot last year to measure their shooter height. It was quite ingenious.
Abhishek R
07-02-2014, 11:16
If you have a light sensor/photoreflective sensor, you can put a pulley in front of it, and paint it half white and half black. Connect the pulley to the motor. You can now track the number of times the motor rotates based on the number of times the light sensor counts it sees the white or black pass by.
You can fine tune this by adding more sections of black/white rather than just one of each colour. We did this on our 2009 bot to tune the PID for the shooting wheel.
This works quite well. We used it in both 2012 and 2013 for our shooter wheels.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.