Skip to content

codevelopnz/SmartSolarDevice

Repository files navigation

SmartSolarDevice

This is the bit of the SmartSolarProject that runs on the Raspberry Pi. (Note that if you don't have a Raspberry Pi, you can still run the project with "virtual" hardware just on your dev machine though!)

Function of the Hardware

This hardware has the ability to:

  • determine the temperature of the water on the roof (solar panels)
  • determine the tempurature of the hot water cylinder at both the inlet and outlet (top and bottom)
  • switch on the water pump to cycle hot water from the roof panels to the cylinder
  • switch on the power to the hot water cylinder element (not directly power the element)
  • have onboard visual feedback when the pump or element is on
  • allow for direct access to basic functions of the device

Hardware

OK, the following is a list of hardware I'm using (so far).

Optionally, If you want the whole unit self contained with only one mains power input (as opposed to one mains and one 5V DC @ 2amps input), you'll need:

If you don't have a solar system to hook this up to (or want to have a working prototype without installing it....re: test it first!) you'll also need:

You'll also need a breadboard and appropriate wires.

Ultimately, I want to make this as compact and robust as possible without going to the extent of get a custom PCB manufactured (yet!), so I've also gone one better than a breadboard (now I have the breadboard based prototype working) and got a PermaProto HAT from Adafruit that sits nicely on top of the Pi and an extra-long GPIO Stacking Header for the proto board just in case I want to mount a display like this one on top.

Basic Prototype Layout

###Whoops...the below diagram wires up the thermistors incorrectly. I'll post an updated image in the next few days. alt tag

Coming soon...photos of the early breadboard prototype, my current prototype and soon the permaproto all soldered up.

Getting setup to develop

Assuming you're running on Windows (this is Windows IoT after all):

  • Follow these instructions to setup your computer to develop UWP applications in general, and IoT Core projects in particular
  • Download this repo to your machine. I use (sourcetree)[https://www.sourcetreeapp.com/] as a git client & recommend it if you're not already a git guru
  • From Visual Studio, open the solution SmartSolar.Device.sln
  • Visual Studio might tell you that you need to install some Platform SDK's - do that.
  • You'll see 3 projects in the solution:
    • SmartSolar.Device is the visual part of the project
    • SmartSolar.Device.Core is the non-visual parts of the project
    • SmartSolar.Device.Test is the test suite (references SmartSolar.Device.Core) To run the project locally on your Windows machine (if you don't have a device):
    • Set SmartSolar.Device.Core as the startup project
    • Make sure the "Solution Platforms" drop-down (near the Run button) is set to "Any CPU"
    • Run To run the project on a Raspberry Pi device:
    • Set SmartSolar.Device as the startup project
    • Make sure the "Solution Platforms" drop-down (near the Run button) is set to "ARM"
    • Run

About

A project for the CoDevelop/ team

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages