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
hannari_python_lt
Search
Utree
May 17, 2019
Programming
260
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
hannari_python_lt
Utree
May 17, 2019
More Decks by Utree
See All by Utree
command_line_3
utree
0
43
command_line_1
utree
0
35
command_line_2
utree
0
43
ml_1
utree
0
39
ml_2
utree
0
55
math_41
utree
0
36
math_45
utree
0
37
KHCoder
utree
0
83
math_36
utree
0
32
Other Decks in Programming
See All in Programming
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
270
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
170
Workers Cache を知る
syumai
0
360
Kotlinの15年とServer-Side Kotlin
n_takehata
1
150
ActionController meets Protocol Buffers
sorah
0
520
[2026-09-26]空論ジェネリックプロセス~テスト資産とAIで紡ぐ、再現可能なパフォーマンスチューニングの話~
tosite
0
270
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
ジョジョの世界をXRで再現する
mofurune
0
160
npm との違いを手がかりにGo の依存管理を理解したい
optim
0
310
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
790
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
130
Railsのためのパスキー実践入門 〜マルチテナントSaaSでの意思決定〜
utakaha
2
550
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
740
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
Done Done
chrislema
187
17k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
320
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Skip the Path - Find Your Career Trail
mkilby
1
260
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Code Review Best Practice
trishagee
74
20k
Transcript
Ҿ͖ग़͠ʹPython Ai LockerΛ࡞͓ͬͨ
ࣗݾհ • ؔ୩ါر • ؔେֶɹ૯߹ใֶ෦ɹ̏ • Twitter: @Utree_0322
None
None
None
None
None
None
࡞ͬͨͷ
Ai Locker • Ҿ͖ग़͠ • ΞϓϦͰࢪৣɾղৣ • ମݕग़ΛτϦΨʹ • αʔϘϞʔλʔͰϩοΫͷػߏΛ࣮
σϞಈը
None
ΞʔΩςΫνϟ
None
None
࣮
ࢀߟʹͨ͠αΠτ https://qiita.com/DRM/items/52e2837236e5b87c2bdd
αʔϘϞʔλͷଓ
Πϯετʔϧ $ pip install RPi.GPIO
ίʔυ
Πϯϙʔτ import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18
# GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup()
੍ޚ͢Δϐϯ൪߸Λࢦఆ import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18
# GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup() https://tool-lab.com/make/raspberrypi-startup-22/
੍ޚ͢Δϐϯ൪߸Λࢦఆ import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18
# GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup()
import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18 #
GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup() PWMͷઃఆ
PWMͷ੍ޚ import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18
# GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup()
ऴྃ import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18
# GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup()
࣮ import RPi.GPIO as GPIO import time # GPIOのピン番号 PIN=18
def lock(): # GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(6) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup() def unlock(): # GPIO番号でピンを指定する設定にセット GPIO.setmode(GPIO.BCM) # GPIOの入出力設定 18番をOUTにする GPIO.setup(PIN,GPIO.OUT) # PWMの設定 servo=GPIO.PWM(PIN,60) # PWMの開始 servo.start(12.5) # ロック servo.ChangeDutyCycle(12.5) # sleep(調整用) time.sleep(1) # 終了 servo.stop() GPIO.cleanup()
ݺͼग़͠ # 施錠 lock() # 解錠 unlock()
݁Ռ
࠷༏ल
Thank you !!