Hi Zainul Thanks a lot for replying. Actually I am giving the ADC a free run with prescalar set to 32. So I am expecting a sampling rate of 32 Khz so that even with the added delay of radio communication I should be getting >10Khz (which is my minimum requirement).
Also, I need some guidance on clustering... I want switch clusterheads once energy levels goes below a threshold. I think this is same as the LEACH protocol. Can you guide me with this ? Thanks a lot Akankshu On Sat, Nov 14, 2009 at 4:44 PM, Zainul M Charbiwala <zai...@ee.ucla.edu>wrote: > On Sat, Nov 14, 2009 at 12:29 PM, Akankshu Dhawan <akank...@gmail.com> > wrote: > > Hi All > > I am doing high sampling from the ADC on the MICAZ motes. and continously > > keeping count of values above a threshold. When I have 1000 values above > a > > threshold I want to send a broadcast message using the radio ? > > 1. I want to know will the mote be sampling simultaneously while > > transmitting and receiving ? (are the radio and ADC on the same stack ?? > > If No.. then I think I should be able to do it seamlessly... in case > > not...can someone tell me how long a transmission period is for MICAZ > for a > > standard packet size of 29 BYtes ??? and similarly about the receive > periods > > ?? > > A default sized packet on the MicaZ takes about 1ms (give or take a > little) to transmit, when the channel is available. > > The ADC is internal to the ATMEGA and the radio uses the SPI bus. The > number of samples you miss will depend on how your interrupt routines > are set up and how rapidly you are sampling the ADC. With low rate > rate sampling (<100Hz), you will not notice missed samples. Above > 100Hz, you will start missing interrupts during radio transmissions. > If you get to really high rate sampling (~500Hz), you will probably be > limited by the computation you can perform in real-time on the stream > of data. > > Zainul. > > > 2. Also, if the stack is the same and I have to actually loose some > sampling > > while Transmitting and receiving.. (since I want my nodes to be snooping > > more or less all the time) that might be a problem... can someone guide > me > > here... > > Thanks > > Akankshu > > > > -- > > 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 > > > -- 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