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
Kattyan
July 13, 2022
How-to & DIY
460
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
230
QPACK って何?/What is QPACK?
sou1118
0
830
スライド操作用リモコンを作った話/Making-a-remote-control-for-slide-operation
sou1118
0
450
マイナンバーカードを用いた認証について/Authentication-using-the-My-Number-Card
sou1118
0
920
マイナンバーカードの有効利用法を探る / Finding-ways-to-use-my-number-card
sou1118
0
420
Other Decks in How-to & DIY
See All in How-to & DIY
人見知りな HUB おじさんが 会話のハードルを超え、 今度は誰かの踏み台になろうとする話/hub-guy-as-a-stepping-stone
aokiplayer
2
1.5k
家庭植物工場×Node-REDの話
maepu
0
120
RustでもVJしたい!
taiseiue
0
110
JAWS-UG 山梨 第10回 勉強会 Community Update
awsjcpm
0
1.1k
5年間ぐらい、 スプリントレトロスペクティブは、 「+/Δ」しかしてないので、 あらためて良いのか悪いか考えてみる / Doing Plus Delta for about five years
camel_404
1
510
餃子コミュニティの活性化/TechGYOZA
nishiuma
2
420
AIツール“三種の神器”ではじめる 自動運転AIチャレンジ
covao
0
150
放っておくと怖い睡眠負債について/fjordbootcamp-251122
yuukago
3
380
OpenClawハンズオンでのトラブルとデバイス向けなんちゃらクロー #IoTLT vol133
n0bisuke2
1
310
JAWS-UG/AWS Community Update - JAWS-UG栃木 #6
awsjcpm
0
160
グローバルチームでなんとかしがみつく英語コミュニケーション
yatsu
0
110
AWS/JAWS-UG Community Updates at JAWS-UG Kagoshima
awsjcpm
0
110
Featured
See All Featured
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
New Earth Scene 8
popppiees
4
2.7k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
It's Worth the Effort
3n
188
29k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Fireside Chat
paigeccino
43
4.1k
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Git: the NoSQL Database
bkeepers
PRO
433
67k
Designing for Timeless Needs
cassininazir
1
520
Producing Creativity
orderedlist
PRO
348
41k
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