Speed Finder
Hello,
I'm a Senior in mechanical engineering at the University of Kansas. I'm in a class called microprocessors and we have to come up with a final project. My final project for this class is a bowling ball will be thrown down a lane and the processor will have to read its speed. I just need to know what I would need to order from your website. I know I need a ultra sonic range finder and EEPROM to store the data, but what else would I need. Another requirement for this project is having an D/A or A/D converter. I have already bought the basic stamp 2 starter kit from you guys. I can figure how to set it all up, I just need help on what items i would need. If you can just let me know, I would really appreciate it.
Thanks
Jake
I'm a Senior in mechanical engineering at the University of Kansas. I'm in a class called microprocessors and we have to come up with a final project. My final project for this class is a bowling ball will be thrown down a lane and the processor will have to read its speed. I just need to know what I would need to order from your website. I know I need a ultra sonic range finder and EEPROM to store the data, but what else would I need. Another requirement for this project is having an D/A or A/D converter. I have already bought the basic stamp 2 starter kit from you guys. I can figure how to set it all up, I just need help on what items i would need. If you can just let me know, I would really appreciate it.
Thanks
Jake
Comments
An easier solution, however, would be to have two points that the bowling ball passes. Since you know the (constant) distance between the points you simply have to time how long it takes the ball to pass between the points and the you can calculate the speed. For this dection you can use modulated IR beams, a light cell and lasers, or some other beam type solution.
-Phil
As an aside, there are inexpensive radar guns used to measure baseball and Hot Wheels car speeds:
http://www.ebay.com/itm/Hot-Wheels-Toy-Radar-Gun-/190607253638?pt=Diecast_Vehicles&hash=item2c6113e086
http://www.ebay.com/itm/BUSHNELL-CITATION-X-RADAR-SPEED-GUN-Nice-No-Reserve-/150708401162?pt=LH_DefaultDomain_0&hash=item2316ebb40a
PS: check this older thread which popped up again today: http://forums.parallax.com/showthread.php?121902-X-band-motion-detector-as-a-quot-speed-gun-quot
I first had that as my initial design but don't you have to worry about telemetry?
What does a Sharp IR detector do? I have never heard of one of those
So you think this is the best option? I feel like my professor would think of this of being easy, but I could be wrong. If I do go this way, will i still be able to use a A/D or D/A converter?
As for whether or not it is easy, well it may be. But that's because this class of problems has been solved many times before.
Only if you want the data in real-time. My thought was to record it in EEPROM or flash and download it after the fact.
-Phil
Thank you erco - no need to leave Parallax for this one SRLM!
It would be the current GP2Y0A21YK0F:
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/Sharp/List/0/SortField/4/ProductID/776/Default.aspx
I was thinking of the long range IR sensor, which Parallax doesn't carry: http://www.acroname.com/robotics/parts/R316-GP2Y0A710YK.html
The principles and code are exactly the same however.
As a side note, if you know the diameter of the ball you can calculate the speed by using a single beam across the lane and timing how long the beam is broken.
An important question to ask is which speed do you want to measure: the speed of the ball in one dimension going down the lane, or the absolute speed of the ball WRT the lane (it could be going diagonally, which adds a dimension to consider).
- 2 IR beams
- What A/D converter would I need?
- To make the project nicer, I might get a LCD to show the speed of it
Is that all I would need to buy since I already have the basic stamp?Thank you everybody for your help, I really appreciate it.
That's gold, SLRM! Great concept. I think all bowling balls are the same diameter. Break one laser beam shining across the lane into a phototransistor, all mounted one ball radius AGL to hit the ball's max diameter. Measure the duration of the broken beam (PULSIN) and that's the time to move one ball diameter. Solved, no RCtime, no ADC required. Just use the Stamp's high/low transition voltage of 1.4V.
I would be more tempted to use a sensor with an analog output, and a non-modulated beam. That way, you can record both the ball's passing and any 60Hz ambient lighting that intrudes on the sensor. By subtracting a phase-locked version of the ambient light record, the leading and trailing edge locations of the ball can determined more accurately from the analog record.
-Phil
So our new friend is free to use the SLRM method for measurement, and get extra creative points for using a DAC to display the output. He could for instance, PWM an output which would be displayed on a big ol' analog voltmeter, calibrated for speed.
It ain't da destination, it's da journey!
-Phil
- two - Sharp IR Sensor
- two - ADC0831
- Do i need one EEPROM or two
I will use two sharp IR sensor and just time the difference between them and i'll know the distance between them to find the speed.Thanks for all your help guys.
Jake
First, if you use the sharp IRs in that configuration make sure to spead them far apart since they aren't very fast (~25Hz, using 39ms update period)
Secondly, why are you using those ADC chips? They seem rather complex for a simple use, and in any case you can use an RC time circuit (which is an ADC).
I don't know why you would need an EEPROM. The BS2 has onboard EEPROM that you could use, but how much (and what) data do you want to store?
There would be some variable data to average out for how far people throw the ball before it lands.
I just wanted to put an "out-of-the-box" idea out there using different input. Of course this wouldn't work in a noisy bowling alley. You'd have to be alone.
Perhaps putting something in the ball for an impact sensor to get the two points.
This is just another idea, but how much could video be analyzed? Like setting up a camera a specific height and distance focused on the 1 pin. Then the ball rolling could be isolated and speed determined. I don't know where ADC would come in with video.
-jim
I'm not sure if this code is completely correct, I have just been programming in Python for a few hours, so I'm still trying to remember if this would work in PBASIC... but anyway, hope this helps, and feel free to ask questions!
-John