Académique Documents
Professionnel Documents
Culture Documents
1
1
1
1
1
3
1
Raspberry Pi $39.95
TFT 2.8" LCD touchscreen $34.95
USB mini Wi-Fi adapter $11.95
DC to DC Voltage Step Down Transformer $2.99
Bridge Rectifier GBU608 $1.47
Single Relay Board $29.97
DS18B20 Digital temperature sensor $4.00
So, for the low total cost of about $125.28 (plus tax and shipping) you can build your own
$3.2 billion IoT startup company. Well... maybe, the start of a $3.2 billion IoT startup
company, but you'll have a nifty IoT Java SE Embedded enabled home thermostat in the end,
regardless. And, that's just as good as a $3.2 billion IoT startup, right?
Come back for the next steps in this series, to get you on your way...
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 2)
By hinkmond on Jan 27, 2014
If you see a wire labeled "C" (Common) and the rest of the labeled wires (above), then you
are OK. If you do not see the "C" label on a wire, you must ask an electrician friend or hire
an electrical contractor to run the common "C" wire from a furnace relay to your thermostat.
Otherwise, if you do not have the "C" wire at your thermostat, stop here since the "C" wire is
needed to power the Raspberry Pi and especially for the Wi-Fi adapter to have enough power
to allow your new SmartThermostat to be networked.
If after one way or another you do have a "C" wire at your thermostat, then you are ready for
the first step which is to connect the Bridge Rectifier GBU608 and the DC to DC step-down
transformer from your Raspberry Pi to your thermostat wires to power it from the 24VAC of
your thermostat wiring (C and either Rh or Rc or R). The Bridge Rectifier turns the 24VAC
of your furnace relay from 24 volts of AC power to 33 volts DC power, and the step-down
transformer turns the 33 volts DC down to 5 volts DC for the Raspberry Pi (and all its
peripherals).
Come back to the next blog post to see how that's done... It's a fun step since it's your first
one
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 3)
By hinkmond on Feb 03, 2014
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 4)
By hinkmond on Feb 19, 2014
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 5)
By hinkmond on Mar 14, 2014
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 6)
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 7)
By hinkmond on Jun 20, 2014
wires for the Fan, Heat call, and Cool call. Here's a reminder which wire is which.
Red - R - 24VAC
or
Red - Rh - 24VAC (dedicated to heat call)
Red - Rc - 24VAC (dedicated to cooling call)
Green - G - Fan on
White - W - Heat call
Yellow - Y - Cool call
Blue or Black - C - Common
FileWriter directionFile =
new FileWriter("/sys/class/gpio/gpio" + gpioChannel +
"/direction");
// Set port for output
directionFile.write(GPIO_OUT);
directionFile.flush();
}
/* ... */
// Set up a GPIO ports as a command channels
FileWriter heatChannel = new
FileWriter("/sys/class/gpio/gpio" +
GpioChannels[0] + "/value");
FileWriter fanChannel = new
FileWriter("/sys/class/gpio/gpio" +
GpioChannels[1] + "/value");
FileWriter acChannel = new
FileWriter("/sys/class/gpio/gpio" +
GpioChannels[2] + "/value");
// TEST Cycle all 5 min. on, 2 min. off
// HIGH: Set GPIO port ON
heatChannel.write(GPIO_ON);
heatChannel.flush();
java.lang.Thread.sleep(300000);
// LOW: Set GPIO port OFF
heatChannel.write(GPIO_OFF);
heatChannel.flush();
java.lang.Thread.sleep(120000);
// HIGH: Set GPIO port ON
fanChannel.write(GPIO_ON);
fanChannel.flush();
java.lang.Thread.sleep(300000);
// LOW: Set GPIO port OFF
fanChannel.write(GPIO_OFF);
fanChannel.flush();
java.lang.Thread.sleep(120000);
// HIGH: Set GPIO port ON
acChannel.write(GPIO_ON);
acChannel.flush();
java.lang.Thread.sleep(300000);
// LOW: Set GPIO port OFF
acChannel.write(GPIO_OFF);
acChannel.flush();
java.lang.Thread.sleep(120000);
}
} catch (Exception exception) {
exception.printStackTrace();
}
}
Pretty straight-forward stuff. It's easy when you use Java SE Embedded technology and a
Raspberry Pi. Hey, someone should trademark that...
How to Build Your Own $3.2bln Nest Startup Using Java SE Embedded Tech
(Part 9)
By hinkmond on Aug 26, 2014
Now, when you boot up your Raspberry Pi, just configure your boot-up to bring up the
Midori Web browser on the Ada Fruit TFT LCD screen pointing to your local Jetty Web
server and your UI page to your software.
See: http://www.ediy.com.my/index.php/blog/item/102-raspberry-pi-running-midoribrowser-without-a-desktop
That should get you started on your way to building your own home thermostat control based
on Java SE Embedded technology. Not too shabby!
Good luck on finishing out your project! Hope this was useful in getting you on your way to
creating your own Nest startup.