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
Pythonでハードウェア操作 どのライブラリがいいの? ?
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
MATSUOKA Takashi
July 14, 2022
Technology
0
1.5k
Pythonでハードウェア操作 どのライブラリがいいの? ?
2022/7/14 みんなのPython勉強会#83
https://startpython.connpass.com/event/248064/
MATSUOKA Takashi
July 14, 2022
Tweet
Share
More Decks by MATSUOKA Takashi
See All by MATSUOKA Takashi
ぼっち開発から始めるGit
matsujirushi
1
370
「XIAOGYAN」への想い
matsujirushi
0
900
マイコンで動く .NET 技術談義! イントロダクション
matsujirushi
0
390
マイコンで動く .NET 技術談義! nanoFramework
matsujirushi
1
850
待ったなし!いますぐAzure IoTのルート証明書を確認せよ!
matsujirushi
0
990
電子証明書でデバイス認証を強化せよ
matsujirushi
0
410
Seeed、ヒーローズ・リーグ2022のテクニカルサポーターやります
matsujirushi
0
280
去年のSeeed、今年のSeeed
matsujirushi
0
850
『ラズパイ自由自在 電子工作パーツ制御完全攻略本』の裏側
matsujirushi
0
830
Other Decks in Technology
See All in Technology
大規模な組織におけるAI Agent活用の促進と課題
lycorptech_jp
PRO
6
7.8k
メタデータ同期に潜んでいた問題 〜 Cache Stampede 時の Cycle Wait を⾒つけた話
lycorptech_jp
PRO
0
150
組織のSREを推進するためのPlatform EngineeringとEKS / Platform Engineering and EKS to drive SRE in your organization
chmikata
0
180
Datadog Cloud Cost Management で実現するFinOps
taiponrock
PRO
0
140
社内でAWS BuilderCards体験会を立ち上げ、得られた気づき / 20260225 Masaki Okuda
shift_evolve
PRO
1
160
Oracle Cloud Infrastructure:2026年2月度サービス・アップデート
oracle4engineer
PRO
0
220
生成AI活用によるPRレビュー改善の歩み
lycorptech_jp
PRO
5
2k
Lookerの最新バージョンv26.2がやばい話
waiwai2111
1
150
男(監査)はつらいよ - Policy as CodeからAIエージェントへ
ken5scal
5
730
GitLab Duo Agent Platform + Local LLMサービングで幸せになりたい
jyoshise
0
100
EMからICへ、二周目人材としてAI全振りのプロダクト開発で見つけた武器
yug1224
3
390
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
360
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
120
Paper Plane (Part 1)
katiecoart
PRO
0
5.1k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
The Spectacular Lies of Maps
axbom
PRO
1
580
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.4k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
230
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
310
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
370
A better future with KSS
kneath
240
18k
Deep Space Network (abreviated)
tonyrice
0
86
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
380
My Coaching Mixtape
mlcsv
0
63
Transcript
Pythonでハードウェア操作 どのライブラリがいいの? ? Takashi Matsuoka @matsujirushi12 - 2022/7/14 みんなのPython勉強会#83 -
Takashi Matsuoka @matsujirushi12 2017~ MVP for Windows Development 2020~ for
Microsoft Azure 「e」3つ “初心者の次”へ行くのに身に付けるべきスキルをとりまとめた書籍 ↑
温湿度センサー サーボモーター 小型ディスプレイ ハードウェア操作 3大要素 ラズパイ 40ピンヘッダ GPIO, PWM, I2C,
SPI, UART #1 部品選定 #2 結線 #3 操作
RPi.GPIO https://sourceforge.net/projects/raspberry-gpio-python/ gpiozero https://github.com/gpiozero/gpiozero WiringPi for Python https://github.com/WiringPi/WiringPi-Python/ pigpio https://github.com/joan2937/pigpio
ハードウェア操作で使うPythonパッケージ
reComputer Jetson ODYSSEY x86 Coral Dev Board ODYSSEY STM33MP157C ラズパイじゃないやつ
機械学習 機械学習 Linux + RTOS Intel
Adafruit Blinka https://github.com/adafruit/Adafruit_Blinka ✓ GPIO, PWM, I2C, SPI, UART ✓
対応ボード 80種以上(MPU+MCU) https://circuitpython.org/blinka ✓ ソースコードがPython × Python古いとインストールできない × 未対応ボードだと使えない!?
Eclipse MRAA https://github.com/eclipse/mraa ✓ GPIO, PWM, I2C, SPI, UART ✓
対応ボード 20種以上(MPU) ✓ 未対応ボードでも動く!? × ソースコードがC言語 SWIGで各種言語のラッパーを生成
Eclipse MRAA on Raspberry Pi 4 - Python デジタル 入力
デジタル 出力 PWM 出力 I2C SPI UART https://qiita.com/matsujirushi/items/c6842f3c517c4898e28d 具体的なPythonコードはこちら ↓