Home Automation Kits with pcDuino and BLE4.0

From LinkSprite Playgound
Revision as of 06:33, 19 July 2016 by Alvin (talk | contribs) (Test Code)
Jump to: navigation, search

Introduction

OpenHAB.jpg

Before this article, there is post about DIY Smart home connecting through Wifi. Nowadays, the wearable devices such as smartbands and smart watch are extremely popular. So it’s time to talk about Bluetooth4.0, this article is all about how to DIY your own smart home using BLE4.0 Shield and BLE4.0 Bee as connection devices, pcduino as openhab server, Arduino as device.

Usage

Install openHAB

Install openHAB server software on pcDuino, get more detail form linksprite learn center:

http://learn.linksprite.com/?s=openhab

or, download the image file below, then update ( install openh under “/opt/openhab” folder):

http://pan.baidu.com/s/1ntHtCyX?qq-pf-to=pcqq.c2c code: fh6c

For more detail about how to use BLE4.0 shield ( the usage of BLE4.0 Bee is the same as BLE4.0 Shield )

http://learn.linksprite.com/arduino/shields/how-to-use-ble4-0-shield/

Test Code

We need to install python serial first before we can use serial from pcDuino3B by doing:

Code.jpg

Code 1.jpg

Code 2.jpg

Code 3.jpg

Code 4.jpg