(no title)
kgs42 | 10 years ago
I have home server on MacMini - so WiFi could be option. Any ideas?
I've always wanted to build something like this which - but always ended calculations that are rather expensive and devices are relatively big.
kgs42 | 10 years ago
I have home server on MacMini - so WiFi could be option. Any ideas?
I've always wanted to build something like this which - but always ended calculations that are rather expensive and devices are relatively big.
cuonic|10 years ago
I've actually created such a setup, I have 3 battery powered temperature sensors built on Arduino Pro Minis, they all communicate with a central RPi node via NRF24L01 transceivers, and the node then sends the different temperatures to a server via GSM. The sensors are pretty cheap to make, and if you put them in a sealed box they last for months without recharging the batteries (Currently 7 month battery life on 4 x AA batteries)
Here is some of the sensor code: https://github.com/cuonic/Arduino-NRF24L01-Thermometer
paddi91|10 years ago
the already mentioned ESP8266 is definitely the way to go. Have a look at [1]. for some example circuits. [2] shows how to connect multiple sensors.
[1] https://www.aisler.net/projects?query=esp8266&src=hn_1 [2] https://www.aisler.net/projects/7890
gedrap|10 years ago
kgs42|10 years ago
roel_v|10 years ago
kbouck|10 years ago
(I know Nest and Ecobee can probably do all of this out of box -- my reasons for building this were just to tinker and learn)
Here's what I use:
Sensors:
Since these are likely to run on batteries, you'll need to choose a platform with allows for low enough power consumption that you aren't draining the batteries too quickly. This is suitable for the microcontroller-based options (Arduino, ESP8266, NodeMCU, Particle), but not for R-Pi (due to too-high power consumption). In addition to the platform, your code will also need to take advantage of power saving opportunities, like going to sleep and disabling battery-draining radio services like WiFi, waking up periodically to take a measurement, enable WiFi and emit the metric before going back to sleep.
For my temperature sensors, I chose to the $19 Particle Photon [1] for the following features:
Thermostat:For this I use a Raspberry Pi (plugged into wall power) + a relay breakout board to interface with my heating system. My thermostat needs to periodically do things like access google calendar, keep a log of temperature data, to run a HomeKit server [3] [4], and to be ever-ready to respond to REST requests from the internet (eg. IFTTT). So, it's more like a real server, for which RPi was much more appropriate.
Data Storage:
Many options here. Take a look at Phant [5] from SparkFun form something quick and simple.
[1] https://store.particle.io/collections/photon
[2] https://www.sparkfun.com/products/10988
[3] https://github.com/KhaosT/HAP-NodeJS
[4] https://github.com/nfarina/homebridge
[5] https://learn.sparkfun.com/tutorials/pushing-data-to-dataspa...