Hi,
I need to measure the rotation speed of a spoked wheel.
As an alternative to a suitable sensor + arduino, I was considering using a webcam placed very close to the wheel and counting the frequency at which the spokes pass in front of the webcam.
Has any of you tried anything similar? Do you have any suggestions?
My naïf idea is that if a (natural or artificial) source of light is placed in front of the webcam, when the spoke passes in front of it, it will reduce considerably the brightness of the whole frame or of a big portion of it.
I'm looking for something simple: if this eventually leads to a complicated artificial vision task, or if a good calibration is difficult to achieve, then I would rather go for a tachometer and an arduino...
Thanks in advance m.
On Thu, 2010-09-02 at 17:54 +0200, Matteo Sisti Sette wrote:
Hi,
I need to measure the rotation speed of a spoked wheel.
As an alternative to a suitable sensor + arduino, I was considering using a webcam placed very close to the wheel and counting the frequency at which the spokes pass in front of the webcam.
Has any of you tried anything similar? Do you have any suggestions?
My naïf idea is that if a (natural or artificial) source of light is placed in front of the webcam, when the spoke passes in front of it, it will reduce considerably the brightness of the whole frame or of a big portion of it.
I'm looking for something simple: if this eventually leads to a complicated artificial vision task, or if a good calibration is difficult to achieve, then I would rather go for a tachometer and an arduino...
I don't think that using a camera for this is the best approach. It certainly depends on a few parameters like expected rate and such, how suitable a certain approach is, but using a camera - even if the expected rate is lower than the frame rate of the cam - adds a huge computational overhead. For rates close and above the fps it is even more difficult if not impossible.
The arduino approach is likely easier to implement, depending on what kind of sensors you can use. If you use a light barrier consisting of an LED and a light dependent resistor (LDR), you just need an additional resistor for building a voltage divider that can be directly hooked up to an analog input of the arduino.
You could do it even without using an arduino at all: hook up the resistor/LDR to your sound card input and use [dfreq~] from zexy to measure the rate. I think you can't get a more precise setup than this (by using the high sample rate of a common sound card). I once used that to measure the speed of a turntable.
Roman
On 09/02/2010 06:19 PM, Roman Haefeli wrote:
I don't think that using a camera for this is the best approach.
Yeah I didn't expect it to be, I just thought it might work :)
The arduino approach is likely easier to implement, depending on what kind of sensors you can use.
You could do it even without using an arduino at all: hook up the resistor/LDR to your sound card input and use [dfreq~] from zexy to measure the rate. I think you can't get a more precise setup than this (by using the high sample rate of a common sound card). I once used that to measure the speed of a turntable.
That's a great idea!!
I guess the same would apply to using a hall effect sensor, wouldn't it?
Thanks a lot m.
Hi Matteo, can't you mark one of the spokes or the wheel and setup the camera in a distance so that a blob tracker can cope with it? Then, it's fairly easy to measure something like the zero-crossing rate along one dimension x or y. gr~~~
Am 02.09.2010 um 17:54 schrieb Matteo Sisti Sette:
Hi,
I need to measure the rotation speed of a spoked wheel.
As an alternative to a suitable sensor + arduino, I was considering using a webcam placed very close to the wheel and counting the frequency at which the spokes pass in front of the webcam.
Has any of you tried anything similar? Do you have any suggestions?
My naïf idea is that if a (natural or artificial) source of light is placed in front of the webcam, when the spoke passes in front of it, it will reduce considerably the brightness of the whole frame or of a big portion of it.
I'm looking for something simple: if this eventually leads to a complicated artificial vision task, or if a good calibration is difficult to achieve, then I would rather go for a tachometer and an arduino...
Thanks in advance m.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 09/02/2010 06:52 PM, Thomas Grill wrote:
Hi Matteo, can't you mark one of the spokes or the wheel and setup the camera in a distance so that a blob tracker can cope with it? Then, it's fairly easy to measure something like the zero-crossing rate along one dimension x or y.
That would definitely work much better, but in my setup i don't think it will be possible to have the whole wheel visible from the camera at a distance without objects or people in between.
Thank you for the suggestion m.