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
Scratch + Raspberry Pi ワークショップ
Search
Yohei Yasukawa
April 22, 2014
Education
1
140
Scratch + Raspberry Pi ワークショップ
1時間半で学ぶ! 子供向けプログラミングワークショップ
http://yasulab.com/Scratch-Raspberry-Pi-Workshop-JP/
Yohei Yasukawa
April 22, 2014
Tweet
Share
More Decks by Yohei Yasukawa
See All by Yohei Yasukawa
Matz に頼られたので張り切って2時間ほどドイツと日本の互いの Ruby 学習事情についてディスカッションした話
yasulab
1
480
困ったときのガイドライン / We Support You in Any Situation
yasulab
2
3.8k
自己紹介 / who-am-i
yasulab
2
4.1k
英語学習から海外発表までの流れ
yasulab
18
4.2k
多様なメンター、多様な基準
yasulab
4
17k
未踏ジュニア公式情報まとめ / Mitou Junior Highlights for Creators
yasulab
1
210
多様な分野、多様な世代 / Various Persons on the Earth
yasulab
0
200
欧州で働き、米国で学び、日本で繋ぐ / Work-Life Balance and Career
yasulab
2
1.2k
2019年度 未踏ジュニアまとめ / Mitou Junior in 2019
yasulab
1
350
Other Decks in Education
See All in Education
情報処理工学問題集 /infoeng_practices
kfujita
0
120
世界のオープンソースロボットたち #1
shiba_8ro
0
140
お仕事図鑑pitchトーク
tetsuyaooooo
0
2.3k
謙虚なアジャイルコーチ__アダプティブ_ムーブ_による伴走支援.pdf
antmiyabin
0
270
HCI and Interaction Design - Lecture 2 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
810
開発終了後こそ成長のチャンス!プロダクト運用を見送った先のアクションプラン
ohmori_yusuke
2
160
HCL Domino 14.0 AutoUpdate を試してみた
harunakano
0
1.7k
The Gender Gap in the Technology Field and Efforts to Address It
codeforeveryone
0
200
JavaScript - Lecture 6 - Web Technologies (1019888BNR)
signer
PRO
0
2.5k
Semantic Web and Web 3.0 - Lecture 9 - Web Technologies (1019888BNR)
signer
PRO
1
2.5k
LLMs for Social Simulation: Progress, Opportunities and Challenges
wingnus
1
100
Zoom-ohjeet
matleenalaakso
7
7.2k
Featured
See All Featured
A better future with KSS
kneath
238
17k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
GitHub's CSS Performance
jonrohan
1030
460k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
6.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Faster Mobile Websites
deanohume
305
30k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9.1k
Scaling GitHub
holman
458
140k
Code Review Best Practice
trishagee
64
17k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Transcript
Scratch + Raspberry Pi ϫʔΫγϣοϓ ϓϩάϥϛϯάͰLEDΛνΧνΧͤ͞Α͏! 2014/04/17()! ҆ ཁฏ! @YasuLabɹ
※ϫʔΫγϣοϓΛ࣮ࢪ͢Δํ • ͜ͷεϥΠυɺԣΠϯλʔφγϣφϧεΫʔϧͰ։͔Ε࣮ͨࡍͷ ϫʔΫγϣοϓΛݩʹ࡞ɾެ։͞Ε͍ͯ·͢. ɹͷࣸਅ, ࣍ͷαΠτ͔ΒݟΔ͜ͱ͕Ͱ͖·͢. ɹhttp://yasulab.com/Scratch-Raspberry-Pi-Workshop/jp/ • ରɿϓϩάϥϛϯάະܦݧऀͷখֶੜʙதֶੜ ࣌ؒɿ̍࣌ؒ
• ͜ͷϫʔΫγϣοϓͰ Raspberry Pi ͱ͍͏ίϯϐϡʔλΛ͍·͢. ͳ͓ɺRaspberry Pi ͷೖखํ๏ɾΈཱͯํ࣍Λࢀߟʹͯ͠Լ͍͞. ɹϥζϕϦʔύΠͷΈཱͯํ, Programming Education Gathering http://pegpeg.jp/curriculum/683 * ৄࡉ, ຊεϥΠυͷඌʹ͋ΔࢀߟจݙΛࢀর͍ͯͩ͘͠͞.
ͬͯΈΑ͏: Raspberry PiͷηοτΞοϓ 64#ΩʔϘʔυ64#Ϛε ϥζϕϦʔύΠ 5ZQF# )%.*σΟεϓϨΠ
ΩʔϘʔυͱ Ϛε༻ͷUSB (ඞཁͳΒ) Πϯλʔωοτ༻ ͷLANέʔϒϧ σΟεϓϨΠ ༻ͷHDMI ిݯ༻ USB
Mini ిࢠ࡞༻ͷϐϯ ىಈ͢ΔͨΊͷ SDΧʔυ (OS༻) ࠓճͷϫʔΫγϣοϓ Ͱ༻͢Δϙʔτ
ࠓΔ͜ͱ ·ͱΊ Scratch Ͱϓϩάϥϛϯά! Raspberry Pi Ͱ LED νΧνΧ!
Scratch Ͱϓϩάϥϛϯά͢Δͷεΰ͍؆୯! ૣ, σεΫτοϓʹ͋ΔωίͷΞΠίϯΛΫϦοΫ!
ͬͯΈΑ͏: ωίา͖
͜Ε͚ͩͰωίΛา͔ͤΔ̍ͭͷΓํͩ! ଞʹ৭Μͳ͕͑͋ΔΑ! ͬͯΈΑ͏: ωίา͖
ଞͷ࡞ྫ: ωίୟ͖
ଞͷ࡞ྫ: ωίಀ͛
ࠓΔ͜ͱ ·ͱΊ Scratch Ͱϓϩάϥϛϯά! Raspberry Pi Ͱ LED νΧνΧ!
ϒϨουϘʔυ ઢΛ͢Δͱ͖ʹ͏ج൘ (≒ ·ͳ൘) ͋ͱͰઆ໌͢ΔLED߅ͳ ͲΛɺ͜ͷϒϨουϘʔυʹ ࠩͯ͠ (ઢͯ͠)ɺLEDΛν
ΧνΧͤ͞ΔΑ!
LED (ൃޫμΠΦʔυ) ిؾΛྲྀ͢ͱޫΔ෦ • ͍ํ͕ϚΠφε (-) • ͍ํ͕ϓϥε (+)
͍ ϚΠφε ͍ ϓϥε
δϟϯύʔ ϫΠϠʔ ઢ͢Δͱ͖ʹ͏ઢ. Α͘ݟΔͱ̎छྨ͋ͬͯɺ 1. ϥζϕϦʔύΠͱ ɹϒϨουϘʔυΛܨ͙༻ 2. ϒϨουϘʔυͱ
ɹϒϨουϘʔυΛܨ͙༻ ͷ͕̎ͭ͋Δɻ * ઢͷ৭ؔͳ͍Α!
߅ ిؾΛ੍ޚ͢Δ෦. LEDΛڧ͘ޫΒͤͨΓɺ ऑ͘ޫΒͤͨΓͰ͖ΔΑɻ ! ‘ί’ͷࣈʹۂ͛ͯɺ ϒϨουϘʔυʹࠩͦ͏ɻ
ͬͯΈΑ͏: ϥζύΠͱLEDΛܨ͙ 1). LEDճ࿏ΛϒϨουϘʔυ্ʹ࡞ͬͯ, 2).ϥζϕϦʔύΠͷ GPIO ͱܨ͍ͩΒ, 3). Scratch Ͱ
LED ΛνΧνΧͤͯ͞ΈΑ͏!
1). LEDճ࿏ΛϒϨουϘʔυ্ʹ࡞Δ! ͍ ϚΠφε ͍ ϓϥε
2). ϥζϕϦʔύΠͷ GPIO ͱܨ͝͏!
3). Scratch Ͱ LED ΛνΧνΧ! 1. Scratch Λดͯ͡, 2. Scratch
GPIO4 Λ։͍ͨΒ, 3. ϑΝΠϧ → ։͘ˠblink11ΛબΜͰ, 4. ৭ͷض () ΛΫϦοΫͯ͠ΈΑ͏!
ΩʔϘʔυͷεϖʔεΩʔ Λԡ͍ͯ͠Δ͚ؒͩ, LED ΛޫΒͤͯΈΑ͏! εϖʔεΩʔΛͨ͠Β, LEDͷޫΛফ͍͑ͯΔͣ. ώϯτ: ͷதʹ͋Δ ϒϩοΫ͕͑Δ͔…!? ͬͯΈΑ͏:
εϖʔεͰνΧνΧ
͜Μͳ͑ํ͕Ͱ͖ΔΑ! ͬͯΈΑ͏: εϖʔεͰνΧνΧ
LEDΛগͣͭ͠ޫΒͤͯΈΑ͏ ͱ͍͏ϒϩοΫΛͬͯ Ώͬ͘ΓͱޫΒͤͯΈͤΑ͏! 1. มΛΫϦοΫͨ͠Β, ৽͍͠มΛ࡞ΔΛΫϦοΫ. 2. ม໊ʹ Power11 ͱॻ͍ͯ,
OK ΫϦοΫ. 3. ݱΕͨ Power11 ΛμϒϧΫϦοΫ. 4. εϥΠμʔ͕ग़͖ͯͨΒ, Power11 ͷΛม͑ͯΈΑ͏!
ͬͯΈΑ͏: ͲΜͲΜนʹۙͮ͘ͱ ͩΜͩΜͱޫΔ • ωί͕ࠨӈͷนʹ͍ۙͮͨ, LEDΛڧ͘ޫΒͤͯΈΑ͏! • ώϯτ:
ωίͷҐஔ͕Γ͍ͨ? ɹɹɹɹ ͷதʹ͋ΔԿ͔ͷ ϒϩοΫΛ͏ͱ͔ΔΑ! ωί͕นʹ͍͍ۙͮͯ͘ͱ LED͕গͣͭ͠ޫΔ!
͜Μͳ͑ํ͕Ͱ͖ΔΑ! ͬͯΈΑ͏: ͲΜͲΜนʹۙͮ͘ͱ ͩΜͩΜͱޫΔ ωί͕นʹ͍͍ۙͮͯ͘ͱ LED͕গͣͭ͠ޫΔ!
ࠓΔ͜ͱ ·ͱΊ Scratch Ͱϓϩάϥϛϯά! Raspberry Pi Ͱ LED νΧνΧ!
2014/04/17()! ҆ ཁฏ! @YasuLabɹ Scratch + Raspberry Pi ϫʔΫγϣοϓ ϓϩάϥϛϯάͰLEDΛνΧνΧͤ͞Α͏!
ࢀߟจݙ • Raspberry PiͰ͡ΊΔ Ͳ͖Ͳ͖ϓϩάϥϛϯά (͡ΊΔϓϩάϥ ϛϯά γϦʔζ) Ѩ෦
(ஶ, म), ੴݪ ३ (ஶ), Ԙ ఓོ (ஶ): http://www.amazon.co.jp/Raspberry-PiͰ͡ΊΔ-Ͳ͖Ͳ͖ϓϩ άϥϛϯά-͡ΊΔϓϩάϥϛϯά-γϦʔζ/dp/4822297314 • PEG (Programming Education Gathering): http://pegpeg.jp/ • Scratch GPIO version 4 http://cymplecy.wordpress.com/2013/04/22/scratch-gpio- version-2-introduction-for-beginners/ (ӳޠͷΈ) • Raspberry Pi - Wikipedia : http://ja.wikipedia.org/wiki/Raspberry_Pi