MS, Thank you, yes that makes sense. However im looking for an end result of the actual battery voltage as it drops, not a reference value to infer the voltage. I was hoping that VoltageM supplied the actual voltage in either Volts, or MV.
Thanks again. Josh Quoting Michael Schippling <[EMAIL PROTECTED]>: > The VoltageC return value increases as the battery decreases because > the ADC is reading a fixed value (the Bandgap ref) and comparing it > to the ADC Reference which is the battery voltage itself. So as the > ADCref (battery) drops, the value of the fixed BGref appears to increase. > > Did that make sense, semantically at least? > > MS > > > [EMAIL PROTECTED] wrote: > > Rahul, > > Thanks, I have used VOltageC. But as I have read, I think that VoltageM > > returns the value as a direct reference, of mv, VoltageC does not. Was > just > > thinking this was a better implementation of obtaining the voltage values. > The > > current conversion I have for VoltageC returns values that increase as the > > battery dies, this is wierd.... > > > > Thanks. > > Josh > > > > Quoting Rahul Sawant <[EMAIL PROTECTED]>: > > > >> Hi > >> r u using VoltageC from tos/system if not use this as this is the > >> configuration for VoltageM and it includes voltage.h > >> if ur using VoltageC then It seems like you dont have the voltage.h file > in > >> tos/platform/mica2 if u dont just download the attached file > >> > >> Rahul Sawant > >> > >> > >> On 4/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>> Hey all, > >>> IM trying to use the VoltageM component with mica2 tinyos-1.1.15, as it > >>> returns the actually voltage in mv. However, when I compile i get these > >>> errors: > >>> > >>> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc: In > >>> function `Std > >>> Control.start': > >>> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: > >>> `TOS_ADC_VOLT > >>> AGE_PORT' undeclared (first use in this function) > >>> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: (Each > >>> undecla > >>> red identifier is reported only once > >>> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: for > >>> each func > >>> tion it appears in.) > >>> C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:68: > >>> `TOSH_ACTUAL_ > >>> VOLTAGE_PORT' undeclared (first use in this function) > >>> make: *** [exe0] Error 1 > >>> > >>> > >>> Any ideas??? thanks so much > >>> > >>> ------------------------------------------------- > >>> This mail sent through IMP: http://horde.org/imp/ > >>> _______________________________________________ > >>> Tinyos-help mailing list > >>> Tinyos-help@Millennium.Berkeley.EDU > >>> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > >>> > > > > > > > > > > ------------------------------------------------- > > This mail sent through IMP: http://horde.org/imp/ > > _______________________________________________ > > Tinyos-help mailing list > > Tinyos-help@Millennium.Berkeley.EDU > > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ _______________________________________________ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help