Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scratch + Raspberry Pi で LED をチカチカさせよう!

Yohei Yasukawa
January 07, 2017

Scratch + Raspberry Pi で LED をチカチカさせよう!

横浜インターナショナルスクールの #beyondlaptops という国際カンファレンスで実施したワークショップです。

詳細: https://yasslab.jp/ja/workshops/raspi/

#beyondlaptops
http://blogs.yis.ac.jp/beyondlaptops/2014/04/16/2014-themes/

Yohei Yasukawa

January 07, 2017
Tweet

More Decks by Yohei Yasukawa

Other Decks in Education

Transcript

  1. ※ϫʔΫγϣοϓΛ࣮ࢪ͢Δํ΁ • ͜ͷεϥΠυ͸ɺԣ඿ΠϯλʔφγϣφϧεΫʔϧͰ։͔Ε࣮ͨࡍͷ ϫʔΫγϣοϓΛݩʹ࡞੒ɾެ։͞Ε͍ͯ·͢.
 ɹ౰೔ͷࣸਅ͸, ࣍ͷαΠτ͔ΒݟΔ͜ͱ͕Ͱ͖·͢.
 ɹ https://yasslab.jp/ja/workshops/raspi/ • ର৅ɿϓϩάϥϛϯάະܦݧऀͷখֶੜʙதֶੜ


    ࣌ؒɿ̍࣌ؒ൒͙Β͍ • ͜ͷϫʔΫγϣοϓͰ͸ Raspberry Pi ͱ͍͏ίϯϐϡʔλΛ࢖͍·͢.
 Raspberry Pi ͷೖखํ๏ɾ૊Έཱͯํ͸ɺ࣍Λࢀߟʹͯ͠Լ͍͞. ɹϥζϕϦʔύΠͷ૊Έཱͯํ, Programming Education Gathering
 http://pegpeg.jp/curriculum/683 * ΑΓৄࡉͳࢿྉ͸, ຊεϥΠυ຤ඌʹ͋ΔࢀߟจݙΛࢀর͍ͯͩ͘͠͞.
  2. ΩʔϘʔυͱ Ϛ΢ε༻ͷUSB (ඞཁͳΒ)
 Πϯλʔωοτ༻
 ͷLANέʔϒϧ σΟεϓϨΠ ༻ͷHDMI ిݯ༻ 
 Micro

    USB ిࢠ޻࡞༻ͷϐϯ ىಈ͢ΔͨΊͷ SDΧʔυ (OS༻) ࠓճͷϫʔΫγϣοϓ
 Ͱ࢖༻͢Δϙʔτ
  3. 3). Scratch Ͱ LED ΛνΧνΧ! 1. Scratch Λดͯ͡, 2. Scratch

    GPIO4 Λ։͍ͨΒ, 3. ϑΝΠϧ → ։͘ˠblink11ΛબΜͰ, 4. ྘৭ͷض () ΛΫϦοΫͯ͠ΈΑ͏!
  4. ΍ͬͯΈΑ͏: 
 ͲΜͲΜนʹۙͮ͘ͱ
 ͩΜͩΜڧ͘ޫΔ • ωί͕ࠨӈͷนʹ͍ۙͮͨ, LEDΛڧ͘ޫΒͤͯΈΑ͏! • ώϯτ: 


    ωίͷҐஔ͕஌Γ͍ͨ? 
 ɹɹɹɹ ͷதʹ͋ΔԿ͔ͷ ϒϩοΫΛ࢖͏ͱ෼͔ΔΑ! ωί͕นʹ͍͍ۙͮͯ͘ͱ LED͕গͣͭ͠ޫΔ!
  5. ࢀߟจݙ • 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