Triggering Actions on Smart Home Devices with Arduino

details

We introduce a PubNub cloud service and real-life demo using it in this post.

First, It is key building blocks for realtime apps and you can make these services using PubNub service.

PubNub2 PubNub1

Additionally,The PubNub supports many SDKs for developer as below. Especially, We are happy that PubNub supports SDK for Arduino and mbed.

PubNub3

Second, We introduce real-time application using Arduino+Ethernet Shield and PubNub service.

It is originally pbulished to bachovsk.com by Boris Bachovski.

Idea and Approach

The idea initially came up when I wanted to replace my central heating system control with Nest, which would not work in my case because the only way to control the heating system is by a RF remote control.Then I saw Bradley’s SwitchIt video which gave me another idea – to capture the RF signal from the remote and then replicate it by using Arduino and RF Transmitter/Receiver. Having one remote to control all the different settings for the heating system seemed a bit complex (it must be very long and variable signal) for a first project, which led to this simpler use case to begin with, where the remote has a fixed RF code – the garage remote!

I know, I’m a little bit late in the game, though I still found it a bit challenging and wanted to share my solution. Every case is unique and there is no right or wrong solution nor there is an example out there that will work 100% for your idea or project without having to adjust bits and pieces.

Solution

Overall

I didn’t want to build a mobile app specifically for this idea, I could leverage the Salesforce1 App and build just a VisualForce page so that was an easy decision. The interesting part was how to connect the Arduino to the SF1 app…

I also didn’t want to open ports on my router at home, so it had to be some service that the Arduino can connect to, from behind the router. Ideally the Arduino would subscribe to a push notification channel (using some online service that supports web sockets) and the VF page will trigger an event on a click of a button on the same channel to which the Arduino is subscribed to receive notifications.

The ideal service would offer support for both, Arduino and JavaScript. After a bit of a research I discovered PubNub, who offered a free account and both have Arduino and JavaScript libraries. The reason I went with PubNub is because I found their JavaScript library easier to use, as well as better overall support (Stephen Blum instantly offered help on twitter).

– See more at: http://www.pubnub.com/blog/triggering-actions-home-devices-arduino/#sthash.zTXIoMjm.dpuf

 

Source : http://www.pubnub.com/blog/triggering-actions-home-devices-arduino/#sthash.zTXIoMjm.dpuf

We introduce a PubNub cloud service and real-life demo using it in this post.

First, It is key building blocks for realtime apps and you can make these services using PubNub service.

PubNub2 PubNub1

Additionally,The PubNub supports many SDKs for developer as below. Especially, We are happy that PubNub supports SDK for Arduino and mbed.

PubNub3

Second, We introduce real-time application using Arduino+Ethernet Shield and PubNub service.

It is originally pbulished to bachovsk.com by Boris Bachovski.

Idea and Approach

The idea initially came up when I wanted to replace my central heating system control with Nest, which would not work in my case because the only way to control the heating system is by a RF remote control.Then I saw Bradley’s SwitchIt video which gave me another idea – to capture the RF signal from the remote and then replicate it by using Arduino and RF Transmitter/Receiver. Having one remote to control all the different settings for the heating system seemed a bit complex (it must be very long and variable signal) for a first project, which led to this simpler use case to begin with, where the remote has a fixed RF code – the garage remote!

I know, I’m a little bit late in the game, though I still found it a bit challenging and wanted to share my solution. Every case is unique and there is no right or wrong solution nor there is an example out there that will work 100% for your idea or project without having to adjust bits and pieces.

Solution

Overall

I didn’t want to build a mobile app specifically for this idea, I could leverage the Salesforce1 App and build just a VisualForce page so that was an easy decision. The interesting part was how to connect the Arduino to the SF1 app…

I also didn’t want to open ports on my router at home, so it had to be some service that the Arduino can connect to, from behind the router. Ideally the Arduino would subscribe to a push notification channel (using some online service that supports web sockets) and the VF page will trigger an event on a click of a button on the same channel to which the Arduino is subscribed to receive notifications.

The ideal service would offer support for both, Arduino and JavaScript. After a bit of a research I discovered PubNub, who offered a free account and both have Arduino and JavaScript libraries. The reason I went with PubNub is because I found their JavaScript library easier to use, as well as better overall support (Stephen Blum instantly offered help on twitter).

– See more at: http://www.pubnub.com/blog/triggering-actions-home-devices-arduino/#sthash.zTXIoMjm.dpuf

 

Source : http://www.pubnub.com/blog/triggering-actions-home-devices-arduino/#sthash.zTXIoMjm.dpuf

COMMENTS

Please Login to comment
  Subscribe  
Notify of