resonant Frequency
Brian Carpenter
Posts: 728
Hello all,
I have a project where i need the be able to measure the volume inside a box. The box could be nearly full or completely empty of dense objects. The box is sealed when it is closed. The idea is to use 2- 4" woofer speakers. one to generate a frequency and the other to listen.
Now, i have not done anything with sound and the prop as of yet. The way i understand it, i will use the first speaker to output a frequency (pitch). After sending out the signal, i will use the other speaker to listen frequency and measure its amplitude. I will cycle through several frequencies until i find the one that creates the greatest amplitude on the other speaker. If i understand correctly, the frequency that returns the highest amplitude will be the resonant frequency.
Provided the above statements are correct, here are my questions.
I think i can manage the generation of a frequency, but using the Propeller, how do i measure Amplitude of a frequency and compare to other samples?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
I have a project where i need the be able to measure the volume inside a box. The box could be nearly full or completely empty of dense objects. The box is sealed when it is closed. The idea is to use 2- 4" woofer speakers. one to generate a frequency and the other to listen.
Now, i have not done anything with sound and the prop as of yet. The way i understand it, i will use the first speaker to output a frequency (pitch). After sending out the signal, i will use the other speaker to listen frequency and measure its amplitude. I will cycle through several frequencies until i find the one that creates the greatest amplitude on the other speaker. If i understand correctly, the frequency that returns the highest amplitude will be the resonant frequency.
Provided the above statements are correct, here are my questions.
I think i can manage the generation of a frequency, but using the Propeller, how do i measure Amplitude of a frequency and compare to other samples?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
You actually could accomplish this with only one speaker by measuring the current through the speaker coil. As the frequency of the speaker signal approaches the resonant frequency of the box, it will take less and less energy to make the speaker vibrate at that frequency and the current will drop. This technique is commonly used to tune RF transmitters.
You would measure the output current by putting a small value resistor in series with the speaker and measuring the voltage across it. It's easiest to handle this if you arrange this resistor so one end is grounded. If it's not grounded, you will need an op-amp to take the voltage across the resistor and buffer and ground-reference the signal. Here's an application note: www.maxim-ic.com/appnotes.cfm/an_pk/746/.
Is the box moving on conveyor or stationary?
-Phil
@Phil
The box is stationary
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Why do you ask? What have you got in mind?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
That is why folk try to make speakers without any parallel sides. Nice irony to use parrallax though !
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
So, do i understand correctly, that the current for all frequencies except for the resonant frequency will be higher than the resonant?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
There are other ways to measure a box. I was thinking of doing it optically. For example, it could be done with a linescan sensor, like the TSL1401-DB I did for TAOS and Parallax. It's easier if the box is moving, though, since you can get the extra dimension via multiple scans triggered by an incremental encoder coupled to the conveyor.
Typically, the kinds of questions I ask for such an app would be:
1. What is the size range of the box (l,w,h)?
2. How accurate do you have to be?
3. How fast is the box moving?
4. What color is the box?
5. Can you control the lighting?
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
Could you please help me with a reference to a schematic. I am not understanding
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
If you already know the size of the box, the resonance could in principle help to decide if the box is full or not and full of what. Or, if you know the material, then resonance could help to find the size. But maybe not both confounded.
Another technique is to excite the resonant frequency with white noise (like ambient noise excites a seashell), and listen for the primary frequencies that are sustained. Or sweep quickly across the range of frequencies and listen for the sustained notes. That depends on having a high Q factor. (The number of cycles of sustain is roughly equal to the Q). I am thinking of vibrating wire sensors from GEOKON, which monitor the effect of pressure on the tension in a wire. A drive coil "plucks" the wire and then listens for the "guitar string" resonance. The Prop is a great match for those sensors.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Phil has a point here. You'll have to know your background noise and make sure your signal is discernible from the noise. The rumble of a conveyor, for example, might excite the box in ways unaccounted for by your measuring system. If the walls of the box are too thick, then the air inside might have little to do with how the box responds - instead, you'll just be measuring the box wall vibrations like the ringing of a bell. Much could depend on whether the contents are sometimes touching the walls or always setting only on the bottom, etc.
It sounds like a complex project. No pun intended.
-Phil
If i use the in series resistor approach and a 2 channel ADC. (see attached Drawing) Will the formula work?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
The material in the box will always be the same. And the Empty volume of the box will always be the same. The only variable is the quantity of material in the box
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.
Is the material in the box self-leveling, or will the shape of the empty space above the material be different with each one?
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Seems to me I read something recently about using laser speckle to measure acoustic response of vibrating surfaces. It's probably mind-blowingly complicated, but if such a thing works, maybe you could boom the box and watch its response using a laser???
just thinking out loud here at a quarter past midnight...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Watching the world pass me by, one photon at a time.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
Since the shape of the empty volume can vary so much, I have my doubts that measuring a single resonant frequency will give you much information. Imagine the complexities of the human vocal tract and the effect that shape has on the sounds it produces, and you'll get an idea of the problem's difficulty.
Is the box at all airtight? IOW, if you pumped a known volume of air into it, would it become pressurized?
Is the density of the stuff in the bags constant? Could you just weigh the box to determine it's percentage of fill?
-Phil
i am going to send you a email
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It's Only A Stupid Question If You Have Not Googled It First!!
This way of volume testing will take a lot of variables like temperature and materials types. If the system does get under way then it might be useful to have a lookup table of various known·loadings. If the load is very damping then any resonance would be stiffled and as already stated the placement pattern would effect everything.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com