<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="http://currentcost.wetpaint.com/xsl/rss2html.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://currentcost.wetpaint.com/scripts/wpcss/wiki/currentcost/skin/autumnfire/rss" type="text/css" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Current Cost - Recently Updated Pages</title><link>http://currentcost.wetpaint.com/pageSearch/updated</link><description>Recently Updated Pages on http://currentcost.wetpaint.com</description><language>en-us</language><webMaster>info@wetpaint.com</webMaster><pubDate>Sun, 08 Nov 2009 21:42:26 CST</pubDate><lastBuildDate>Sun, 08 Nov 2009 21:42:26 CST</lastBuildDate><generator>wetpaint.com</generator><ttl>60</ttl><image><title>Current Cost</title><url>http://www.wetpaint.com/img/logo.gif</url><link>http://currentcost.wetpaint.com</link><description>Current Cost home power meters</description></image><item><title>Perl Daemon</title><link>http://currentcost.wetpaint.com/page/Perl+Daemon</link><author>dsc68</author><guid isPermaLink="false">http://currentcost.wetpaint.com/page/Perl+Daemon</guid><pubDate>Sun, 08 Nov 2009 21:42:26 CST</pubDate><description>Here is a Perl based daemon that reads data from a CurrentCost meter and loads it into an RRD database based on Paul Mutton&amp;#39;s RRD configuration &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://www.jibble.org/currentcost/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;detailed here.&quot;&gt;detailed here.&lt;/a&gt; Works with both serial and USB devices.&lt;br&gt;&lt;br&gt;#!/usr/bin/perl -w&lt;br&gt;&lt;br&gt;## Reads data from a Current Cost device via serial port.&lt;br&gt;&lt;br&gt;use Getopt::Std;&lt;br&gt;use Proc::Daemon;&lt;br&gt;&lt;br&gt;use XML::Simple;&lt;br&gt;use Data::Dumper;&lt;br&gt;use RRDs;&lt;br&gt;&lt;br&gt;sub usage {&lt;br&gt; print &amp;quot;\ncurrentcostd.pl - CurrentCost Daemon\n&amp;quot;;&lt;br&gt; print &amp;quot;Reads data from a CurrentCost meter and populates an RRD database\n\n&amp;quot;;&lt;br&gt; print &amp;quot;Options:\n&amp;quot;;&lt;br&gt; print &amp;quot; -d - Debug mode. Does not daemonise and echos data to console.\n&amp;quot;;&lt;br&gt; print &amp;quot; -r - RRD database to populate (required).\n&amp;quot;;&lt;br&gt; print &amp;quot; -i - Input device to read CurrentCost data from (required).\n&amp;quot;;&lt;br&gt; exit;&lt;br&gt;}&lt;br&gt;&lt;br&gt;getopt(&amp;#39;ir&amp;#39;);&lt;br&gt;&lt;br&gt;$opt_i or usage();&lt;br&gt;$opt_r or usage();&lt;br&gt;&lt;br&gt;-r &amp;quot;$opt_i&amp;quot; or die &amp;quot;Unable to open input $opt_i\n&amp;quot;;&lt;br&gt;-w &amp;quot;$opt_r&amp;quot; or die &amp;quot;Unable to open RRD file $opt_r\n&amp;quot;;&lt;br&gt;&lt;br&gt;if (!$opt_d) {&lt;br&gt; Proc::Daemon::Init;&lt;br&gt;}&lt;br&gt;&lt;br&gt;open (INPUT, $opt_i) or die &amp;quot;Unable to open input: $!\n&amp;quot;;&lt;br&gt;&lt;br&gt;while (&amp;lt;INPUT&amp;gt;) {&lt;br&gt;&lt;br&gt; if (/&amp;lt;ch1&amp;gt;/) {&lt;br&gt; my $data = XMLin($_);&lt;br&gt; if ($opt_d) { print Dumper($data); }&lt;br&gt; RRDs::update(&amp;quot;$opt_r&amp;quot;, &amp;quot;N:&amp;quot;.$data-&amp;gt;{ch1}-&amp;gt;{watts});&lt;br&gt; }&lt;br&gt;}&lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Current Cost Cable</title><link>http://currentcost.wetpaint.com/page/Current+Cost+Cable</link><author>Anonymous</author><guid isPermaLink="false">http://currentcost.wetpaint.com/page/Current+Cost+Cable</guid><pubDate>Tue, 20 Oct 2009 07:50:15 CDT</pubDate><description>&lt;div class=&quot;box wikistyle&quot;&gt;  &lt;h2&gt;  The port&lt;/h2&gt;  &lt;div&gt;The port on the back of the Current Cost is an RJ-45, the same as an ethernet port, but it won&amp;#39;t simply connect to another ethernet device - you need a smarter cable. &lt;/div&gt;  &lt;h2&gt;  The cable&lt;/h2&gt;  &lt;div&gt;Every six seconds the Current Cost outputs XML along a cable plugged into the RJ45 port as TTL-level serial data at 9600 baud working at 3.3 volts. Through some simple manipulations TTL data can be converted into RS232-compatible data. This means that we need an RJ-45 to serial cable. Once we have that, we can plug it into a normal serial-USB cable and use it anywhere that accepts USB. Hooray! You can &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://www.spaaace.com/cope/?p=106&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;order the RJ-45 to serial cable from Current Cost themselves&lt;/a&gt; or you can &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://e.inste.in/2008/06/15/interfacing-the-currentcost-meter-to-your-pc/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;set about building one yourself&lt;/a&gt;. An alternative to this is to &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://e.inste.in/2008/06/16/interfacing-the-currentcost-meter-to-an-arduino/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;use an Arduino&lt;/a&gt;, which has native USB output so that you can do any data parsing you like before it even gets to your computer. If you also get &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://community.pachube.com/?q=node/17&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;an ethernet shield&lt;/a&gt; then you can connect it to your router and send information straight through to, say, twitter, without requiring a whole extra PC to be switch on! &lt;/div&gt;  &lt;div&gt; &lt;/div&gt;  &lt;div&gt;(The latest CC128 unit outputs data at 57600 bps.  So if working with Arduino forget about software serial.)&lt;/div&gt;&lt;br&gt;&lt;br&gt;I think the cable pin outs on the referenced page may not be correct. I found that my unit (shipped Feb 09) has data on pin 8 and ground on pin 4. @paul_tanner&lt;br&gt;I can also vouch for this. My unit (Oct 09) has the dat on pin 8 and ground on 4, which is contrary to the pinout on the page/s linked above. @noisymime&lt;/div&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Current Cost Home</title><link>http://currentcost.wetpaint.com/page/Current+Cost+Home</link><author>Siftah</author><guid isPermaLink="false">http://currentcost.wetpaint.com/page/Current+Cost+Home</guid><comments>Fixed link to wiki.siftah.com in Firefox</comments><pubDate>Tue, 15 Sep 2009 14:54:03 CDT</pubDate><description>&lt;i&gt;This is a place to store good pointers and collections of information which are useful to people who want to get started with their new Current Cost.&lt;/i&gt;  &lt;h2&gt;&lt;br&gt;&lt;/h2&gt;&lt;h2&gt;What is it?&lt;/h2&gt;&lt;br&gt;According to &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://currentcost.com/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;currentcost.com&lt;/a&gt; the Current Cost is &amp;quot;a highly accurate second generation home electricity monitoring device.&amp;quot; To you and me it&amp;#39;s a consumer device for finding out how much electricity you use and how much that&amp;#39;s costing you.&lt;br&gt;  &lt;h2&gt;&lt;br&gt;  &lt;/h2&gt;&lt;h2&gt;How much does it cost?&lt;/h2&gt;&lt;br&gt;RRP &amp;pound;45 (but currently discounted to about &amp;pound;30) from &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://ecogadgetshop.co.uk/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;ecogadgetshop.co.uk&lt;/a&gt;. However these have the older firmware, so buying the one from &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://stores.ebay.co.uk/Current-Cost-Ltd&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;ebay&lt;/a&gt; is a better option.     &lt;h2&gt;&lt;br&gt;&lt;/h2&gt;&lt;h2&gt;  How does it work?&lt;/h2&gt;&lt;br&gt;The Current Cost (CC) has two parts:   &lt;ol&gt;  &lt;li&gt;  a loosely-fitting clamp which you put around one of the cables leading to your electricity meter, the clamp is attached to a power pack which broadcasts readings from the clamp to...   &lt;/li&gt;&lt;li&gt;  ...a display which sits on a desk or next to the telly in your living room. This plugs into the mains.&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;The clamp uses &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://en.wikipedia.org/wiki/Electromagnetic_induction&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;electromagnetic induction&lt;/a&gt; to measure the flow of electricity through the cable it is wrapped around, which is broadcast over (433MHz) radio to the display unit.&lt;br&gt;&lt;br&gt;But such a clamp monitoring technique however does NOT show true consumed power (Watts), responding to the load&amp;#39;s apparent power (Volt.Amps) demand, which can lead to significantly distorted readings on &amp;quot;reactive&amp;quot; loads. &lt;br&gt;&lt;br&gt;Although most homes historically have resistive electrical demand, this power factor (PF) issue is of increasing importance domestically when measuring standby appliances, motors, computer power supplies etc- you will actually be consuming less energy than clamp based meters inform you about !&lt;br&gt;&lt;br&gt;&lt;h2&gt;Find out more&lt;/h2&gt;&lt;br&gt;   &lt;ul&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://currentcost.pbwiki.com/Current+Cost+cable&quot; name=&quot;p-701eedf9871065f17bfde1e434b756c3638d86b5&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;The connector on the back of the Current Cost unit&lt;/a&gt;&lt;/font&gt;   &lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://e.inste.in/2008/06/15/interfacing-the-currentcost-meter-to-your-pc/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Connecting your current cost to a PC or Mac using a custom cable&lt;/a&gt;&lt;/font&gt;   &lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://e.inste.in/2008/06/16/interfacing-the-currentcost-meter-to-an-arduino/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Connecting your current cost to an Arduino&lt;/a&gt;&lt;/font&gt;   &lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://cumbers.wordpress.com/2008/05/07/breakdown-of-currentcost-xml-output/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;The Current Cost XML format&lt;/a&gt;&lt;/font&gt;   &lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://rooreynolds.com/2008/05/09/current-cost-charting-fun/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Graphing the data from your Current Cost&lt;/a&gt; (and &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://knolleary.net/2008/05/05/power-graphing/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;some more here&lt;/a&gt;)   &lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://wiki.siftah.com/Current_Cost_Electricity_Monitor&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Graphing Current Cost data with Munin, Python and RRDTool (including full example scripts)&lt;/a&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://andypiper.wordpress.com/2008/12/11/current-cost-monitoring-from-an-iphone/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Monitoring Current Cost from an iPhone webapp&lt;/a&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://www.jibble.org/currentcost/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Using RRDtool to maintain a round robin database&lt;/a&gt;&lt;br&gt;&lt;/font&gt;&lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a href=&quot;http://currentcost.wetpaint.com/page/Current+Cost+Power-o-meter&quot; target=&quot;_self&quot;&gt;Making a power-meter using an Arduino&lt;/a&gt;&lt;/font&gt;   &lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://www.spaaace.com/cope/?p=106&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Ordering a data cable (RJ45-serial) from Current Cost themselves&lt;/a&gt;&lt;/font&gt;   &lt;/li&gt;&lt;li&gt;  &lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://stores.ebay.co.uk/Current-Cost-Ltd&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;The Current Cost ebay shop&lt;/a&gt; currently has serial data cables (cheaper than the other link) and the new version of the display unit.   &lt;/font&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;&lt;br&gt;&lt;/h2&gt;&lt;h2&gt;Applications&lt;/h2&gt;&lt;br&gt;&lt;ul&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://www.floppy.org.uk/2008/8/22/some-successful-currentcost-hacking&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Display power-usage with a system tray icon&lt;/a&gt;   &lt;/li&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://currentcost.appspot.com/static/welcome.html&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Desktop app to draw graphs of CurrentCost history data&lt;/a&gt;   &lt;/li&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://knolleary.net/2008/05/05/power-graphing/#comment-11069&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot; title=&quot;Sample perl script to read serial port&quot;&gt;Sample perl script to read serial port&lt;/a&gt;   &lt;/li&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://code.google.com/p/currentcost/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Sample python script to read data from serial port and parse it into absolute values&lt;/a&gt;   &lt;/li&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://github.com/Floppy/currentcost-ruby&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Sample Ruby source for accessing CurrentCost data&lt;/a&gt;&lt;br&gt;  &lt;/li&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://code.google.com/p/currentcost/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Sample Java source for reading CurrentCost data from serial port and parsing into absolute values&lt;/a&gt;   &lt;/li&gt;&lt;li&gt;  &lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://code.google.com/p/currentcost/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;Sample C# source for reading CurrentCost data from serial port and parsing it into absolute values&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://community.pachube.com/?q=node/100&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;App to get CurrentCost data into pachube&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;  &lt;/h2&gt;  &lt;h2&gt;&lt;br&gt;  &lt;/h2&gt;&lt;h2&gt;Have something to add?&lt;/h2&gt;&lt;br&gt;This is a wiki. Feel free to edit it via the &amp;#39;Easy Edit&amp;#39; link above.&lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item><item><title>Current Cost Power-o-meter</title><link>http://currentcost.wetpaint.com/page/Current+Cost+Power-o-meter</link><author>Anonymous</author><guid isPermaLink="false">http://currentcost.wetpaint.com/page/Current+Cost+Power-o-meter</guid><pubDate>Tue, 09 Sep 2008 07:49:35 CDT</pubDate><description> 			This is the idea as shown in this flickr video:&lt;br&gt;&lt;a class=&quot;external&quot; href=&quot;http://currentcost.wetpaint.comhttp://www.flickr.com/photos/barnybug/2604903353/&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.flickr.com/photos/barnybug/2604903353/&lt;/a&gt;&lt;br&gt;&lt;br&gt;The Arduino is connected to the CurrentCost data on pin 2.&lt;br&gt;It uses the led on pin 13 (by default the built-in led on the board) to indicated receiving data and then externally connected coloured leds on pins 9-12 for the actual meter.&lt;br&gt;&lt;br&gt;This is the sketch for the Arduino. You can adjust the watt levels that trigger the leds or add or reduce the number of leds used easily.&lt;br&gt;It could be easily adapter to output the watt values on the USB serial out, for example.&lt;br&gt;Have fun!&lt;br&gt;&lt;font face=&quot;Courier&quot;&gt;/*&lt;br&gt;* CurrentCost serial reader&lt;br&gt;*&lt;br&gt;* BG / 23rd June 2008&lt;br&gt;*/&lt;br&gt;&lt;br&gt;#include &amp;lt;SoftwareSerial.h&amp;gt;&lt;br&gt;&lt;br&gt;#define rxPin 2&lt;br&gt;#define ledPin 13&lt;br&gt;&lt;br&gt;SoftwareSerial mySerial = SoftwareSerial(rxPin, 3);&lt;br&gt;byte pinState = 0;&lt;br&gt;char startPattern[] = &amp;quot;&amp;lt;ch1&amp;gt;&amp;lt;watts&amp;gt;&amp;quot;;&lt;br&gt;char endPattern[] = &amp;quot;&amp;lt;&amp;quot;;&lt;br&gt;int state = 0;&lt;br&gt;int pos = 0;&lt;br&gt;int power = 0;&lt;br&gt;int wattLevels[] = { 0, 200, 400, 800, 2000, 99999999 };&lt;br&gt;int wattPins[] = { 12, 11, 10, 9, 8 };&lt;br&gt;&lt;br&gt;void setup()&lt;br&gt;{&lt;br&gt; Serial.begin(9600);&lt;br&gt; &lt;br&gt; pinMode(rxPin, INPUT);&lt;br&gt; pinMode(ledPin, OUTPUT);&lt;br&gt; &lt;br&gt; for (int i = 0; i &amp;lt; 5; ++i)&lt;br&gt; pinMode(wattPins[i], OUTPUT);&lt;br&gt; &lt;br&gt; mySerial.begin(2400);&lt;br&gt;}&lt;br&gt;&lt;br&gt;byte readByte = 0xFF;&lt;br&gt;&lt;br&gt;void loop()&lt;br&gt;{&lt;br&gt; readByte = mySerial.read();&lt;br&gt; if (readByte == 0xFF) {&lt;br&gt; digitalWrite(ledPin, LOW);&lt;br&gt; &lt;br&gt; }&lt;br&gt; else { &lt;br&gt; Serial.print(readByte, BYTE);&lt;br&gt; gotByte();&lt;br&gt; digitalWrite(ledPin, HIGH);&lt;br&gt; }&lt;br&gt;}&lt;br&gt;&lt;br&gt;void gotByte() {&lt;br&gt; if (state == 0) {&lt;br&gt; if (readByte == startPattern[pos]) {&lt;br&gt; ++pos;&lt;br&gt; if (startPattern[pos] == 0) {&lt;br&gt; // finished matching start pattern&lt;br&gt; ++state;&lt;br&gt; power = 0;&lt;br&gt; }&lt;br&gt; }&lt;br&gt; else {&lt;br&gt; pos = 0;&lt;br&gt; }&lt;br&gt; }&lt;br&gt; else if (state == 1) {&lt;br&gt; if (readByte == endPattern[0]) {&lt;br&gt; &lt;br&gt; // finished reading power&lt;br&gt; // light up lights&lt;br&gt; int i = 0;&lt;br&gt; while (wattLevels[i] &amp;lt; power) {&lt;br&gt; digitalWrite(wattPins[i], HIGH);&lt;br&gt; ++i;&lt;br&gt; }&lt;br&gt; &lt;br&gt; // and clear remaining&lt;br&gt; while (i &amp;lt; 5) {&lt;br&gt; digitalWrite(wattPins[i], LOW);&lt;br&gt; ++i;&lt;br&gt; }&lt;br&gt; &lt;br&gt; state = 0;&lt;br&gt; }&lt;br&gt; else {&lt;br&gt; // read another digit&lt;br&gt; power = power * 10 + readByte - &amp;#39;0&amp;#39;;&lt;br&gt; }&lt;br&gt; }&lt;br&gt; &lt;br&gt; &lt;br&gt;}&lt;br&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;&lt;hr size=&quot;1&quot;&gt;&lt;br/&gt;</description></item></channel></rss>