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
C.H.I.P. de CHIME
Search
tetrapod117
August 29, 2017
Programming
230
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
C.H.I.P. de CHIME
https://studygroup-umecanoit.connpass.com/event/64342/
こちらのLTで使用したスライドです。
tetrapod117
August 29, 2017
More Decks by tetrapod117
See All by tetrapod117
KrankyGeek2019に行ってきた
tetrapod117
0
110
Nowで始める、ナウでヤングなBot生活
tetrapod117
1
140
DashButton Hack!
tetrapod117
0
1.4k
Other Decks in Programming
See All in Programming
Go × SIMDで高速化するベクトル検索 ~ルーフラインモデルでSIMDが効く境界を探れ! ~
po3rin
1
1.6k
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
130
AIは賢い。でも実行環境は? CLIおじさんがAI時代に伝えたいこと ~ CLIおじさんがAI時代に伝えたいこと ~
curekoshimizu
1
250
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
130
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
430
Intent as Code
shoppingjaws
6
1k
フロントエンドUIフレームワークのこれまでとこれから
ssssota
5
2.8k
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
160
XHTMLが残したもの
yosuke_furukawa
PRO
2
810
Kiroで創り、AgentCoreで繋ぐ!AWSで実践する「AI-DLC」から「AIエージェント統合」までの最新地図
licux
4
700
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
250
すこし踏み込む CancellationToken
htkym
1
380
Featured
See All Featured
The untapped power of vector embeddings
frankvandijk
2
1.9k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Mind Mapping
helmedeiros
1
360
Bash Introduction
62gerente
615
220k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
240
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
390
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
The SEO identity crisis: Don't let AI make you average
varn
0
560
What's in a price? How to price your products and services
michaelherold
247
13k
Building AI with AI
inesmontani
PRO
1
1.2k
Transcript
C.H.I.P. de CHIME
今回はバイト先のお話
プログラミングTA(担任補助)やってます
その高校キャンパスの課題...
キャンパスにチャイムがない
ないなら作ればいいじゃないか! 買えよとか言わないで...
必要なもの • C.H.I.P.(ラズパイでもOK) • モニター • 4極ミニプラグ+RCAプラグ(ラズパイならHDMI) • スピーカー
C.H.I.P.とは? • 誰でも持ってる、シングル ボードコンピュータの1つ • 値段は1つ9ドル • 2年ほど前にKickStarterで資 金集めて有名になった
C.H.I.P.の主なスペック • CPU:1GHz Processor • RAM:512MB • 4GBのストレージが内臓 • WiFiとBluetoothが内臓
• 映像出力がコンポジット出力のみ(HDMIの変換があるが動かなかった) • OSはオリジナルのCHIP OS(Debian系)
Rasberry Pi Zeroとの比較
ということで、今回はC.H.I.P.を使っ てチャイムを作ります。 理由は、家にC.H.I.P.があったからです。
まぁでもチャイムって...
時間通りにチャイムの音を鳴らすだけです よね 例:朝9時30分に始業チャイムなど
ということで作り方は 1.チャイムの音を流すプログラムを書く 2.そのプログラムをcronで決められた時間に実行 するようにする 以上
チャイムの音を鳴らすプログラム Python2.7がデフォルトでインストールされているので、Pythonを用います まず、Pygameをインストール Pygame・・・Pyhotnのゲーム制作用のモジュール
チャイムの音を鳴らすプログラム
cronの設定 これでcronの設定を開く
cronの設定 たとえば、毎日朝9時30分にチャイムを鳴らしたければこんな感じ [分][時][日][月][曜日] [コマンド]
デモ
まとめ • C.H.I.P.のようなシングルボードコンピューターがあるよ! • チャイムを作るにはPygameとcronを使えばいいよ • もっとクールな方法があれば教えてください!
ご静聴ありがとうございました。