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
Saito5656
June 20, 2022
Programming
390
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ラズベリーパイで工場が見える話
Unagi.py 勉強会53枚目in スイーツバンクでLT予定の原稿を登録します。よろしくお願いいたします!
Saito5656
June 20, 2022
More Decks by Saito5656
See All by Saito5656
今年やったこと最近やったこと2025
saito5656
0
56
ついに(CDKで)Cognito実装した話
saito5656
0
160
今年やったこと最近やったこと2024
saito5656
0
240
今年やったこと最近やったこと
saito5656
1
240
【ポエム】PythonのWatchdogを調べてみた
saito5656
0
690
LoRaデバイスからAWS IoTに通信やってみた
saito5656
1
360
Local NW データを S3 に転送してみた
saito5656
0
100
シェル芸人見習い修行 〜 ラズパイ で 一発環境 構築してみた 〜
saito5656
1
230
工場でStep FunctionsでStep Functions
saito5656
0
220
Other Decks in Programming
See All in Programming
半永久的に提供し続けられるプライベートクラウドを目指して ― 利用者の認知負荷を抑えるAPI抽象化とハードウェア世代交代の基盤設計
tomokon
0
510
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
250
Domain-Driven Transformation
hschwentner
2
2.3k
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
170
残高管理から台帳サービスへの進化
artoy
1
210
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
530
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.7k
[2026-10-14](C)Re:ゼロから始める異世界生活〜始まりの終わりと終わりの始まり〜
tosite
0
120
機械に任せるテスト、人が見るテスト ⽣成AIで引き直した、運⽤保守フェーズの線引き
dske104
0
190
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
Featured
See All Featured
WENDY [Excerpt]
tessaabrams
14
40k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Crafting Experiences
bethany
1
390
Claude Code のすすめ
schroneko
67
230k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
570
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Transcript
ラズベリーパイで工場が見える話 @Saito5656 2022. 6. 25 Unagi.py 勉強会53枚目 in スイーツバンク
自己紹介(Py流は「お前誰よ」でmm) @Saito 5656 情報技術者ではない?が 静岡のITコミュニティに出没する 浜松在住の変なオヂサン にわかだけど製造業の情シス アイコンは同居する🐈
祝・春華堂スイーツバンクさんコラボ記念 『お菓子にまつわるPythonのはなし』
お菓子にまつわるPythonと言えば…コレ! と言うことで少し強引ですが ここからは製造業でのRaspberryPi活用事例をご紹介します
実は勤務先では国内で 30台以上稼働中
春華堂さん近所でも 約20台動いてます 現在の常駐先はnicoe店さんから直線距離700mだったりします 弊社 浜北工場
がしてるのは生産データの自動取得 稼働と停止の自動集計 各色単体の点灯点滅を積算 パターン別の積算時間に再計算
今日の話は全体Architectureのこの部分 IoT hing / gateway MQTTS Factory Machine Tools IoT
topic for Time line IoT topic for summary 今日の話 RPAで 電子日報に入力 sfnで自動集計 生産開始と終了の時刻 設備の稼働/不稼働/停止時間
中身はタワー信号と生産数をpubするloop 作る過程でmethodを整理分類した流れでClass分けもしました
Projectの構成 src ┣ main_Pr.py ┣ awsMQTTconnect.py ┣ data_process.py ┣ init_obj.py
┣ obj_container_Pr.py ┣ sensing.py ┗ /cert sensing、data_process、awsMQTTconnectを呼び出して タワーライト状態と製品通過を検知積算して、AWSにpublish MQTTクライアントを起動してobject作成し、各種triggerでpubするmethod タワーライトの連続点灯を判定して時間を積算、pub用のdatasetも作成 起動時とシフト切り替え時にオブジェクトを初期化するmethod mainで受け渡しする各種オブジェクトとclassオブジェクトを定義 タワーライト状態とワーク通過のロジック信号を設備から受け取る関数 AWS IoTとのmqtts接続に必要な証明書とroot証明書を格納するdirectory
main.py 状態取得->積算->dataset->pub->状態保存のloop
awsMQTTconnect.py AWS IoT mqtt brokerとmqtts確立してpublish
obj_container_Pr.py 環境変数読み込みとmqtt起動、定数定義
init_obj.py obj_containerとshift切替時の初期化
sensing.py タワー状態とワーク通過をロジック受信 CTセンサー利用を想定したmethodも準備
data_process.py タワーライトの連続点灯判定と積算 pub用のdatasetも作成
動作(AWS IoT MQTTクライアントでのsub)
最後に お菓子×Python= とからめて 製造業内作でのRaspberryPi活用事例をご紹介しました いずれIoTピザのような食品IoTも挑戦したく思います 定価のRaspberryPi安定供給が待ち遠しいですね(心の声
参考 本LTを捕捉する内容として以下もご参考ください https://speakerdeck.com/nsaito9628/gong-chang-destep- functionsdestep-functions https://speakerdeck.com/nsaito9628/pycharity202109- pythonwoiothuo-yong-suruxiao-netahua
ご清聴ありがとうございました