[Tinyos-devel] how to implement a delayed ADC on MicaZ in
tinyos-2.x?
Razvan Musaloiu-E.
razvanm at cs.jhu.edu
Thu Jun 22 14:36:25 PDT 2006
Hi!
I was asking yesterday on the -help list how to implement a driver for a
device that needs to be power a certain time before the sampling takes
place. In case someone from here has time here is a more detailed
description of my problem.
Similar with the Photo and Temp sensors from basicsb I have a sensor that
uses a PW pin to get power and an ADC to provide the result. In my case I
have to wait some time between putting the PW on high and issuing the ADC.
What should be the correct way to this?
As far as I understand I cannot use the AdcReadClient because he is using
WireAdcP which in turn uses ArbitratedReadC that calls Resource.request
just before the read is issued and then calls Resource.release immediately
after the read is taken. A way to do want I want would be to produce a new
AdcReadClient and a new WireAdcP which uses a DelayedArbitredRead that
would implement my timing requirements based on a parameter. Is this the
right way to do what I want? :-)
[1] http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017401.html
--
Razvan ME
More information about the Tinyos-devel
mailing list