Tag Archives: Raspberry Pi

智能家庭2.0

在之前一篇文章里,描述了我的智能家庭1.0版本。当时还只有一个电器,RF24无线传输的价值并没有体现的很明显。但到了2.0版本,有了卧室灯,客厅灯,空调等用电器,无线传输就非常有意义了。

在这一版本我加了一个新功能: 人体感应。其实就是在每个单片机上连一个Motion Sensor,一旦有信号发生,就发送给主控,也就是Raspberry Pi,主控经过判断后作出反应,是应该开或者关。

所以这一版本在整体结构上没有大的变化,主要是发生在软件层:
Raspberry Pi上的主控程序central: https://github.com/miccrun/smarthome/tree/master/central 这个程序会不停读一个文件,一旦有其他程序往这个文件里写入指令,它就会自动执行并且删掉已执行的指令。
Raspberry Pi上的Website: https://github.com/miccrun/smartcontrol 这个site可以响应用户请求,并且生成对应的指令,写入central的buffer文件里。
Arduino程序: https://github.com/miccrun/smarthome/tree/master/arduino

Programming , , , ,

Use Siri to control your light and fan

Use a cellphone or computer to control your light is not breaking news, but really full of fun.

Check this quick demo first.

Continue reading

Programming , , , ,