Changes

Hottub controller project

2,566 bytes added, 05:10, 15 December 2016
Created page with "== Ingredients == [[image:Raspberry Pi.jpg|thumb|500px|left|Raspberry Pi as controller]]<br clear=both> image:Hottub controller display and Pi.jpg|thumb|500px|left|display..."
== Ingredients ==

[[image:Raspberry Pi.jpg|thumb|500px|left|Raspberry Pi as controller]]<br clear=both>
[[image:Hottub controller display and Pi.jpg|thumb|500px|left|display and control butttons, found at http://www.emsystech.de/produkt/raspi-lcd/]]<br clear=both>
[[image:Hottub relay board.jpg|thumb|500px|left|relay board for outputs]]<br clear=both>
[[image: Hottub controller breadboard prototype.jpg|thumb|500px|left|breadboard prototype incl. temp sensor and indicator LED's]]<br clear=both>

== Prototype ==
[[image:Hottub controller breadboard.jpg|thumb|500px|left|prototype wired together]]<br clear=both>
[[image:Hottub controller - phone app.png|thumb|500px|left|the Iphone app for the prototype]]<br clear=both>

=== Rest interface ===
The rest interface is at http://hottub/htmobile/rest/hottub. The requestor needs to use the correct http method for setting values (HTTP PUT)

For getting REST values use HTTP GET
curl http://hottub.home.hentschel.net/htmobile/rest/hottub/blower
which gets
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><blower state="ON"/>

To set the value, use HTTP PUT
curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/blower/ON
which results in
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><ok succeeded="true"><status>200</status></ok>

curl http://hottub.home.hentschel.net/htmobile/rest/hottub/
curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/pump/ON
curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/setpoint/98
curl -X PUT http://hottub.home.hentschel.net/htmobile/rest/hottub/blower/ON

=== Target Development ===
* [http://wiki.eclipse.org/TCF/Raspberry_Pi Setting up Eclipse TCF with RasPi]

== Final version ==
=== Hardware ===
[[image:Hottub controller schematic.png|thumb|800px|left|connector board schematic]]<br clear=both>
[[image:Hottub controller wire mesh.png|thumb|800px|left|connector board wiring]]<br clear=both>
[[image:Hottub controller connector board backside.jpg|thumb|800px|left|the connector board backside]]<br clear=both>
[[image:Hottub controller connector board frontside.jpg|thumb|800px|left|the connector board frontside]]<br clear=both>

* 433MHz wireless temp sensor https://www.tindie.com/products/DORJI_COM/ds18b20-sht11-sht12-sht21-sht25-wireless-sensor-transmitter-receiver-module/
* 3.3V step up board for battery operated sensors https://www.sparkfun.com/products/10967

=== Temp sensor ===
[https://store.brewpi.com/temperature-sensors/threaded-onewire-temperature-sensor Onewire threaded 1/2" NPT]
Bureaucrat, administrator
963
edits