Home > Projects > Other Projects > OH HAI! on Windows 10 IoT Core

OH HAI! on Windows 10 IoT Core

Summary of OH HAI! on Windows 10 IoT Core


Hai is a Raspberry Pi–based smart-home integration platform that optimizes electricity and water use (lighting, HVAC, irrigation). It aggregates weather data, controls devices via microcontrollers and ESP8266 Wi-Fi modules, and supports Raspbian and Windows IoT Core on Raspberry Pi 2. The project includes rain catchment with a bilge pump, float-switch water-level sensing, and an IR blaster for AC units using temperature/humidity sensors to compute real feel.

Parts used in the Hai project:

  • Raspberry Pi (Raspbian OS or Windows IoT Core on Pi 2)
  • ESP8266 Wi-Fi module
  • Arduino (Arduino Nano or ATTiny85)
  • DHT22 or DHT11 temperature and humidity sensor
  • IR LED or IR blaster components for AC control
  • Float switches (series) for water level sensing
  • Bilge pump
  • Relay to switch bilge pump
  • 12V solar-connected battery
  • Capacitor for 3.3V surge support
  • Gutters and roof catchment hardware (rain collection)

Oh, Hai

Hai (‘hi’) is an integration point for several stand alone smart home technologies.  Hai runs on the Raspberry Pi and can be adapted to optimize electricity consumption (lighting/HVAC) and water usage (irrigation/rain collection) in a number of ways. Hai was originally envisioned for any Pi running Raspbian OS, but is also being ported over to utilize the new Windows IoT Core on a Raspberry Pi 2.OH HAI! on Windows 10 IoT Core

The New Normal?

I live in Southern California, where one of the worst droughts in recent memory is currently taking place.  Our Summers are typically warm with dry winds, but this year it has been uncharacteristically humid and the evening ocean breeze hasn’t been enough to cool us down.  With electricity at 4x the national average ($0.42 per kWh and increasing again next year), I can’t afford to run the AC all day; and now with water rationing, our garden has seen better days.

I don’t know how everyone else is handling this, but I’m going to fix it the only way I know how…with a gratuitous use of technology!

‘Godzilla’ El Niño

After a freak summer storm last month I decided to build a rain catchment system.  The rainwater collected from our roof should supply enough water for our garden year-round (our 2,000sq/ft roof provides about 1,200gal per 1″ of rain).  I’ll be chronicling that build in another project, so I’ll just give a high level overview here.  Basically all our gutters are tied into a large water reservoir that uses a built in bilge pump to water all my drip irrigation on a schedule using an arduino.  I have added a water level indicator (series of float switches) and an ESP8266 to allow central management and logging from ‘Hai’.

Hai pulls weather forecasts from the wunderground API to see if there will be any precipitation in the next 1-5 days using both ‘Probability of Precipitation’ and the ‘Quantitative Precipitation Forecast’.

AC IR Blaster Schematic
IR blaster that controls point of use Air Conditioning units. Controlled by an ATTiny85 or Arduino Nano, it uses a DHT22 or DHT11 to calculate the real feel (based on temperature and humidity) and then communicates using an ESP8266.

Schematic OH HAI! on Windows 10 IoT Core

Rain Barrel Schematic

The Rain Barrel has a series of float switch to sense how full the barrel is. The Arduino can either be hard coded on a watering schedule or use the ESP8266 to receive weather forecasts from Hai. It uses a relay to switch on/off a bilge pump powered by the same solar connected 12v battery source as the rest of the system. Since I’m powering the ESP8266 from the 3.3v bus on the arduino, I have a capacitor in parallel to help with the surge when first transmitting.

For more detail: OH HAI! on Windows 10 IoT Core

Quick Solutions to Questions related to Hai:

  • What platforms does Hai run on?
    Hai runs on Raspberry Pi using Raspbian OS and is being ported to Windows IoT Core on Raspberry Pi 2.
  • How does Hai get weather information?
    Hai pulls weather forecasts from the wunderground API using Probability of Precipitation and Quantitative Precipitation Forecast.
  • Can Hai control irrigation scheduling?
    Yes, the Arduino can use a hard coded watering schedule or receive forecasts from Hai via ESP8266 to control irrigation.
  • What sensors are used for indoor thermal sensing?
    DHT22 or DHT11 sensors are used to measure temperature and humidity for real feel calculations.
  • How is AC controlled in the project?
    An IR blaster controlled by an ATTiny85 or Arduino Nano sends commands to point of use AC units, coordinated with sensor data and ESP8266 communication.
  • How is rainwater collection integrated?
    Gutters feed a large reservoir; a bilge pump, controlled by a relay and Arduino, waters drip irrigation and float switches monitor water level.
  • What powers the field devices and pump?
    Field devices and the bilge pump are powered from a 12V solar-connected battery; the ESP8266 is powered from the Arduino 3.3V bus with a capacitor for surge support.
  • Does the system log and centrally manage devices?
    Yes, the ESP8266 allows central management and logging from Hai.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top