Re: [Tinyos-help] VoltageM errors??

2006-04-27 Thread davisj2
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

Re: [Tinyos-help] VoltageM errors??

2006-04-27 Thread Michael Schippling
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

Re: [Tinyos-help] VoltageM errors??

2006-04-27 Thread davisj2
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

[Tinyos-help] VoltageM errors??

2006-04-26 Thread davisj2
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':

Re: [Tinyos-help] VoltageM errors??

2006-04-26 Thread Rahul Sawant
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