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
82
math_36
utree
0
32
Other Decks in Programming
See All in Programming
AgentCore CLI で進化した AWS での AI エージェントの作り方 : 必要な機能を必要な時に
icoxfog417
PRO
3
360
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
330
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
280
Webの地図
yosuke_furukawa
PRO
6
4.7k
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
200
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
450
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
500
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
410
Are APIs Still Relevant in the AI Era?
soyuka
0
290
The Good Stuff, Not the Slop: Engineering High-Quality Android Apps with Modern AI Tooling
danybony
1
260
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
270
速く作れる。その次は、速く確かめられる開発へ 〜AIネイティブ開発を支える、Shift Down〜 / Can build fast. Next, moving to development where we can verify fast.
rkaga
5
3.9k
Featured
See All Featured
Bash Introduction
62gerente
615
220k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
240
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
280
Designing for humans not robots
tammielis
254
26k
WENDY [Excerpt]
tessaabrams
14
39k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
420
Paper Plane (Part 1)
katiecoart
PRO
2
11k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.6k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
380
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.1k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
2k
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 !!