[Tinyos-help] ADC&MDA300

Antonio Prados Vilchez Centag71 at acciona.es
Thu Jun 19 14:39:50 PDT 2008


Hi TinyOS users!!

I'm using a MDA300 connected to a MICAz to measure a voltage from a sensor. I want to read from an ADC channel, so I'm using this command:

call Atm128AdcSingle.getData(ATM128_ADC_SNGL_ADC0, ATM128_ADC_VREF_AVCC, ATM128_ADC_RIGHT_ADJUST, ATM128_ADC_PRESCALE);

I want to read from channel 0 with Vcc as the reference voltage. However, I always get the same data from the ADC. I've checked the sensor and it works properly, it gives variable voltages to the MDA300. 

Am I using the right command to read from the ADC?

Thanks in advance
==============================================================
Este mensaje se dirige exclusivamente a su destinatario, y puede contener información confidencial sometida a secreto profesional, o cuya divulgación esté legalmente prohibida.Cualquier opinión en él contenida es exclusiva de su autor y no representa necesariamente la opinión de la empresa. Si ha recibido este mensaje por error, le rogamos nos lo comunique de forma inmediata por esta misma vía y proceda a su eliminación, así como a la de cualquier documento adjunto al mismo. El correo electrónico vía Internet no es seguro y no se puede garantizar que no haya errores ya que puede ser interceptado, modificado, perdido o destruido, o contener virus. Cualquier persona que se ponga en contacto con nosotros por correo electrónico se considerará que asume estos riesgos.

This e-mail is addressed exclusively to the recipient and may contain privileged information under a professional confidential agreement or it may be against the law to disclose its contents. Any opinion contained in it belongs exclusively to his/her author and does not necessarily reflect the company's view. If you receive this e-mail in error, please let us know immediately (by return e-mail) and proceed to its destruction, as well as any document attached to it. The sending of e-mails through the Internet is not safe and, therefore, error-free communications cannot be guaranteed, as they can be intercepted, changed, misled or destroyed or they might contain a virus. Any user contacting us through e-mails shall be understood to be assuming these risks.
==============================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080619/4079550b/attachment.htm 


More information about the Tinyos-help mailing list