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
小型ファンヒーターハックのお話 その後
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Tarosa
January 11, 2019
Technology
620
3
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
小型ファンヒーターハックのお話 その後
去年のおうちハックでLTした小型ファンヒーターハック話の続きです。
IoTLT2019新年会にてLTしました。
Tarosa
January 11, 2019
Transcript
16 slides
山本三七男 (たろサ) 小型ファンヒーター ハックのお話 その後 去年、おうちハックで LTした
自己紹介
3 自己紹介 みかん ・ルアリダワークス 代表 ・ルアリダワークス 代表 ・ビジュアル・テクノロジ ー研究所 ・ビジュアル・テクノロジ
ー研究所 リモート社員 リモート社員 ・ ・Wakayama.rb Wakayama.rb 主催 主催 ・和歌山デジもく会 主催 ・和歌山デジもく会 主催
4 ボードも紹介 ・Ruby プログラムは、 GR-CITRUS ・WiFi通信は、 WA-MIKAN ・モーター制御は、 SAMBOU-KAN
5 使 用 例 重ねるだけで、 すべての機能が使えます
6 3Dプリンタの温調 冷えると上手くプリント 冷えると上手くプリント できない できない
7 小型ファンヒーター 温度調節ができない
8 ファンヒーターハック ファンヒーターの転倒検出バーを 押す機構 押す機構
去年は、ここまで で、 春が来ました
あれから、 二転 三転
11 電源スイッチ化 小型ファンヒーターの コンセント部を スイッチ化 これで、600Wは、 アッチッチ、危険。
12 裏から押す
13 できました 温度センサ(DS18B20)
14 プログラムは Ruby System.exit "WA-MIKAN can't use." if(!System.use?("WiFi")) System.exit "DS18B20
can't use." if(!System.use?('DS18B20')) while true do DS18B20.convert Add delay wait temp = DS18B20.read Add if(Sw == SwOff && temp < Min && temp != -999)then Sw = SwOn Servo.write(0, Sw) elsif(Sw == SwOn && temp > Max)then Sw = SwOff Servo.write(0, Sw) end tm = Rtc.getTime if(tm[5] == 10)then if(Sw == SwOn)then body = '{"value1":"温度: ' + temp.to_s + ' ","value2":" ℃ スイッチ: ON","value3":""}' else body = '{"value1":"温度: ' + temp.to_s + ' ","value2":" ℃ スイッチ: OFF","value3":""}' end WiFi.httpPost(IFTTT, Header, body).to_s end led end 最近はPythonも 走るようです
15 温度はツイート とりあえず、 とりあえず、 3D 3Dプリント中の プリント中の 温度は、 温度は、 ツイッターで
ツイッターで 確認できます 確認できます
ご清聴ありがとう ございました 1/27 Ruby和歌山 と、 デジもく和歌山 の もくもく会やります。
More Decks by Tarosa
See All by Tarosa
290円のマイコンでRubyを動かす ― UIAPrubyと缶サットへの挑戦
tarosay
0
67
UIAPduinoの説明
tarosay
0
44
数百円から始めるRuby電子工作
tarosay
0
290
AIで宇宙甲子園 缶サット部門 近畿大会のテーマソングを作る
tarosay
0
53
mrubyとWakayama.rb ~mrubyと共に歩んだ10年~
tarosay
0
180
【THETA撮影会 in 大阪】建築・照明デザイナーとエンジニアのための視環境設計 #4
tarosay
0
270
評価画像変換の簡単な説明
tarosay
0
230
建築・照明デザイナーとエンジニアのための視環境設計
tarosay
0
300
模擬人工衛星DangoSatプロジェクト
tarosay
0
320
Other Decks in Technology
See All in Technology
[NW-JAWS DAY]「うちのAWS、インターネット出られないんで」― AWS外の自社サービスをPrivateLinkでシュッと公開する方法
ykimi
3
920
Agent Routerで作るマルチテナント 推論基盤 #CNDW2026 / Building Multi-Tenant Inference Platform with Agent Router #CNDW2026
everpeace
5
610
「正しいデータ」の定義をAI エージェントとつくるGoogleADKによるデータ品質定義の実践
takaha4k
0
140
セキュリティチームは どのコンテナイメージの脆弱性対応を優先すべきか 〜CISA新指針とSCCで作る脆弱性トリアージ〜
swdtkuy
0
330
その修正で本当に速くなったのか? k6とOpenTelemetryで確かめる性能改善 / Performance review with k6 and OpenTelemetry
ymotongpoo
3
440
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
250
AWS Blocksで AIエージェント作れるの知ってます?
kmiya84377
1
170
IVRy における AI 時代のデータプロダクトと事業開発
ivry_presentationmaterials
0
110
Well, that’s weird…
csswizardry
1
210
Dark Web - Como o Cibercrime Opera na Internet
nicholsjasper
0
110
Is the Website Dying?
miriamschwab
0
160
Del vibe coding a un Desarrollo (agéntico) fiable
jcabot
0
220
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Practical Orchestrator
shlominoach
192
12k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.5k
Making the Leap to Tech Lead
cromwellryan
135
10k
Tell your own story through comics
letsgokoyo
1
1.1k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Typedesign – Prime Four
hannesfritz
42
3.2k
The Pragmatic Product Professional
lauravandoore
37
7.5k
WENDY [Excerpt]
tessaabrams
15
41k