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
860
待ったなし!いますぐAzure IoTのルート証明書を確認せよ!
matsujirushi
0
1k
電子証明書でデバイス認証を強化せよ
matsujirushi
0
410
Seeed、ヒーローズ・リーグ2022のテクニカルサポーターやります
matsujirushi
0
280
去年のSeeed、今年のSeeed
matsujirushi
0
850
『ラズパイ自由自在 電子工作パーツ制御完全攻略本』の裏側
matsujirushi
0
830
Other Decks in Technology
See All in Technology
僕、S3 シンプルって名前だけど全然シンプルじゃありません よろしくお願いします
yama3133
1
230
生成AI活用でQAエンジニアにどのような仕事が生まれるか/Support Required of QA Engineers for Generative AI
goyoki
1
270
NewSQL_ ストレージ分離と分散合意を用いたスケーラブルアーキテクチャ
hacomono
PRO
4
400
2026年もソフトウェアサプライチェーンのリスクに立ち向かうために / Product Security Square #3
flatt_security
1
660
コンテキスト・ハーネスエンジニアリングの現在
hirosatogamo
PRO
4
500
A Casual Introduction to RISC-V
omasanori
0
380
詳解 強化学習 / In-depth Guide to Reinforcement Learning
prinlab
0
300
進化するBits AI SREと私と組織
nulabinc
PRO
1
250
Kiro Powers 入門
k_adachi_01
0
120
WebアクセシビリティをCI/CDで担保する ― axe DevTools × Playwright C#実践ガイド
tomokusaba
2
180
VPCエンドポイント意外とお金かかるなぁ。せや、共有したろ!
tommy0124
1
700
Google系サービスで文字起こしから勝手にカレンダーを埋めるエージェントを作った話
risatube
0
190
Featured
See All Featured
Everyday Curiosity
cassininazir
0
170
The Curious Case for Waylosing
cassininazir
0
270
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
74
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
320
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
320
A Modern Web Designer's Workflow
chriscoyier
698
190k
How GitHub (no longer) Works
holman
316
150k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.3k
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
270
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
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コードはこちら ↓