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
680
DevLOVE関西 自分の現場でやった“こと”と“経験”をみんなが話す会 / DevLOVE Kansai sharing experiences
yuyakato
0
84
Rustの新しい書籍『実践Rust入門』の紹介 / Introduction of Rust bicycle book
yuyakato
0
280
Rubyから世界へ / Let’s start a journey around the world beyond Ruby
yuyakato
0
560
「チームで学ぼう!TensorFlow実践編」第1期で僕が学んだこと
yuyakato
0
310
Other Decks in Programming
See All in Programming
プロダクトという一杯を作る - プロダクトチームが味の責任を持つまでの煮込み奮闘記
hiliteeternal
0
300
Comparing decimals in Swift Testing
417_72ki
0
140
Android 15以上でPDFのテキスト検索を爆速開発!
tonionagauzzi
0
180
構文解析器入門
ydah
7
1.9k
Vibe coding コードレビュー
kinopeee
0
350
顧客の画像データをテラバイト単位で配信する 画像サーバを WebP にした際に起こった課題と その対応策 ~継続的な取り組みを添えて~
takutakahashi
4
1.4k
코딩 에이전트 체크리스트: Claude Code ver.
nacyot
0
1k
AI Ramen Fight
yusukebe
0
120
11年かかって やっとVibe Codingに 時代が追いつきましたね
yimajo
0
220
The Niche of CDK Grant オブジェクトって何者?/the-niche-of-cdk-what-isgrant-object
hassaku63
1
720
AIコーディングエージェント全社導入とセキュリティ対策
hikaruegashira
15
8.8k
No Install CMS戦略 〜 5年先を見据えたフロントエンド開発を考える / no_install_cms
rdlabo
0
390
Featured
See All Featured
Fireside Chat
paigeccino
37
3.6k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
53
2.9k
Art, The Web, and Tiny UX
lynnandtonic
301
21k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.8k
Six Lessons from altMBA
skipperchong
28
3.9k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
8
400
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 ൃදҎ্Ͱ͢