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
Qemb #01 Lightning Talk
Search
Keiichiro
December 24, 2012
Technology
2
200
Qemb #01 Lightning Talk
九州・熊本ハードウェア/組み込み系勉強会「Qemb」#01で発表したプレゼンです。
Keiichiro
December 24, 2012
Tweet
Share
More Decks by Keiichiro
See All by Keiichiro
Weather Data Scraping
9sq
0
170
Let's try using AkiCart!!
9sq
0
830
Getting Started with ESP8266
9sq
1
210
Devsumi2016 OuchHackLT RESTful Toilet
9sq
0
120
An Attempt to Volcanic Activity Information Delivery using a Push Notification Service.
9sq
0
310
how to use ZY-FGD1442701V1 with mbed
9sq
0
6.3k
Security SAKURA #04 Lightning Talk
9sq
1
3.3k
Other Decks in Technology
See All in Technology
GitHub Copilot のテクニック集/GitHub Copilot Techniques
rayuron
23
11k
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
大幅アップデートされたRagas v0.2をキャッチアップ
os1ma
2
520
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
620
podman_update_2024-12
orimanabu
1
260
AWS re:Invent 2024で発表された コードを書く開発者向け機能について
maruto
0
180
Postman と API セキュリティ / Postman and API Security
yokawasa
0
200
Wvlet: A New Flow-Style Query Language For Functional Data Modeling and Interactive Data Analysis - Trino Summit 2024
xerial
1
110
Turing × atmaCup #18 - 1st Place Solution
hakubishin3
0
470
DevOps視点でAWS re:invent2024の新サービス・アプデを振り返ってみた
oshanqq
0
180
スタートアップで取り組んでいるAzureとMicrosoft 365のセキュリティ対策/How to Improve Azure and Microsoft 365 Security at Startup
yuj1osm
0
210
なぜCodeceptJSを選んだか
goataka
0
150
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
VelocityConf: Rendering Performance Case Studies
addyosmani
326
24k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
The Pragmatic Product Professional
lauravandoore
32
6.3k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
A better future with KSS
kneath
238
17k
Making Projects Easy
brettharned
116
5.9k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Speed Design
sergeychernyshev
25
670
Transcript
3BTQCFSSZ1JͰ(1*0ͳ Kei Yoshimura (@9SQ)
3BTQCFSSZ1JͬͯԿʁ ɾӳࠃϥζϕϦʔύΠࡒஂ͕։ൃͨ͠ARMࡌ ɹΧʔυαΠζίϯϐϡʔλɻ ɾίϯϐϡʔλڭҭΛతͱͯ͠ઃܭɺ҆Ձɻ ɾLinux͕ಈ͘ʂ
None
None
º(1*0 6"35 *$ 41* 7 7 (/% )%.* .CQT
&UIFSOFU 3+ 4%Χʔυεϩοτ .JDSP64# ిݯ༻ ίϯϙδοτग़ྗ NNδϟοΫ 64#ºϙʔτ
SDRAM 256MB / 512MB Broadcom VideoCore IV OpenGL ES 2.0
HD(1080p) H.264/MPEG4σίʔμ ARM11ϑΝϛϦʔ ARM1176JZF-S 700MHz HDMI ίϯϙδοτ 3.5mmεςϨΦϛχ SD Χʔυ SDIO USB HUB USB USB GPIO I2C SPI UART NIC LCD (DSI) Χϝϥ (CSI)
"SEVJOP%6& 3BTQCFSSZ1J "3.ࡌϘʔυͷҧ͍ "3. $PSUFY.
σόΠευϥΠό ΦϖϨʔςΟϯάγεςϜ ϥΠϒϥϦ $16ϖϦϑΣϥϧ $16ϖϦϑΣϥϧ ੍ޚιϑτ ੍ޚιϑτ ੍ޚର ੍ޚର
None
"SEVJOP%6& 3BTQCFSSZ1J ɾෳࡶͳॲཧ͕Մೳ ɹ→طଘΞϓϦέʔγϣϯͷ׆༻ ɾ༧Ί༻ҙ͞ΕͨΠϯλʔϑΣʔε ɹ(USBϗετɺHDMIɺLAN) ɾ੍ޚ ɹ→ਖ਼֬ͳλΠϛϯάɾࡉ੍͔͍ޚ ɾ๛ͳσδλϧೖग़ྗ ɹ(σδλϧI/O
52ϐϯɺΞφϩάIN 12ϐϯ)
ྫ͑ εϚʔτϑΥϯ ϒϥβ 8J'Jϧʔλ 3BTQCFSSZ1J ༗ઢ-"/ ແઢ-"/ (1*0 64#
ϐϯΞαΠϯ 2 5V 4 5V 6 GND 8 GPIO14 UART0_TXD
10 GPIO15 UART0_RXD 12 GPIO18 14 GND 16 GPIO23 18 GPIO24 20 GND 22 GPIO25 24 GPIO8 SPI0_CE0_N 26 GPIO7 SPI0_CE1_N 1 3V3 3 GPIO0 I2C0_SDA 5 GPIO1 I2C0_SCL 7 GPIO4 GPCLK0 9 GND 11 GPIO17 13 GPIO21 15 GPIO22 17 3V3 19 GPIO10 SPI0_MOSI 21 GPIO9 SPI0_MISO 23 GPIO11 SPI0_SCLK 25 GND
FDIPlzTZTDMBTTHQJPFYQPSU FDIPlPVUzTZTDMBTTHQJPHQJPEJSFDUJPO FDIPlzTZTDMBTTHQJPHQJPWBMVF FDIPlzTZTDMBTTHQJPHQJPWBMVF FDIPlzTZTDMBTTHQJPVOFYQPSU (1*0 (/% LЊ γΣϧͰ੍ޚ
FDIPlzTZTDMBTTHQJPFYQPSU FDIPlPVUzTZTDMBTTHQJPHQJPEJSFDUJPO FDIPlzTZTDMBTTHQJPHQJPWBMVF FDIPlzTZTDMBTTHQJPHQJPWBMVF FDIPlzTZTDMBTTHQJPVOFYQPSU ϙʔτ༻։࢝ ϙʔτ༻ऴྃ ೖग़ྗઃఆ σʔλͷಡΈॻ͖
FDIPlJOzTZTDMBTTHQJPHQJPEJSFDUJPO DBUTZTDMBTTHQJPHQJPWBMVF ೖྗઃఆ ɹ↓ɹ ͷಡΈग़͠
εςοϐϯάϞʔλ 41( Λճ͢
#include <stdio.h> int main() { int i;
system("echo \"7\" > /sys/class/gpio/export"); system("echo \"8\" > /sys/class/gpio/export"); system("echo \"9\" > /sys/class/gpio/export"); system("echo \"10\" > /sys/class/gpio/export"); system("echo \"out\" > /sys/class/gpio/gpio7/direction"); system("echo \"out\" > /sys/class/gpio/gpio8/direction"); system("echo \"out\" > /sys/class/gpio/gpio9/direction"); system("echo \"out\" > /sys/class/gpio/gpio10/direction"); for (i=0; i<360; i++) { system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"0\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"0\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"0\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"0\" > /sys/class/gpio/gpio10/value"); } system("echo \"7\" > /sys/class/gpio/unexport"); system("echo \"8\" > /sys/class/gpio/unexport"); system("echo \"9\" > /sys/class/gpio/unexport"); system("echo \"10\" > /sys/class/gpio/unexport"); }
ඇৗʹࡶʢεϚʔτͰͳ͍ʣ
1ZUIPOͰ੍ޚ 31J(1*0 IUUQQZQJQZUIPOPSHQZQJ31J(1*0 JNQPSU31J(1*0BT(1*0 JNQPSUTZT JNQPSUUJNF (1*0TFUNPEF (1*0#$. (1*0TFUVQ
(1*0065 (1*0PVUQVU (1*0)*() UJNFTMFFQ (1*0PVUQVU (1*0-08 (1*0DMFBOVQ (1*0 (/% LЊ
(1*0TFUVQ (1*0*/ WBM(1*0JOQVU ೖྗઃఆ ɹ↓ɹ ͷಡΈग़͠
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(7,GPIO.OUT) GPIO.setup(8,GPIO.OUT) GPIO.setup(9,GPIO.OUT) GPIO.setup(10,GPIO.OUT)
for i in range(0,360): GPIO.output(7,GPIO.HIGH) GPIO.output(8,GPIO.HIGH) GPIO.output(7,GPIO.LOW) GPIO.output(8,GPIO.HIGH) GPIO.output(9,GPIO.HIGH) GPIO.output(8,GPIO.LOW) GPIO.output(9,GPIO.HIGH) GPIO.output(10,GPIO.HIGH) GPIO.output(9,GPIO.LOW) GPIO.output(10,GPIO.HIGH) GPIO.output(7,GPIO.HIGH) GPIO.output(10,GPIO.LOW) GPIO.cleanup() #include <stdio.h> int main() { int i; system("echo \"7\" > /sys/class/gpio/export"); system("echo \"8\" > /sys/class/gpio/export"); system("echo \"9\" > /sys/class/gpio/export"); system("echo \"10\" > /sys/class/gpio/export"); system("echo \"out\" > /sys/class/gpio/gpio7/direction"); system("echo \"out\" > /sys/class/gpio/gpio8/direction"); system("echo \"out\" > /sys/class/gpio/gpio9/direction"); system("echo \"out\" > /sys/class/gpio/gpio10/direction"); for (i=0; i<360; i++) { system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"0\" > /sys/class/gpio/gpio7/value"); system("echo \"1\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"0\" > /sys/class/gpio/gpio8/value"); system("echo \"1\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"0\" > /sys/class/gpio/gpio9/value"); system("echo \"1\" > /sys/class/gpio/gpio10/value"); system("echo \"1\" > /sys/class/gpio/gpio7/value"); system("echo \"0\" > /sys/class/gpio/gpio10/value"); } system("echo \"7\" > /sys/class/gpio/unexport"); system("echo \"8\" > /sys/class/gpio/unexport"); system("echo \"9\" > /sys/class/gpio/unexport"); system("echo \"10\" > /sys/class/gpio/unexport"); }
εοΩϦ ͔͍͠ (ຊ͏গ͠εϚʔτʹॻ͚·͢)
γΣϧ σόΠευϥΠό TIME/DIV 4.00ms TIME/DIV 2.00μs
ͭͮ͘...ʁ ͢Έ·ͤΜɺ৸མͪ͠·ͨ͠
ʢ৭ʑҙຯͰʣϨϕϧʢͳʣϒϩάͬͯ·͢ɻ IUUQFMFDMPHRVJUTRDPN