We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Build an acoustic radar with Processing. Possible
Page Index Toggle Pages: 1
Build an acoustic radar with Processing. Possible? (Read 1949 times)
Build an acoustic radar with Processing. Possible?
Mar 14th, 2010, 1:48pm
 
Hello!
I'm completely new to this community and Processing.
Processing is very interesting for me and I was trying to find a cause to learn Processing for a long time.
Now I have to solve some application-oriented task - build acoustic radar based on phase method of location.
I want to know, if I can use Processing for that purpose.

Task in details
Program should:
1. stream to line out a harmonic signal with some fixed frequency;
2. simultaneously with previous task get signals from 2 microphones connected to line in L and line in R;
3. compare instant phases of these two signals (there will be some simple arithmetic/trigonometric operations);
4. display calculated position of the source on some plot. Maybe, display fragments of input signals.

This task can be solved with Matlab's Data acquisition toolbox, AFAIK (I haven't dig on this yet). But I know exactly, that this toolbox isn't avaliable on Linux.
Also I want to learn Processing, but I have no any experience with C-like languages. So I'm afraid of wasting my time on learning new language without any result in near future. That's why I need your help and suggestions.

Is Processing capable to solve my task?
Is Processing an effective solution for this or it is better to use Matlab?
How long approximately does it take to learn Processing?

Thank you in advance for your replies!

P.S. Sorry for my mistakes if any. English is not my native language.
Re: Build an acoustic radar with Processing. Possible?
Reply #1 - Mar 14th, 2010, 5:28pm
 
I think with Minim http://code.compartmental.net/tools/minim/ you could get pretty far with this using Processing. In effect I hear you saying you are creating a scope. If you could tune the scope to show a "standing wave" of what your sound should look like, then compare that to what the microphones are actually hearing, that would be interesting to see.  see also http://www.openprocessing.org/visuals/?visualID=3257
Re: Build an acoustic radar with Processing. Possible?
Reply #2 - Mar 15th, 2010, 8:56am
 
Completely ignoring the details of your post, by "acoustic radar" do you mean "sonar"?

Smiley

-spxl
Re: Build an acoustic radar with Processing. Possible?
Reply #3 - Mar 15th, 2010, 2:07pm
 
i thought that too about sonar, i've known of some robot people that use sonar a lot, it is more clicking rather than a constant tone from what i remember
Re: Build an acoustic radar with Processing. Possible?
Reply #4 - Mar 16th, 2010, 6:31am
 
I don't know English very well, but I believe, by saying "sonar" we mean echo-location, i.e. emitting signal and receiving it's reflection from some object. This is active location.

But I have to build system of passive location, i.e. receiving emission from object with 2 microphones.

But now I know, that Matlab is a hard requirement. So I can't avoid using it.
However, I will make the same system with Processing. Just for fun.

added later:
And as for clicking - it is a transient process. Emitting element is actuated by short square pulses with harmonic fill; can't describe it with words, because of my English:
x=E(t+T) * ( 1 - E(t-(tau+T)) ) * sin(n*2*pi*1/tau),
where t - time, T - period, tau - impulse width, n - some integer, E(t) - Heaviside function.
Re: Build an acoustic radar with Processing. Possible?
Reply #5 - Mar 21st, 2010, 12:43pm
 
What are you trying to achieve withis this sonar as there are existing deveices such as the maxbotixMB1200__XL-MaxSonar-EZ0 that will provide ultrasonic range finding for a low cost £28, E30, $40.  These work well with the arduino hardware controller and provide a quick and easy interface.

Re: Build an acoustic radar with Processing. Possible?
Reply #6 - Mar 23rd, 2010, 1:15pm
 
RichardB-D wrote on Mar 21st, 2010, 12:43pm:
What are you trying to achieve withis this sonar as there are existing deveices such as the maxbotixMB1200__XL-MaxSonar-EZ0 that will provide ultrasonic range finding for a low cost £28, E30, $40.  These work well with the arduino hardware controller and provide a quick and easy interface.


Sorry for late reply at first. I haven't received notification.
I don't need existing device. Me and my teacher in university trying to make a new laboratory course for students.
So the goal is to provide students with a system, which they will be able to study, modify, experiment with it.
And my personal goal is to gain experience during this work.

Thank you for reply though Wink
Page Index Toggle Pages: 1