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

話題の #m5stack でシャトルラン!!そしてライブラリも #iotlt

話題の #m5stack でシャトルラン!!そしてライブラリも #iotlt

SIerIoTLT @DeNAでの発表 https://iotlt.connpass.com/event/82286/
話題のM5Stackを使ってシャトルラン実装しました。
ライブラリ化も -> https://github.com/n0bisuke/M5_Shuttle_Run

(このシュールな面白さはスライドだけでは伝わらないと思われる)

n0bisuke

April 19, 2018
Tweet

More Decks by n0bisuke

Other Decks in Programming

Transcript

  1. @n0bisuke
    ࿩୊ͷM5StackͰ༡ΜͰΈͨΑ
    ʢM5StackͰγϟτϧϥϯʣ
    SI #iotlt 2018/4/18

    View full-size slide

  2. ੁݪ ͷͼ͚͢
    dotstudio, Inc.
    ɾWeb Engineer
    ɾMicrosoft MVP (Node.js)
    ɾLINE API Expert (ࠃ಺5ਓ/ੈք22ਓ)
    ɾσδλϧϋϦ΢ουେֶେֶӃ ඇৗۈߨࢣ
    ɾIoTLT ओ࠵
    nobisuke sugawara

    View full-size slide

  3. dotstudio, inc.
    ཧ೦ : Ϟϊͮ͘ΓΛָ͠ΉਓΛ૿΍͢
    2016೥૑ۀ

    View full-size slide

  4. M5Stack
    ɾESP32ϕʔεͷ։ൃϓϥοτϑΥʔϜ
    ɾWiFi & Bluetooth
    ɾArduino + Arduino IDEͰ։ൃՄೳ
    ɾCloud IDE + MicroPython or LuaͷOTAػೳ΋
    ɾσΟεϓϨΠ / εϐʔΧʔ / Ϙλϯ౥ࡌ
    ɾ࠷ۙ࿩୊ ʢ2݄ͷIoTLTࡳຈͰॳΊͯ஌ͬͨʣ

    View full-size slide

  5. ͱΓ͋͑ͣ৮ͬͯΈͨ
    ɾεϐʔΧʔ಺ଂ͕໨৽͋͠͞ΔͷͰεϐʔΧʔ
    ͔ΒνϟϨϯδ
    ɾαϯϓϧͷSpeaker.ino

    View full-size slide

  6. Ͳ͏΍Β͜͏΍ͬͯԻ͕ग़͍ͯΔ
    M5.Speaker.tone(3000, 200);

    View full-size slide

  7. ࣍͸
    υϨϛϑΝιϥγυ
    ΍ͬͯΈ͍ͨ

    View full-size slide

  8. υϨϛϑΝιϥγυνϟϨϯδ
    ɾαϯϓϧͷԻΛࢼͯ͠ΈͨΒ…

    View full-size slide

  9. ઈົʹҧ͏ (´ɾωɾ`)

    View full-size slide

  10. ௐ΂ͨͱ͜ΖʹΑΔͱԻ֊͸प೾਺Ͱܾ·ΔΒ͍͠
    ը૾ݩ: http://tomari.org/main/java/oto.html
    (ଟ෼ɺதֶͱ͔ߴߍͰशͬͯΔ)

    View full-size slide

  11. Ի֊ͱप೾਺
    Ի֊ M5Stack σϑΥ஋ ௐ΂ͨײ͡
    D0 υ ( Do ) -1 261.626
    D1 Ϩ ( Re ) 294 293.665
    D2 ϛ ( Mi ) 330 329.628
    D3 ϑΝ ( Fa ) 350 349.228
    D4 ι ( Sol ) 393 391.995
    D5 ϥ ( La ) 441 440.000
    D6 γ ( Ti ) 495 493.883
    D7 υ ( Do ) 556 523.251

    View full-size slide

  12. प೾਺(Hz)ͷ஋͕શવҧ͏……
    Ի֊ M5Stack σϑΥ஋ ௐ΂ͨײ͡
    D0 υ ( Do ) -1 261.626
    D1 Ϩ ( Re ) 294 293.665
    D2 ϛ ( Mi ) 330 329.628
    D3 ϑΝ ( Fa ) 350 349.228
    D4 ι ( Sol ) 393 391.995
    D5 ϥ ( La ) 441 440.000
    D6 γ ( Ti ) 495 493.883
    D7 υ ( Do ) 556 523.251
    ը૾ݩ: http://www.wisemanproject.com/zzz-olderpage2010/education-j-solfege.html
    Tips: ͪͳΈʹυϨϛϑΝιϥγυ
    ͸ੈքڞ௨Β͍͠

    View full-size slide

  13. దԠͤͯ͞Έͨ

    View full-size slide

  14. దԠͤͯ͞Έͨ

    View full-size slide

  15. Կ͔ջ͔͠͞Λײͨ͡

    View full-size slide

  16. Կ͔ջ͔͠͞Λײͨ͡
    ͷͰԠ༻Ͱ࡞ͬͯΈ·ͨ͠ɻ

    View full-size slide

  17. ※Youtubeίϝϯτൈਮ
    ΈΜͳͷτϥ΢Ϛ

    View full-size slide

  18. ΄΅σϑΥԻ֊Ͱԋ૗Մೳ
    γϟτϧϥϯͷۂ͸

    View full-size slide

  19. γϟτϧϥϯ DEMO

    View full-size slide

  20. γϟτϧϥϯ DEMO

    View full-size slide

  21. ͔͠͠
    ·ͩऴΘΒͳ͍ڟѱͳ࢓༷

    View full-size slide

  22. γϟτϧϥϯ
    Shuttole Run

    View full-size slide

  23. γϟτϧϥϯ
    Shuttole Run
    ҙຯ: ఆظԟ෮ศɼંΓฦ͠ӡస

    View full-size slide

  24. γϟτϧϥϯ͸ંΓฦ͠ຖʹ
    ϖʔε্͕͕͍ͬͯ͘

    View full-size slide

  25. ࢓༷ௐࠪͯ͠Έͨ

    View full-size slide

  26. 20ϝʔτϧγϟτϧϥϯͷ࢓༷Λௐ΂ͯΈͨ
    ※WikipediaΑΓ

    View full-size slide

  27. 20ϝʔτϧγϟτϧϥϯ ࢓༷
    ※WikipediaΑΓ
    Ϩϕϧ্͕͕ΔຖͷંΓฦ͠ճ਺΍͕࣌ؒҰఆͰ͸ແ͍

    View full-size slide

  28. ౳ִؒ΍نଇੑ͕ແ͍ͷͰɺ
    ࢓ํͳ͘഑ྻʹ͍Ε࣮ͯ૷

    View full-size slide

  29. ࢼߦࡨޡͭͭ͠
    Ϩϕϧ21·ͰͷંΓฦ͠λΠϜΛ஧࣮ʹ࠶ݱ

    View full-size slide

  30. ͜ͷԻ΋
    (ϨϕϧΞοϓԻ)

    View full-size slide

  31. ԻΛௐ΂Δͷ͕େมͰͨ͠
    Yahoo஌ܙା: https://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q14156201854

    View full-size slide

  32. ফඅΧϩϦʔͱ૸ͬͨڑ཭දࣔػೳ

    View full-size slide

  33. ίʔυΛݟͯΈ·͠ΐ͏

    View full-size slide

  34. ͳΜͱ͜Ε͚ͩ
    M5ShuttleRun()Λ
    ݺͿ͚ͩ

    View full-size slide

  35. ଴๬ͷϥΠϒϥϦԽ !
    https://github.com/n0bisuke/M5_Shuttle_Run
    GitHubͰެ։͍ͯ͠·͢ɻελʔ͍ͩ͘͞ɻ
    ʮ͋ͳͨͷϓϩμΫτ
    ʹ؆୯ʹγϟτϧϥϯ
    ͕૊ΈࠐΊ·͢ɻʯ

    View full-size slide

  36. ͜ΕͰΈΜͳखܰʹ
    γϟτϧϥϯ͕Ͱ͖·͢ɻ

    View full-size slide

  37. ࣮ࡍʹ΍ͬͯΈͨ
    (ৄࡉ͸ผͷػձʹ঺հ)

    View full-size slide

  38. ऴ͑ͯΈͯ…
    (ৄࡉ͸ผͷػձʹ঺հ)

    View full-size slide

  39. ·ͱΊ
    ɾM5Stackָ͍͠
    ɾLet’s ϋοΫ γϟτϧϥϯϓϩμΫτ
    ɾIoTLTຊମ (4/23) Ͱ΋Կ͔࿩͢Αʙͥͻ͖ͯͶ
    FB: sugawara.ryousuke
    Twitter: n0bisuke

    View full-size slide