Now that you mention it, I'm at a bit of a loss to explain where
the micaz ADC code gets it's getData() from...but be assured that
it's there somewhere. Possibly in mica2/ADCREFM.nc. If you do a
"make micaz docs" you may get a diagram of the module interactions.
The fact that there is an ADC interface supplied someplace, and it
compiles, tends to indicate that the full set of functions exists.
Given the above what you need to do in Oscope is replace DemoSensor
with your ADC channel as I described in shorthand yesterday. PortF,
bit1 is ADC1, however that is the same channel that the DemoSensor
uses for Photo/Temp so in fact you probably don't need to make any
software changes to see it working.
My online code bolus has examples of ADC use which may/not be any
clearer than mud/DemoSensor:
http://www.etantdonnes.com/Motes/robocode.tar.gz
MS
Abdullah Kadri wrote:
Dear All,
I need to use oscilloscope application with my micaz mote. I want to use
one of the analog/digital converter ports of Atmega128L as an input for
analog signal. I’ve gone through the oscilloscope application and found
that I need to change some code. Please I want to know if my logic is
right or not:
The OscilloscopeM component uses ADC interface. This ADC is provided by
DemoSensorC component. I traced this interface to understand how
ADC.getData ( ) works and found that I need to specify the A/D port
which is “F1” from ATmega128L. The problem is that I am using micaz mote
which requires HPLADCM component and HPLADC interface for ADC
applications. The issue here is that there is no getData( ) command in
HPLADC interface. I am not able to find the link between using
ADC.getData( ) and the use of the micaz mote.
Thank you very much for any helpful comment on this.
Abdullah Kadri, P.Eng., Ph.D. Candidate
The University of Western Ontario
Department of Electrical and Computer Engineering
Phone: (519) 661-2111 ext. 81271
------------------------------------------------------------------------
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help