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
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
1.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Pythonでハードウェア操作 どのライブラリがいいの? ?
2022/7/14 みんなのPython勉強会#83
https://startpython.connpass.com/event/248064/
MATSUOKA Takashi
July 14, 2022
More Decks by MATSUOKA Takashi
See All by MATSUOKA Takashi
ぼっち開発から始めるGit
matsujirushi
1
440
「XIAOGYAN」への想い
matsujirushi
0
980
マイコンで動く .NET 技術談義! イントロダクション
matsujirushi
0
430
マイコンで動く .NET 技術談義! nanoFramework
matsujirushi
1
910
待ったなし!いますぐAzure IoTのルート証明書を確認せよ!
matsujirushi
0
1k
電子証明書でデバイス認証を強化せよ
matsujirushi
0
450
Seeed、ヒーローズ・リーグ2022のテクニカルサポーターやります
matsujirushi
0
320
去年のSeeed、今年のSeeed
matsujirushi
0
880
『ラズパイ自由自在 電子工作パーツ制御完全攻略本』の裏側
matsujirushi
0
870
Other Decks in Technology
See All in Technology
OSC2026on_the-world-is-waiting-for-your-voice.pdf
naruoga
0
370
メルペイ 会計システム概要と歴史
mewuto
0
210
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
300
分析AIエージェントを育てる、動く環境を育てる
codatum
1
900
AgentCoreで実践するハーネスエンジニアリング
yakumo
1
300
1万名の社員が使う認証基盤で どう信頼性を担保するか?
kairim0
0
230
FactoryBotアンチパターン / factory_bot anti-patterns
toshimaru
0
150
USB PDを使ってスマホを労わりたい
raspython3
0
160
宣言型部分更新は何を解決しどこへ向かうのか
shuta13
0
310
AI時代に必要な脅威モデリング― 変化の速度に負けない理解とリスク判断
masakane55
5
1.3k
Running Kotlin + Quarkus with Lambda
nealle
1
410
AI 時代の Azure エンジニアリング ~ 私たちは何を磨き、何を任せるのか ~
chack411
1
580
Featured
See All Featured
The SEO identity crisis: Don't let AI make you average
varn
0
580
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
790
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
How to train your dragon (web standard)
notwaldorf
96
6.9k
30 Presentation Tips
portentint
PRO
1
430
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
560
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
880
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
Bootstrapping a Software Product
garrettdimon
PRO
306
120k
Optimising Largest Contentful Paint
csswizardry
37
4k
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コードはこちら ↓