Hi! It should be between 0 and 1023, because the ADC is 10-bit on the IRIS. Either there is a problem in the driver that return the uint16_t value, or you have a problem in your application. You should toggle an LED if the uint16_t value in readDone is larger than 1024.
Miklos On Wed, Jul 28, 2010 at 3:18 PM, Francesco Ficarola <[email protected]> wrote: > Good morning. > > I wrote a simple application to read ADC Value. > Hardware: MIB520 + Iris XM2110 + MDA300CA. > > In my application I put a "printf" with my "uint16_t adc_value" from > readDone event. The problem is the range of the values; with java > net.tinyos.tools.PrintfClient I read a value from 768 to 62295 (it can > vary because I connect a potenziometer between Vcc and GND), but it > should be 0-4096, as in the datasheet. Why? > > Greetings, > -- > Francesco Ficarola <francesco.ficarola_at_gmail_dot_com> > Presidente LUG-PV (http://lugpv.netsons.org) > Mailing List: lugpv_at_lists.linux_dot_it > > [GPG KeyID: 0xDBA99D92] > http://lugpv.netsons.org/gpgkeys/francesco_ficarola.asc > > Il nuovo modo di fare ricerca: www.tradoogle.it > > > _______________________________________________ > 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
