Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
少し幸せになれるスマートなリモコンを作る / Making-a-Smart-remote-co...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kattyan
July 13, 2022
How-to & DIY
470
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
少し幸せになれるスマートなリモコンを作る / Making-a-Smart-remote-controller
参考にさせていただいたQiitaの記事:
激安スマートリモコンの作り方<\a>
Kattyan
July 13, 2022
More Decks by Kattyan
See All by Kattyan
gVisorを使おう!/ Let's use gVisor!
sou1118
0
240
QPACK って何?/What is QPACK?
sou1118
0
840
スライド操作用リモコンを作った話/Making-a-remote-control-for-slide-operation
sou1118
0
450
マイナンバーカードを用いた認証について/Authentication-using-the-My-Number-Card
sou1118
0
930
マイナンバーカードの有効利用法を探る / Finding-ways-to-use-my-number-card
sou1118
0
430
Other Decks in How-to & DIY
See All in How-to & DIY
Rails 8.1.1 × Claude Code
miyakawa2449
1
160
JAWS-UG横浜100回記念 私のAWS ジャーニーと日本からみた横浜支部
awsjcpm
0
530
AWS Community Builders Update - JAWS-UG Tokyo and Sainokuni
awsjcpm
3
350
地域コミュニティって いいよね/Local Communities Are Pretty Great
aokiplayer
1
160
餃子コミュニティの活性化/TechGYOZA
nishiuma
2
430
スイングやカードをいい感じに立てるスタンドの話
niccolli
1
550
人見知りな HUB おじさんが 会話のハードルを超え、 今度は誰かの踏み台になろうとする話/hub-guy-as-a-stepping-stone
aokiplayer
2
1.6k
ROSAというLLM使ったROSエージェントをおもちゃに実装してみた話
takeofuture
0
360
ときメモは 運営が30年かけて “実プレイ”していた
mzryuka
1
180
How to Stylus 20251031
hareyakayuruyaka
0
200
多摩ニュータウンを、 味わう
aokiplayer
2
1.1k
JAWS-UG/AWS Community Update - JAWS-UG栃木 #6
awsjcpm
0
170
Featured
See All Featured
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
620
エンジニアに許された特別な時間の終わり
watany
109
250k
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
290
Mind Mapping
helmedeiros
1
430
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.4k
Navigating Weather and Climate Data
rabernat
0
580
Designing for Timeless Needs
cassininazir
1
550
Design in an AI World
tapps
1
380
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Visualization
eitanlees
153
17k
From π to Pie charts
rasagy
1
430
It's Worth the Effort
3n
188
29k
Transcript
少し幸せになれるスマートリモコンを作る @sou1118 1
目的 外出先から自宅のRaspberry Pi を操作して、エアコンを起動させる 2
用意するもの いずれも秋月電子通商で購入 Raspberry Pi (シリーズは問わない) ブレッドボード(長期的に使う場合はユニバーサル基板) 赤外線 LED 赤外線受信モジュール 抵抗
トランジスタ ジャンパ線、ワイヤー線 3
使用するソフトウェア pigpio(GPIO制御ライブラリ) IR Record and Playback(pigpioを用いた送受信プログラム) 4
赤外線受信回路 受信モジュールと Raspberry Pi をつなぐ。 購入した受信モジュールによって回路は異なるので回路図は割愛 5
リモコンの赤外線を受信する エアコンの運転スイッチの情報を取得するには python3 irrp.py -r -ピン番号 -f codes --no-confirm --post
50 ac:cool を実行し、赤外線 LED に向けリモコンを押す。 codes の中に JSON 形式で信号が出力される。 6
赤外線送信回路 トランジスタ、赤外線 LED, 使っているものに応じたオーム数の抵抗 をつなげる 購入したものによって回路は異なるので回路図は割愛 7
信号を送信する 信号を送信するには python3 irrp.py -p -ピン番号 -f codes ac:cool を実行する。
赤外線 LED が光り、エアコンが起動する 8
外出先からつなげる 主に Slack などから API を用いて Bot を作り操作 VPN をつなげて操作
が挙げられる。時間の都合上、後者を選択 9
VPN をつなげる 今回は tailscale を使用した ポート開放が必要ない <- 重要 公式ドキュメントも充実しているかつ設定が簡単なのでおすすめ 10
GUI 上から操作する(今後やりたい) Nginx を用いてサーバを立ち上げ、フロントエンドは React? Svelt? で 書く もしくは、iOS /
iPad OS に入ってる Homekit を使って操作できるよ うにする(難しそう) 11
感想 Switch Bot を買った方が、時間も値段もかからず快適に使えていいと 思います(2022/07/12 現在セール中) 12
参考文献 @takjg. 激安スマートリモコンの作り方. Qiita. 2018. 井上直也, 村山公保, 竹下隆史, 荒井透, 苅田幸雄
共著. マスタリング TCP/IP 入門編 第6版. オーム社. 2019. 13