Re: [Tinyos-help] VoltageM errors??
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
Re: [Tinyos-help] VoltageM errors??
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 ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] VoltageM errors??
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
Re: [Tinyos-help] VoltageM errors??
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 itreturns 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 `StdControl.start':C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: `TOS_ADC_VOLTAGE_PORT' undeclared (first use in this function) C:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: (Each undeclared identifier is reported only onceC:/tinyos/cygwin/opt/tinyos-1.x/tos/platform/mica2/VoltageM.nc:67: for each function 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 1Any ideas??? thanks so much- This mail sent through IMP: http://horde.org/imp/___Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help // $Id: Voltage.h,v 1.1 2005/03/16 05:12:29 jwhui Exp $ /* tab:2 * * * Copyright (c) 2000-2005 The Regents of the University of California. * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement is * hereby granted, provided that the above copyright notice, the following * two paragraphs and the author appear in all copies of this software. * * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS * ON AN AS IS BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * */ /** * @author Jonathan Hui [EMAIL PROTECTED] */ #ifndef __VOLTAGE_H__ #define __VOLTAGE_H__ enum { TOS_ADC_VOLTAGE_PORT = 7, TOSH_ACTUAL_VOLTAGE_PORT = 7, }; #endif ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help