Akankshu,
As for your Question #1, there is an AlarmMicro32C it's just in the
tos.platforms.mica.AlarmMicro32C directory.
For Question #2, I haven't looked closely at the SoundLocalizer program,
it basically samples the ADC as fast as possible. When it detects that
the current sample is greater than the threshold it will start the next
phase of the algorithm. I've glanced at the code, and it isn't storing
the samples, it simply checks them as it samples then discards the
result if it doesn't exceed the threshold. The ADC may be capable of
sampling at 38kHz, but it all depends on how fast tinyos is able to fire
off the alarm and process each signal. This may be vastly different
from the theoretical maximum of the ADC.
I don't know exactly what you are trying to do, but it would be possible
to have a circular buffer and store the last x ADC samples. But take
note that your available RAM is generally very low on the micaz. One
other note is that it appears to be taking very coarse grained ADC
samples, so there is a lot of loss in precision with the sound localizer
program. Its intent however was simply detecting the node closest to
the event, so the precision wasn't needed.
-Paul
Akankshu Dhawan wrote:
Hi
I was trying to get high sampling from the MICAZ motes and MTS310CB
sensorboard by using some ideas from the SoundLocalizer in
tinyos-2.x-contrib (Also part of tinyos programming)
I would be really grateful to anyone who can help me with some
questions that I had run into
1. This is suppose to be comptabile to MICAZ motes but there is not
AlarmMicro32c in the platforms directory for MICAZ ?
2. Considering that the detector fires continuously and the ADC
samples at around 38 KHz, is each data element being compared to the
threshol value ?
Is there a way I can store this in some sort of a Buffer ? If I keep
adding the data into the buffer and overwrite it when full I should be
able to create a circular buffer. Please correct me if I am wrong ?
I would really appreciate if anyone can help me with this
Thanks
Akankshu Dhawan
--
First they ignore you, then they laugh at you, then they fight you,
then you win.
- Mahatma Gandhi
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help