Skip to main content

Topics

This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.

Topics - diviney

1
Web platform / Web Platform - Ideal for Google Powermeter?
All:

One of the reasons I became interested in the Web Platform was because it seemed ideally suited for use as a Google Powermeter appliance.  For those of you not familiar with this, check out the introductory page here:  http://www.google.com/powermeter/about/about.html

The principal is to continuously monitor your home energy usage and thus be able to identify inefficiencies allowing you to reduce consumption in an observable way.  There are a couple of different ways to sense energy consumption including optical detection of the spinning wheel in a mechanical power meter, or clamp-on current transformers to sense the main split phase current feeding your home.

Google has defined an API such that you can feed your consumption information through the web for collection and subsequent analysis and graphical display.

It is possible to purchase devices that connect to your home and feed data to Google, but it can be much more rewarding to build and customize your own project.

There are a couple of things that make the Web Platform a very nice choice.  First, it's small size, low cost, low power, and ethernet capability facilitate continuous unattended operation.  The built-in ADC's can be used to connect the appropriate current sensor.  Best of all however, is the fact that Microchip has a Google Powermeter demonstration application that is configured to run on a nearly identical dsPIC33 device.  This should greatly reduce software development time.

You can learn more about the Microchip reference design here:
http://www.microchip.com/stellent/idcpl ... odeId=2889

This reference design comes as part of the Microchip Applications Libraries that are also used as the basis for the Web Platform firmware already familiar to those in this forum.

Also note that Seeed Studios sells suitable current sensing transformers for a very good price:
http://www.seeedstudio.com/depot/noninv ... th=144_154

I have taken the first step by making some alterations to the Microchip reference design, to reflect the hardware configuration of the Web Platform board.  Although I managed to get it to build, it does not run, so there is plenty more work to do.

I will continue to hack my way along with this, but I am not really a serious programmer and it will probably take me quite some time to complete this project.  I was wondering if there were others in this group who would be interested in collaborating on this project.  I have ordered a couple of current sensors, and am still awaiting their arrival.  There are two aspects to this - first, the hardware and interface to perform the measurement, and second, the software to interface with the Google API.  I have some thoughts as to how I plan to approach the hardware side.  The software interface seems more complicated to me but the Microchip reference design seems to go a long way in that direction.

Let me know if anyone has an interest in this project.

-Tom
2
Web platform / SD web server (hangs)
Hello:

I am having some trouble with the SD demo application.  I have the Web Platform 1.1.  By following the instructions in the Readme file, I have gotten the web-platform-SDcardServer.v0a to build successfully.

I installed a 4G microSD card (formatted with SDFormatter).  When I download my hex file, the server acquires an IP address properly and I can ping it just fine.  Unfortunately, I get nothing when I try to access the server from a browser, and then it just seems to hang (I can no longer ping the board).

I saw the remarks here:  http://dangerousprototypes.com/docs/SD_ ... erver_demo, where changes to 'enc28j60.c' are discussed to avoid lockups.  I mechanized the "more correct" fix by adding the 9 NOP's, but it still behaves the same way.

I am probably doing something dumb...  Any recommendations?

-Thanks

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01162282920session_write_close ( )...(null):0
20.01192414512ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01192415288Database_MySQL->query( ).../DatabaseHandler.php:119
40.05662554024Database_MySQL->error( ).../Db-mysql.class.php:273