thank you both for the clues!
-unfortunately the vu soundrecorder files did not compile for the micaz platform (even after some searching and makefile magic ;))
-I was aware of the HFS-code in the tinyos/apps dir, but again this won't compile for micaz (the timer1 problem)
However, I was inspired by the example code and now I use the ADCMic.getContinuousData() together with SysTimeC for calculating the time when the sounder is detected.
- Is SysTimeC good (for the micaz)? (I tried the Time interface (in combination with LogicalTime) but that gives me sometimes 0 as result)
- What is the unit of the time-ticks? I always get values (when doing finishtime - startTime) in the order of thousands (e.g. 3000). What do these values mean? Are they microseconds? (sorry it's not clear to me...)
greetz,
robin
Robin,
Miklos Maroti wrote a sound recorder app like two years ago that samples the microphone on the micasb at around 16Khz. Check out contib/vu/apps/SoundRecorder. Be sure to read the text file in that directory, as well as the readme file un countrib/vu on how to compile the application.
Janos
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of R Gartz
Sent: Saturday, March 25, 2006 7:23 PM
To: [email protected]
Subject: [Tinyos-help] sampling speed
Hello,
I want to sample the microphone as fast as possible on the micasb sensorboard (for a ranging application).
How can I do that?
When I use a Timer which fires each tick, it fails to detect the sounder... (setting it at higher values yields in a large loss of precision)
(I posted a question about MicInterrupt before on this mailing list (concerning MicInterrupt that fires only once when my micaz nodes boot), but I haven't been able to find a solution for it...)
greetings,
robin
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
