Professional Documents
Culture Documents
Prabal Dutta† , Mark Feldmeier‡ , Jay Taneja† , Joseph Paradiso‡ , and David Culler†
{prabal,taneja,culler}@cs.berkeley.edu {carboxyl,joep}@mit.edu
† ‡
Computer Science Division The Media Laboratory
University of California, Berkeley Massachusetts Institute of Technology
Berkeley, CA 94720 Cambridge, MA 02139
1. Contact Person: Prabal Dutta, +1 510 495 4932 (tel), +1 510 642 5775 (fax), prabal@cs.berkeley.edu.
3. An earlier version of this work appeared at IPSN’08 [1], which established the originality and distinguishing features of
the design. Since that time, the iCount design has been integrated into a number of new hardware and software systems,
which we would demonstate at ISLPED’08. Approval to submit this work to the ISLPED Design Contest was obtained
from Yu Cao on May 22, 2008.
4. “All appropriate organizational approvals for the publication of this paper have obtained. If accepted the author(s) will
select a designated speaker to present the paper at the Symposium.” /s/ Prabal K. Dutta
0.8 0.2
0 0.6 0
0 1 2 3 4 5 0.01 0.1 1 10 100 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5
INPUT VOLTAGE (V) LOAD CURRENT (mA) OUTPUT VOLTAGE (V)
MAX1722 toc08
MAX1722 toc07
We present iCount, a new energy meter design. For NO many
LOAD
systems that have a built-in1.0switching regulator, adding a ILX
500mA/div
single wire between the regulator and the microcontroller
Figure 3. The relationship between load current and a significant number five
process of arriving at this design point. Section 2 begins
of parts with the Design Library.
decades of precision calibration circuitry.
by decomposing and describing the two key elements of
the Xmote architecture, the module and the carrier. Sec-
sweet spot of the various contraposing design goals of
platform includes a TRIAC for AC current control and
the phases of sensor network application development.
This 2-layer PCB was created using the freeware Architecture Xmote core module for communication.
2 EA-
tion 3 describes the Xmote core module, which is essen-
switching frequency for several switchers, after bias GLE Layout Editor in less than two days and fabrica-
tially the guts of a mote without the constraints on how it At the heart of our building-block approach to sensor-
The primary sensor of this platform is an industry
can be used. It describes the internal subsystems, intro- net platforms are two architectural elements: the module
tion cost of $10.83 each at a quantity of 60 boards with standard IC that measures real, apparent, and reactive
ducing the key characteristics and revisiting part selec- and the carrier. Modules are self-contained systems or
compensation. Some switchers are more linear than a turnaround time of five days. The board took under power by using a manganin current sensing resistor.
tion with these in mind, looks at new alternatives since
the core was designed, discusses manufacturing and me-
subsystems in an integrated circuit (IC) package format.
They are themselves composed of one or more packaged
ICs plus other electronic components typically found on
two hours to populate. chanical considerations, provides a quantitative analysis
Though the AC electricity presents a convenient and
others (and sometimes over a wider dynamic range). Previous incarnations
interface
of core module performance, and outlines future direc-
of the iCount
WaterWatch { node were
a system board. Carriers are custom circuit board sub-
copious power source, careful attention is required to
tions. Section 4 describes a supporting cast of special-
ized peripheral modules that offer a catalog of options
strates that glue together general-purpose modules with
application-specific sensors, power supplies, and me-
built around a Telos family mote, resulting in a larger isolate the much higher mains voltage from the DC cir-
Plotted on a log-log scale. for high quality complete systems, and a framework for
forward going innovation. Section 5 explains our ap-
form factor (2X enclosure size), insufficient exposed
// Basic interface
chanical constraints. A sensornet platform constructed
using this building-block approach consists of at least
cuitry used for the Xmote core module and related com-
proach for prototyping using the Xmote family, allowing one module attached to at least one carrier board, as
GIO and ADC pins (some desired measurements could ponents. A standard approach is to use a transformer and
novice system builders to compose platforms using off- shown in Figure 1.
6 6
10 10
4 4
10 10
3 3
10 10
10
2
10
2 Vin = 1.0 V
Vin = 1.5 V
MAX1724 Vin = 2.0 V
1 1
10 TPS61020 10 Vin = 2.5 V
TPS61120 Vin = 3.0 V
0
TPS61200 0
Vin = 3.5 V
10 −7 −6 −5 −4 −3 −2 −1 0
10 −7 −6 −5 −4 −3 −2 −1 0
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
Load Current (A) Load Current (A)
Figure 6. The relationship between load current Figure 7. The relationship between input voltage
and switching frequency without bias compensa- and switching frequency. An order of magnitude
tion shows significant non-linearity after three to variation in switching frequency occurs as input
four decades. Plotted on a log-log scale. voltage goes from 1.0 V to 3.5 V. Plotted on a log-log
scale.
Frequency (Hz)
5
Raw Vin=2.5V
10 Fit 0.7
Vin=2.0V
10
3 Err Vin=1.5V
0.6
1
Resolution (μJ)
10
0.5
−1
10 −7 −6 −5 −4 −3 −2 −1 0
10 10 10 10 10 10 10 10
0.4
0.2
0.3
Relative Error
0.1
0.2
0
−0.1 0.1
−0.2 −7 −6 −5 −4 −3 −2 −1 0
0 −7 −6 −5 −4 −3 −2 −1 0
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
Current (A) Load Current (A)
Figure 8. The accuracy and relative error. The rel- Figure 9. The resolution varies with input voltage
ative error is less than ±20% over five decades of and load current and exhibits high non-linearities
current draw. Plotted on log-log and lin-log scales, at extreme load currents. Plotted on a lin-log scale.
respectively.
Overhead (A)
−5 G
10 B
I
−6
total LX
10
−7
10
−8
10
Signal
−6 −5 −4 −3 −2 −1 0
10 10 10 10 10 10 10
1
10
Iwire
Overhead (%)
0
10
Itotal
−1
10
−2
10
−3
10 −6 −5 −4 −3 −2 −1 0
10 10 10 10 10 10 10
Load Current (A) 0 0.25 0.5 0.75 1 1.25 1.5 1.75 2
Time (ms)
0.25 7625
Fraction of Samples
Frequency (Hz)
0.2 7600
0.15 7575
7550
0.1
7525
0.05
7500
0 0 24 48 72 96 120 144 168
84 84.5 85 85.5 86 Time (Hrs)
Instantaneous Frequency (1/dt, Hz)
Figure 12. Measurement precision is better than Figure 13. The system is stable. The range in varia-
±1.5%. The distribution of instantaneous (cycle- tion is ±1% of the mean over a one week period.
by-cycle) frequency measurements over a two sec-
ond window.
cal for everyday in situ use due to the cost of instruments,
their physical size, and their poor system integration. Of
Figure 12 shows the distribution of these frequency values course, dedicated power metering hardware can enable run-
(N = 167). The variations in the values are small, within time adaptation, but this approach results in increased hard-
±1.5%, so a small number of samples provides an accurate ware costs and power draws. In this work, we demonstrate
estimate of the near-instantaneous current. that energy metering is possible for free by simply counting
the cycles of a switching regulator.
3.7 Stability Our particular implementation exhibits a maximum error
of less than ±20% over five decades of current draw, a reso-
While precision characterizes the degree of mutual agree- lution exceeding 1 µJ, a read latency of 15 µs, and a power
ment among a series of individual measurements over the overhead that ranges from 1% when the node is in standby
short term, stability refers to the agreement of these readings to 0.01% when the node is active, for a typical workload.
over a much longer term. To evaluate the stability of our im- The basic iCount design requires only a pulse frequency
plementation, we loaded iCount with a fixed resistor and used modulated switching regulator and a microcontroller with an
a mote-based application to track the switching frequency externally-clocked counter. iCount enables practical, in situ
over a one week period. The measurement setup was placed energy metering for many systems which may not lend them-
near a window and experienced daily temperature variations selves to traditional instrumentation techniques. We show
of more than 10◦ C. Figure 13 illustrates how the switching that with the addition of a single wire, iCount enables a de-
frequency changed over the course of the week. The range in vice to introspect its own energy usage with virtually no cost
variation falls within ±1% of the mean. or energy overhead.
The data show both daily fluctuations in frequency as well
as a one-time “warmup” period. The daily variations may be References
due to temperature- or humidity-dependent changes in the in-
ductance or temperature-dependent changes in the measure- [1] P. Dutta, M. Feldmeier, J. Paradiso, and D. Culler. Energy me-
ment system (an uncalibrated 32 kHz crystal oscillator was tering for free: Augmenting switching regulators for real-time
used). The one-time warmup period may be an artifact of monitoring. In IPSN ’08: Proceedings of the 2008 Interna-
the experimental setup: the iCount system was located near tional Conference on Information Processing in Sensor Net-
a laptop computer that vented warm air. works (ipsn 2008), pages 283–294, 2008.
It might seem odd that our implementation exhibits a sta- [2] Maxim Integrated Products. 1.5uA IQ, Step-Up DC-
bility of ±1% over one week while only exhibiting a pre- DC Converters in Thin SOT23-5. http://datasheets.maxim-
ic.com/en/ds/MAX1722-MAX1724.pdf, July 2001.
cision of ±1.5% over a two second window. One plausible
[3] J. Polastre, R. Szewczyk, and D. Culler. Telos: Enabling
explanation is that for the precision measurements, we pre- ultra-low power research. In Proceedings of the 4th Interna-
sented the instantaneous (or cycle-by-cycle) frequency but tional Conference on Information Processing in Sensor Net-
for the stability measurements, we averaged over a one sec- works (IPSN ’05), Apr. 2005.
ond period. [4] Texas Instruments. Mixed signal microcontroller (rev. e).
http://www.ti.com/lit/gpn/msp430f1611, Aug. 2006.
4 Conclusion