[Tinyos-help] Sampling with MDA320 in 1.x...
Matthew S. Nassr
mnassr at lanl.gov
Tue Oct 3 09:39:43 PDT 2006
I think the 320 is the same basic setup as with the 300. For some
reason, I am getting junk values, even when trying different boards. I
assume that the MDA doesn't need to be externally powered, and
ADC.getData will return a 16bit value 0-65355 corresponding to 0-2.5V.
It really seems simple to wire to the ADC control and read from port 0,
but I just get values ranging from 0x0130 to 0x01FF which makes it seem
like something is not connected properly or there is a power issue.
I am looking for an example of code (preferably sampling at 100Hz or so)
which can read from ADC[X]. I want it to be in 1.x rather than 2.x
because from what I have read, reading the ADC changed in 2.x. Or, of
course, any suggestions on my sources of error would be appreciated.
-Matthew Nassr
--
Matthew S. Nassr <mnassr at lanl.gov>
More information about the Tinyos-help
mailing list