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

Raspberry Pi あそび 2021 / python-tokai-42-rpi

Raspberry Pi あそび 2021 / python-tokai-42-rpi

Python東海 第42回勉強会で発表したスライドと間に合わなくてライブでやってた部分の加筆をしたもの

Akira Ouchi

March 21, 2021
Tweet

More Decks by Akira Ouchi

Other Decks in How-to & DIY

Transcript

  1. 3BTQCFSSZ1J͋ͦͼ

    ͖͋ͬ͌

    1ZUIPO౦ւ ୈճษڧձ

    View full-size slide

  2. ࣗݾ঺հ
    • ͖͋ͬ͌ Ͱ͢
    – .BTUPEPO
    !"LLJFTPGU!TPDJBMNJLVUUFSIBDIVOFOFU
    • ͠ΎΈͷ͔ͭͲ͏
    – &KFDUίϚϯυϢʔβʔձओ࠻
    – +BQBOFTF3BTQCFSSZ1J6TFST(SPVQ
    • ࢓ࣄ
    – ೔ຊԾ૝Խٕज़ 75+

    – 04$ͷ8FC؅ཧਓ

    View full-size slide

  3. 04$ Φʔϓϯιʔε
    ΧϯϑΝϨϯε

    View full-size slide

  4. ࠓ೔ͷ31J͋ͦͼωλ
    • 3BTQCFSSZ1J1JDPͰ.JDSP1ZUIPO
    – ਃ͠༁ఔ౓ͷ1ZUIPOཁૉ
    • 3BTQCFSSZ1J$PNQVUF.PEVMF
    • 3BTQCFSSZ1JͰ64#ϒʔτ

    View full-size slide

  5. 3BTQCFSSZ1J1JDP
    • ϦϦʔε
    • ॳͷࣗࣾઃܭͷϚΠΫϩίϯτϩʔϥʔ
    31Λ౥ࡌ
    • ࠓ·Ͱͷ31Jͱҧͬͯ-JOVY͸ಈ͔ͳ͍
    – ϋοΫͷ݁Ռখ͍͞6/*9͸ಈ͘Β͍͠
    • "SEVJOPͱ͔͋ͬͪํ໘ͷδϟϯϧʹ͍ۙ
    ΍ͭ
    • υϧʢ೔ຊͰ͸ʙԁʣ

    View full-size slide

  6. ͜Μͳ͔Μ͡

    View full-size slide

  7. ͳ͓.BEFJO+BQBO
    https://www.raspberrypi.org/blog/raspberry-pi-silicon-pico-now-on-sale/

    View full-size slide

  8. SEQBSUZ31
    • 31͸কདྷతʹνοϓ୯ମͷൢച΋
    ͋ΔͬΆ͍ʁ
    • ·ͣ͸ύʔτφʔʹνοϓΛڙڅ
    • ͍͔ͭ͘ͷαʔυύʔςΟ31Ϙʔ
    υ͕͢Ͱʹ͍͔ͭ͘ొ৔

    View full-size slide

  9. ϓϩάϥϛϯά
    • IUUQTXXXSBTQCFSSZQJPSHEPDVNF
    OUBUJPOSQHFUUJOHTUBSUFE
    • ͓΋ͳϓϩάϥϛϯάํ๏͸ͭ
    • $$
    • .JDSP1ZUIPO
    • ͦͷଞ$JSDVJU1ZUIPO
    – )*%αϙʔτ͕͋ΔͷͰࣗ࡞ΩʔϘʔυͱ͔
    ʹϫϯνϟϯʁ

    View full-size slide

  10. .JDSP1ZUIPOΛ͸͡ΊΔ
    • .JDSP1ZUIPOެࣜαΠτ͔Β࠷৽ͷόΠ
    φϦΛऔಘ
    • 1$ʹ1JDPΛ64#έʔϒϧͰ઀ଓ
    • 31*31ͱ͍͏υϥΠϒ͕Ϛ΢ϯτ͞Ε
    ΔͷͰόΠφϦΛ์ΓࠐΉ
    • উखʹ࠶ىಈͯ͠.JDSP1ZUIPO؀ڥ͕׬

    View full-size slide

  11. ΍͍͖ͬͯ
    • γϦΞϧ઀ଓ
    – TDSFFO
    EFWUUZVTCNPEFN
    • $USM%ͰιϑτϦηοτ͔͚Δͱىಈ
    ϝοηʔδ͕ग़Δ
    • ͋ͱ͸ॻ͘

    View full-size slide

  12. ϑΝΠϧͰ΍Γ͍͕ͨʁ
    • 5IPOOZΛ࢖͏
    – 3BTQCFSSZ1JσεΫτοϓ؀ڥʹ͸͍ͬͯΔ
    – อଘμΠΞϩάͱ͔ͰϑΝΠϧ؅ཧͰ͖Δ
    – 1JDPͰϓϩάϥϛϯά͠΍͍͢Α͏ʹ৭ʑ੔
    උ͞ΕͯΔͷͰ͓͢͢Ί
    • BNQZΛ͔ͭ͏
    – IUUQTHJUIVCDPNTDJFOUJGJDIBDLFSTBN
    QZ
    – ϑΝΠϧ؅ཧπʔϧɻQJQͰೖΔ

    View full-size slide

  13. ͜ΕͰԿ͢Δʁ
    • ηϯαʔͱ͔σΟεϓϨΠͱ͔ͭͳ͍Ͱ
    ΩϟοΩϟ͢Δ
    • ΞΫηαϦʔ͕ଟ਺Ͱ͖͍ͯͯΔͷͰɺ
    ͦΕͰ༡Ϳ
    – Ͳ͏΋7("ग़ྗͯ͠༡Ϳͷ͕Ξπ͍Α͏ʹΈ
    ͑Δ
    – ϑΝϛίϯΤϛϡϨʔγϣϯͱ͔΍ͬͯΔਓ
    ΋͍Δ

    View full-size slide

  14. σΟεϓϨΠ
    • IUUQTXXXSBTQJKQSBTQCF
    SSZQJQJDPSFQPSU

    View full-size slide

  15. 7("
    • IUUQTTIPQQJNPS
    POJDPNQSPEVDUT
    QJNPSPOJQJDPWHB
    EFNPCBTF

    View full-size slide

  16. /&4&NVMBUJPO
    • IUUQTXXXIBDLTUFSJPOFXTCFO
    TUSBHOFMMHFUTTVQFSNBSJPCSPT
    SVOOJOHPOUIFSBTQCFSSZQJQJDPJOB
    DVTUPNOFTFNVMBUPSEGDDFF

    View full-size slide

  17. $PNQVUF.PEVMF
    • ࢈ۀ༻3BTQCFSSZ1JͷҰछ
    • ૊ΈࠐΜͰ࢖͑ΔΑ͏ʹ4P$ϝϞϦͳͲ
    ࠷খݶͷύʔπҎ֎ͷΠϯλʔϑΣʔε
    ͕ࣗ༝ʹऔΓग़ͤΔΑ͏ʹͳͬͨϞ
    δϡʔϧܗঢ়ͷ3BTQCFSSZ1J
    • *0ϘʔυΛࣗ෼ͰઃܭͰ͖Δ

    View full-size slide

  18. ྺ࢙
    • $PNQVUF.PEVMF
    – .PEFMͷ4P$Λ࢖༻
    – 40%*..ܗঢ়
    • $PNQVUF .PEVMF
    – .PEFMͷ4P$Λ࢖༻
    • $PNQVUF.PEVMF
    – .PEFMͷ4P$Λ࢖༻
    • $PNQVUF .PEVMF
    – .PEFMͷ4P$Λ࢖༻
    – ಠࣗͷܗঢ়ʹมߋ

    View full-size slide

  19. /&8*/$.
    • ৽͍͠ܗঢ়
    • ҆͘ͳͬͨ*0Ϙʔυ
    • ిݯճ࿏ɾ(C&ίϯτϩʔϥʔɾແઢ
    -"/ ϞσϧʹΑΔ
    ΛؚΊͨ
    – ج൘ઃܭऀ͸ඞཁͳϐϯΛऔΓग़ͯ͠෦඼ʹ
    ܨ͛͹Α͘ͳΓɺઃܭͷϋʔυϧ͕Լ͕ͬͨ
    • ແઢ͋Γɾͳ͠ɺF..$಺ଂετϨʔδ
    ༗ແɺ3".༰ྔͳͲͰछྨ͋Δ

    – ࣮ࡍʹ͸ൢച͞Ε͍ͯΔϞσϧ͸ߜΒΕ͍ͯ
    ͯɺ͔ͭೖख͕೉͍͠

    View full-size slide

  20. Ұൠਓͷ$.ͷ͋ͦͼͲ͜Ζ
    • 1$*&YQSFTTϙʔτͰ༡Ϳʂ
    – ͜Ε͔͠ͳ͍ͱߦͬͯ΋աݴ
    • 1$* &YQSFTT Yϙʔτ౥ࡌ
    – ཧ࿦஋(CQT
    – ࣮ଌ͸(CQTͪΐͬͱ
    • ͍ΖΜͳϘʔυΛͯ͞͠༡΂Δʂʁ
    – ࣮ࡍʹ͸υϥΠόʔίϯύΠϧ΍ిྗͷ໰୊
    ͳͲ৭ʑϋʔυϧ͸͋Γ

    View full-size slide

  21. ಈ͔ͨ͠ྫ
    • (C&/*$
    – *OUFM 9%"
    – 4PMBS'MBSF 4'/'
    • (C& /*$
    • /7.F 44%
    • ͲΕ΋࣮ଌ(CQT͘Β͍ͳͷͰɺ.#T
    ͪΐͬͱग़Δˠૣ͍
    – (C&ൺֱͳΒഒ
    – 4%Χʔυεϩοτ .#T͘Β͍
    ൺֱͳΒഒ
    ͘Β͍ʁ

    View full-size slide

  22. /7.Fϒʔτʂ
    • ࠷ۙϕʔλ͕͖߱ͬͯ
    ͨ
    – IUUQTBLLJFTPGUI
    BUFOBCMPHKQFOUSZ


    • ϝϧΧϦͱ͔Ͱԁ
    Ͱࡶʹ/7.F 44%Λೖ
    खͯ͠շదͳ1Jίϯ
    ϐϡʔςΟϯά؀ڥΛ
    ήοτ͠Α͏ʂ

    View full-size slide

  23. $.͡Όͳͯ͘΋44%Λ
    • $.ͷ1$*Fεϩοτ͸1JͰ͸64#
    ϙʔτͷ64#ϋϒνοϓʹ࢖༻
    • ͭ·Γ1JͰ΋64#44%Λͯ͞͠΍Ε͹
    .#T͘Β͍ͷετϨʔδ؀ڥ͕ήο
    τͰ͖Δʂ
    • 1Jͷ4%ΧʔυεϩοτΑ͞Β͹

    View full-size slide

  24. ઃఆ
    • ઃఆมߋͷͨΊʹ4%ΧʔυͰ1JΛىಈ
    • TVEP SBTQJDPOGJH
    • "EWBODFEઃఆͷԼʹϒʔτϩʔμʔ͕͋
    ΔͷͰ64#ϒʔτΛબͿ
    • ͓ΘΓ

    View full-size slide

  25. ༨ஊ1J&&130.
    • 1Jʹ͸#*04ϑΝΠϧతͳ֓೦ͱͯ͠
    3FDPWFSZ&&130.͕ొ৔
    • ىಈॱংͷઃఆ΋͜͜ͷΠϝʔδΛॻ͖׵͑
    ͯ&&130.ʹॻ͖ࠐΈ
    • IUUQTXXXSBTQCFSSZQJPSHEPDVNFOUB
    UJPOIBSEXBSFSBTQCFSSZQJCPPUFFQSPN
    NE
    • IUUQTXXXSBTQCFSSZQJPSHEPDVNFOUB
    UJPOIBSEXBSFSBTQCFSSZQJCDN@CP
    PUMPBEFS@DPOGJHNE

    View full-size slide

  26. 44%ʹ3BTQCFSSZ1J04Λম͘
    • ී௨ʹ&UDIFSͱ͔Ͱম͚Δ
    • 44%ͷશྖҬΛ3BTQCFSSZ1J04ʹ͠ͳ
    ͍Ͱ64#ϝϞϦతͳྖҬ΋࡞Γ͍ͨͱ͖
    – IUUQTBLLJFTPGUIBUFOBCMPHKQFOUSZ

    • 64#ϙʔτʹࠩͯ͠ىಈʂ

    View full-size slide

  27. ͓޷͖ͳ44%Λ
    • ࢢൢͷখ͍͞ϙʔλϒϧ44%Ͱ΋Α͠
    • /7.F΍.4"5"Λ64#ม׵έʔεʹ
    ٧Ίͯ࢖ͬͯ΋Α͠
    • ༨ͬͨΠϯν 44%Λม׵ͯ͠΋Α͠

    View full-size slide

  28. ΋ͬͱݟΔ
    • IUUQTBLLJFTPGUIBUFOBCMPHKQFOUSZ

    • IUUQTXXXZPVUVCFDPNXBUDI WY
    (+S-4GO4P

    View full-size slide