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
MATSUOKA Takashi
July 14, 2022
Technology
1.5k
0
Share
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
370
「XIAOGYAN」への想い
matsujirushi
0
920
マイコンで動く .NET 技術談義! イントロダクション
matsujirushi
0
390
マイコンで動く .NET 技術談義! nanoFramework
matsujirushi
1
860
待ったなし!いますぐAzure IoTのルート証明書を確認せよ!
matsujirushi
0
1k
電子証明書でデバイス認証を強化せよ
matsujirushi
0
430
Seeed、ヒーローズ・リーグ2022のテクニカルサポーターやります
matsujirushi
0
290
去年のSeeed、今年のSeeed
matsujirushi
0
850
『ラズパイ自由自在 電子工作パーツ制御完全攻略本』の裏側
matsujirushi
0
840
Other Decks in Technology
See All in Technology
Route 53 Global Resolver で高額課金発生!
otanikohei2023
0
100
ぼくがかんがえたさいきょうのあうとぷっと
yama3133
0
190
ARIA Notifyについて
ryokatsuse
1
120
Amazon S3 Filesについて
yama3133
2
210
自分のハンドルは自分で握れ! ― 自分のケイパビリティを増やし、メンバーのケイパビリティ獲得を支援する ― / Take the wheel yourself
takaking22
1
910
サイボウズ 開発本部採用ピッチ / Cybozu Engineer Recruit
cybozuinsideout
PRO
10
78k
データを"持てない"環境でのアノテーション基盤設計
sansantech
PRO
1
120
Claude Code を安全に使おう勉強会 / Claude Code Security Basics
masahirokawahara
11
33k
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
16k
こんなアーキテクチャ図はいやだ / Anti-pattern in AWS Architecture Diagrams
naospon
1
450
Pure Intonation on Browser: Building a Sequencer with Ruby
nagachika
0
120
最初の一歩を踏み出せなかった私が、誰かの背中を押したいと思うようになるまで / give someone a push
mii3king
0
160
Featured
See All Featured
BBQ
matthewcrist
89
10k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Code Review Best Practice
trishagee
74
20k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.1k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
500
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.4k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
730
Exploring anti-patterns in Rails
aemeredith
3
320
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
520
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
200
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コードはこちら ↓