Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
サーマルプリンタとRaspberry Piでカンバンを改善した話
Search
Yuya Kato
February 22, 2019
Programming
3
1.3k
サーマルプリンタとRaspberry Piでカンバンを改善した話
Yuya Kato
February 22, 2019
Tweet
Share
More Decks by Yuya Kato
See All by Yuya Kato
技術書典7で見つけたベアメタルRust本 / Bare Metal with Rust
yuyakato
1
620
DevLOVE関西 自分の現場でやった“こと”と“経験”をみんなが話す会 / DevLOVE Kansai sharing experiences
yuyakato
0
61
Rustの新しい書籍『実践Rust入門』の紹介 / Introduction of Rust bicycle book
yuyakato
0
250
Rubyから世界へ / Let’s start a journey around the world beyond Ruby
yuyakato
0
530
「チームで学ぼう!TensorFlow実践編」第1期で僕が学んだこと
yuyakato
0
300
Other Decks in Programming
See All in Programming
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.2k
CSC509 Lecture 12
javiergs
PRO
0
160
Make Impossible States Impossibleを 意識してReactのPropsを設計しよう
ikumatadokoro
0
230
Arm移行タイムアタック
qnighy
0
330
受け取る人から提供する人になるということ
little_rubyist
0
250
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Tauriでネイティブアプリを作りたい
tsucchinoko
0
370
見せてあげますよ、「本物のLaravel批判」ってやつを。
77web
7
7.8k
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Amazon Qを使ってIaCを触ろう!
maruto
0
410
みんなでプロポーザルを書いてみた
yuriko1211
0
280
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
970
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
The Art of Programming - Codeland 2020
erikaheidi
52
13k
Designing the Hi-DPI Web
ddemaree
280
34k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
26
1.4k
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Six Lessons from altMBA
skipperchong
27
3.5k
Site-Speed That Sticks
csswizardry
0
28
Designing Experiences People Love
moore
138
23k
Transcript
αʔϚϧϓϦϯλͱRaspberry PiͰ ΧϯόϯΛվળͨ͠ !1 20192݄22(ۚ) IoT LT Osaka Vol.10 (ג)ಹ༝ଟ
Ճ౻༐
࣍ • ࣗݾհ / ࠷ۙͷ੍࡞ • ԿΛ࡞͔ͬͨʁ • Ͳ͏ͬͯ࡞͔ͬͨʁ •
·ͱΊ !2
ࣗݾհ: Ճ౻ ༐ • ιϑτΣΞΤϯδχΞʢ2000ʙʣ • גࣜձࣾಹ༝ଟ දऔకʢ2007ʙʣ ͳ Ώ
ͨ • झຯ: • ͷͮ͘Γશൠ • 3DϓϦϯλʢ2013ʙʣ • ϘϧμϦϯάʢ2011ʙʣ !3 yuyakato1984 nayutaya
τΠϨͷ༻ঢ়گΛΕͨॴʹදࣔ !4 ࠷ۙͷ੍࡞: τΠϨηϯα
࠷ۙͷ੍࡞: ϕουܕମॏܭ 4x4=16ݸͷϩʔυηϧΛ༻ ΩϟϦϒϨʔγϣϯ্͕ख͘ߦ͑ͣ࠳த !5
ԿΛ࡞͔ͬͨʁ !6 ຊʹͬͯ
αʔϚϧϓϦϯλͱRaspberry PiͰ ΧϯόϯΛվળͨ͠ !7
αʔϚϧϓϦϯλͱʁ • ײࢴʹҹ͢ΔϓϦϯλ • ʮϨγʔτϓϦϯλʯʮײࢴϓϦϯλʯ ͱݺΕΔ • ͍҆: ײࢴ͕҆ՁͰϥϯχϯάίετ͕͍҆ •
͍: ҹ͕300mm/s΄Ͳͱ͍ • ্ख͍: ׆ࣈΛҹͰ͖ΔͷͰ៉ྷͳจࣈ !8
Raspberry Piͱʁ • ݴΘͣͱΕͨ ҆ՁͳγϯάϧϘʔυίϯϐϡʔλ • Raspberry Pi 3 Model
B+$35 !9
Χϯόϯͱʁ • εΫϥϜͳͲͷ ։ൃख๏Ͱ༻͍ΒΕΔ • λεΫͷঢ়گΛ ՄࢹԽ͢Δπʔϧ • TodoɺDoingɺDone ͳͲͷϨʔϯ
• ᝦͳͲͰλεΫΛදݱ Wikipediaʮ͔ΜΜ (ιϑτΣΞ։ൃ)ʯΑΓ !10
ཧతͳΧϯόϯͷਏ͍ͱ͜Ζ !11 ͏ͷ͍͍ͩͨ ʮᝦʯͱʮϖϯʯ ࣈΛॻ͘ͷ͕ ਏ͍ɾۤख ࣈ͕Ԛ͗ͯ͢ ࡉ͔͗ͯ͢ ಡΊͳ͍
ͳͷͰ࡞Γ·ͨ͠ !12
࡞ͬͨͷ: λεΫҹγεςϜ !13 GitHubͳͲͷλεΫΛ I s s u e Webϒϥβ͔Β
αʔϚϧϓϦϯλ Λͬͯ ૉૣ͘؆୯ʹ ҹ
Χϯόϯ: αʔϚϧϓϦϯλಋೖલ • ਓʹΑͬͯҟͳΔॻ͖ํ • ಡΊͳ͍ᝦ • ॻ͘ͷ͕໘ͰషΒΕͳ͍ᝦ λ ε
Ϋ !14
Χϯόϯ: αʔϚϧϓϦϯλಋೖޙ • ॻ͔ͳͯ͘ྑ͍ʂ • ಡΈ͍͢ʂ • IssueԽ͞Ε͍ͯͳ͍ ᝦཱ͕ͭʂ λ
ε Ϋ !15
Χϯόϯ: ϏϑΥʔΞϑλʔ !16 αʔϚϧϓϦϯλಋೖલ αʔϚϧϓϦϯλಋೖޙ
Ͳ͏ͬͯ࡞͔ͬͨʁ !17
ϋʔυΣΞ !18 αʔϚϧϓϦϯλ 11,000ԁ https://amzn.to/2XdO0O9 Raspberry Pi 3B+ίϯϓΩοτ 9,500ԁ https://amzn.to/2Nhv8Jw
ϩʔϧࢴ 280ԁʢ1רʣ https://amzn.to/2txyyif USB ·ͨ Ethernet ී௨ͷLinuxϚγϯͰସՄೳ ESC/POSରԠػͳΒͨͿΜԿͰOK 80mm෯ͳΒͨͿΜԿͰOK
ιϑτΣΞ • 4ͭͷιϑτΣΞͰߏ • ҹαʔϏε • ϨϯμϦϯάαʔϏε • WebΞϓϦ •
Google Chrome ֦ு !19 Raspberry PiͷDockerίϯςφ্Ͱಈ࡞ Google ChromeʢWebϒϥβʣ্Ͱಈ࡞
ιϑτΣΞ: ҹαʔϏε !20 HTTP POST USB curl --request POST \
--header "Content-Type: image/png" \ --data-binary @hello.png http://localhost:3030/print ҹαʔϏε PNGը૾Λૹ৴͢Δͱ ϓϦϯλ͔Βҹ͞ΕΔ
ιϑτΣΞ: ϨϯμϦϯάαʔϏε !21 ϨϯμϦϯάαʔϏε HTTP POST curl --request POST \
--header "Content-Type: application/json" \ --data-binary @hello.json \ http://localhost:3031/render_html > hello.png HTMLΛؚΉJSONΛ ೖྗ͢Δͱ ϨϯμϦϯά͞Εͨ ը૾͕ग़ྗ͞ΕΔ HTTP Response
ιϑτΣΞ: WebΞϓϦ !22 ϨϯμϦϯά αʔϏε ҹ αʔϏε HTMLΛWebϒϥβͰೖྗ͢Δͱ αʔϚϧϓϦϯλ ͔Βҹ͞ΕΔ
ιϑτΣΞ: Chrome֦ு !23 ϨϯμϦϯά αʔϏε ҹ αʔϏε αʔϚϧϓϦϯλ ͔Βҹ͞ΕΔ λεΫͷϖʔδΛ։͍ͯϙνͬͱ͢Δͱ
Ԡ༻ྫ • طʹ͍ͬͯΔ͜ͱ: • ன৯ϝϯόʔͷҹ • ͪΐͬͱͨ͠ϝϞͷҹ • ͬͯΈ͍ͨ͜ͱ: •
ΞΠσΞग़͠ / ϒϨΠϯετʔϛϯά • όʔϯμϯνϟʔτͷҹ !24
·ͱΊ • αʔϚϧϓϦϯλʮ͍҆ʯʮ͍ʯʮ্ख͍ʯ • Χϯόϯ͕ΑΓ্ख͘ճΔΑ͏ʹͳͬͨɻ • Ԡ༻࣍ୈͰ͍Ζ͍ΖͰ͖Δ !25
ࢀߟ • QiitaهࣄʰαʔϚϧϓϦϯλͰҹ͢Δ: ࣍ʱ https://qiita.com/yuyakato/items/288962fbc39446644668 • GitHubϦϙδτϦ: nayutaya/thermal-printer https://github.com/nayutaya/thermal-printer !26
!27 ൃදҎ্Ͱ͢