際際滷

際際滷Share a Scribd company logo
DIY Ceiling Fan
Automation
With Raspberry Pi 3, RF Transmitter & Homebridge
Muh Hon Cheng
Twitter @honcheng
SG NextBus Action on Google
Ask Google Home for bus arrival time in Singapore
https://hackernoon.com/a-smart-home-with-sg-nextbus-using-google-home-amazon-echo-704342089727
https://www.youtube.com/watch?v=mKIMRMXpZeY
鞄岳岳沿壊://敬敬敬.霞看顎岳顎恢艶.界看馨/敬温岳界鞄?厩=界9喝一鍖a一遺舘界
RF fan remote
Platforms & Hardware?
HomeKit
+
Homebridge
Raspberry Pi 3
RF receiver
+
RF transmitter
https://www.amazon.com/
CanaKit-Raspberry-
Ultimate-Starter-Kit/dp/
B01C6Q4GLE
https://www.amazon.com/
gp/product/B00M2CUALS
Steps
 Set up Raspberry Pi 3
 LED tutorial
 Learn the remote RF signal
 Broadcast RF signal to test
 HomeKit integration
 API to broadcast the signal
 Homebridge plugin
Setting up Raspberry Pi 3
Raspberry - Breadboard - RF receiver/transmitter
DIY Ceiling Fan Automation at Hackware 3.0
Steps
 Set up Raspberry Pi 3
 LED tutorial
 Learn the remote RF signal
 Broadcast RF signal to test
 HomeKit integration
 API to broadcast the signal
 Homebridge plugin
Learning the remote RF
signals
 Install pilight
 Con鍖gure con鍖g.json to set the sender &
receiver value
Based on tutorial from http://stevenhickson.blogspot.sg/2015/02/control-anything-
electrical-with.html
Con鍖guring pilight
Con鍖guring pilight
GPIO numbering table from http://wiringx.org
Con鍖guring pilight
GPIO numbering table from http://wiringx.org
Learning the remote RF
signals
 Install pilight
 Con鍖gure con鍖g.json to set the sender &
receiver value
Based on tutorial from http://stevenhickson.blogspot.sg/2015/02/control-anything-
electrical-with.html
Learning the remote RF
signals
 Install pilight
 Con鍖gure con鍖g.json to set the sender &
receiver value
 Use pilight-debug to read RF signals from
remote
Based on tutorial from http://stevenhickson.blogspot.sg/2015/02/control-anything-
electrical-with.html
Learning the remote RF
signals
Steps
 Set up Raspberry Pi 3
 LED tutorial
 Learn the remote RF signal
 Broadcast RF signal to test
 HomeKit integration
 API to broadcast the signal
 Homebridge plugin
Broadcasting RF signals
 Use pilight-send to broadcast the RF signal
Based on tutorial from http://stevenhickson.blogspot.sg/2015/02/control-anything-
electrical-with.html
Broadcasting RF signals
 Use pilight-send to broadcast the RF signal
Based on tutorial from http://stevenhickson.blogspot.sg/2015/02/control-anything-
electrical-with.html
Broadcasting RF signals
https://www.youtube.com/watch?v=IJ1U47Vke7U
Broadcasting RF signals
 Use pilight-send to broadcast the RF signal
 Repeat for all buttons on the RF remote
Based on tutorial from http://stevenhickson.blogspot.sg/2015/02/control-anything-
electrical-with.html
Steps
 Set up Raspberry Pi 3
 LED tutorial
 Learn the remote RF signal
 Broadcast RF signal to test
 HomeKit integration
 API to broadcast the signal
 Homebridge plugin
HomeKit integration
 Homebridge: open-sourced
NodeJS server to emulate iOS
HomeKit API
https://github.com/nfarina/
homebridge
 Runs on Raspberry Pi
 Add new accessory support
with Homebridge plugin
HomeKit integration
 API to broadcast the signal
 Homebridge plugin
API to broadcast signals
 REST APIs with Python/Flask to execute pilight-
send with command line.
https://github.com/honcheng/rfremote-fan-api
DIY Ceiling Fan Automation at Hackware 3.0
Homebridge plugin
 Modi鍖ed an existing Homebridge plugin:
homebridge-tosrox-fan that controls a 3-speed
TOSRox fan.
 Calls the new API to control my fan.
https://github.com/honcheng/homebridge-rfremote-fan
Homebridge plugin
 Modi鍖ed an existing Homebridge plugin:
homebridge-tosrox-fan that controls a 3-speed
TOSRox fan.
 Calls the new API to control my fan.
https://github.com/honcheng/homebridge-rfremote-fan
 Con鍖gure Homebridge to add the fans
Edit the Homebridge con鍖guration 鍖le
Homebridge plugin
 Modi鍖ed an existing Homebridge plugin:
homebridge-tosrox-fan that controls a 3-speed
TOSRox fan.
 Calls the new API to control my fan.
https://github.com/honcheng/homebridge-rfremote-fan
 Con鍖gure Homebridge to add the fans
Homebridge plugin
 Modi鍖ed an existing Homebridge plugin:
homebridge-tosrox-fan that controls a 3-speed
TOSRox fan.
 Calls the new API to control my fan.
https://github.com/honcheng/homebridge-rfremote-fan
 Con鍖gure Homebridge to add the fans
 Restart Homebridge
DIY Ceiling Fan Automation at Hackware 3.0
Home Control Center
Controlling fan speed
in Home app
IFTTT + Google Home
DIY Ceiling Fan Automation at Hackware 3.0
DIY Ceiling Fan Automation at Hackware 3.0
IFTTT + Google Home
https://www.youtube.com/watch?v=nG4gClxFI_4
How I automated My Home Fan with Raspberry Pi 3, RF
Transmitter and Homebridge
https://hackernoon.com/diy-home-automation-fan-
control-with-raspberry-pi-3-rf-transmitter-and-
homebridge-59ad24845770
A Smart Home with SG NextBus using Google Home
and Amazon Echo
https://hackernoon.com/a-smart-home-with-sg-nextbus-
using-google-home-amazon-echo-704342089727
Twitter @honcheng

More Related Content

DIY Ceiling Fan Automation at Hackware 3.0