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.4k
サーマルプリンタと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
660
DevLOVE関西 自分の現場でやった“こと”と“経験”をみんなが話す会 / DevLOVE Kansai sharing experiences
yuyakato
0
82
Rustの新しい書籍『実践Rust入門』の紹介 / Introduction of Rust bicycle book
yuyakato
0
270
Rubyから世界へ / Let’s start a journey around the world beyond Ruby
yuyakato
0
550
「チームで学ぼう!TensorFlow実践編」第1期で僕が学んだこと
yuyakato
0
310
Other Decks in Programming
See All in Programming
KANNA Android の技術的課題と取り組み
watabee
1
500
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
880
Носок на сок
bo0om
0
1.3k
音声プラットフォームのアーキテクチャ変遷から学ぶ、クラウドネイティブなバッチ処理 (20250422_CNDS2025_Batch_Architecture)
thousanda
0
420
Storybookの情報をMCPサーバー化する
shota_tech
3
1.1k
Bedrock × Confluenceで簡単(?)社内RAG
iharuoru
1
130
eBPF超入門「o11yに使える」とは (20250424_eBPF_o11y)
thousanda
1
120
読書シェア会 vol.4 『ダイナミックリチーミング 第2版』
kotaro666
0
110
In geheimer Mission: AI Agents entwickeln
joergneumann
0
110
By the way Google Cloud Next 2025に行ってみてどうだった
ymd65536
0
130
オープンソースコントリビュート入門
_katsuma
0
130
実践Webフロントパフォーマンスチューニング
cp20
45
10k
Featured
See All Featured
Done Done
chrislema
184
16k
Gamification - CAS2011
davidbonilla
81
5.3k
How to Think Like a Performance Engineer
csswizardry
23
1.6k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.8k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
The Invisible Side of Design
smashingmag
299
50k
Visualization
eitanlees
146
16k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
52
2.5k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
41
2.3k
Making Projects Easy
brettharned
116
6.2k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
233
17k
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 ൃදҎ্Ͱ͢