生活をUP!させるIoTサービスLift!

7507885e7de2f5fa2a3e80a445236d89?s=47 masato-ka
March 17, 2018

 生活をUP!させるIoTサービスLift!

以下イベントで発表した内容です。https://algyan.connpass.com/event/76677/
Microsoft Azure IoT Hub SORACOM Beam WioLTE RS304を利用しています。

7507885e7de2f5fa2a3e80a445236d89?s=128

masato-ka

March 17, 2018
Tweet

Transcript

  1. ੜ׆ΛUP!ͤ͞Δ IoTαʔϏεLift! 2018/03/17 @masato-ka

  2. ςϯγϣϯ͕Լ͕Δ͜Μͳܦݧ͋Γ·ͤΜ͔ʁ ͨͱ͑͹ग़ઌͰɾɾɾ ૣ͘ग़͔͚͍ͨͷʹɾɾɾ ֬ೝ͢Δͷ๨ΕͪΌͬͨɾɾɾ ͍ͭ͏͔ͬΓɾɾɾ

  3. ͦΜͳ͋ͳͨʹੜ׆ΛUPͤ͞ΔIoTαʔϏεLift! Λ͝ఏҊ ͜Ε͕έʔεʹ ऩ·͍ͬͯ·͢ɻ

  4. Lift!ͱ͸ RS304MD Futaba Cloud খ෺؅ཧαʔϏε খ෺ऩೲσόΠε × খ෺ऩೲIoTαʔϏε

  5. Lift!ͷ4ͭͷಛ௃ 1.ָ͍͠ʂऩೲΪϛοΫ 2.ਖ਼֬ʂ ͳऔΓग़͠ 3.ศར!ͳ࿈ܞػೳ 4.ݡ͍ʂܭଌػೳ

  6. Lift!͕Ͱ͖Δ͜ͱͦͷ̍ RS304MD Futaba ඼෺Λݕ஌͠ ͯࣗಈͰऩೲ ඼෺ͷॏ ͞Λଌఆ Cloud ָ͍͠ʂ ݡ͍ʂ

    εϚϗΞϓ ϦͰՄࢹԽ
  7. Lift!͕Ͱ͖Δ͜ͱͦͷ̎ Job Schedule with Direct Method Cloud AM7:00 RS304MD Futaba

    ਖ਼֬ʂ ศརʂ
  8. 4ͭͷಛ௃Λ׆༻ͯ͠ੜ׆ΛLift UPʂ Lift!͕ग़ͯ͘͠Ε͔ͨΒೞΕͣʹࡁΜͩʂ Lift!ͷதʹ͠·͏͔Βେৎ෉ ચࡎ࢒ྔ֬ೝͰ͖ͨʂ ग़͔͚ʹ͍ͭ΋Lift!͕ग़ͯ͘͠ΕΔ ศརʂ ਖ਼֬ʂ ָ͍͠ʂ ݡ͍ʂ

  9. ͞ΒʹLift!ΛϚʔέςΟϯάʹԠ༻ Lift!ͰΘ͔Δ ୭͕͍ͭԿΛͲͷ͘Β͍࢖͔ͬͨʂ Ϧηʔϧ΍঎඼اըʹ࢖͑Δ ͜͜ͰϚωλΠζͰ͖Δʁ

  10. Lift!ͷ࢓૊Έ

  11. Ϋϥ΢υαʔϏεઃܭͷํ਑ 1.σόΠε؅ཧΛ༰қʹ͢Δ 1.1.ೝূॲཧͷΫϥ΢υ΁ͷΦϑϩʔυ 1.2.σόΠεʹґଘੑΛ஫ೖ͠ͳ͍ 2.؅ཧWEB APPͷߏ੒Λγϯϓϧʹอͭ 2.1.εέδϡʔϧ࣮ߦΛ࣮ߦ͠ͳ͍ɻ 2.2.ϓϩτίϧΛHTTPʹݶఆ͢Δɻ Microsoft Azure

    × SORACOM
  12. γεςϜߏ੒ͱ໾ׂ Internet HTTP/SSE HTTP HTTP HTTP AMQP MQTT MQTTS SIM

    (Lift Device) SORACOM Microsoft Azure REST API •Ϣʔβೝূ/UI •σόΠεొ࿥ •εέδϡʔϧ؅ཧ •AMQP to HTTP •ςϨϝτϦड৴ •Job schedule Direct method DBͳͲӬଓԽͷهࡌ͸লུ •SASτʔΫϯੜ੒ •ϓϩτίϧม׵ Beam IoT Hub Functions App Service
  13. γεςϜߏ੒ͱ໾ׂ Internet HTTP/SSE HTTP HTTP HTTP AMQP MQTT MQTTS SIM

    (Lift Device) SORACOM Microsoft Azure REST API ϙΠϯτ1 IMSIΛIoT Hubͷσό ΠεIDͱͯ͠ར༻ •Ϣʔβೝূ/UI •σόΠεొ࿥ •εέδϡʔϧ؅ཧ •AMQP to HTTP •ςϨϝτϦड৴ •Job schedule Direct method DBͳͲӬଓԽͷهࡌ͸লུ •SASτʔΫϯੜ੒ •ϓϩτίϧม׵ ϙΠϯτ3 IoT HubͷJob Scheduleͱ Direct MethodΛ௨஌ʹར༻ ϙΠϯτ2 SORACOM Beamͷ׆༻ ϙΠϯτ4 Azure functionͰσʔλ ͷॲཧͱϓϩτίϧม׵ Beam IoT Hub Functions App Service
  14. σόΠεߏ੒ͱ໾ׂ RS304MD Futaba ※ిݯܥ౷লུ 74HC125࢖༻ શೋॏ൒ೋॏม׵ճ࿏ ੍ޚ௨৴ܥ(WioLTE) ۦಈܥ λΫτεΠον 74HC125

    ্Լঢ߱ Ϙλϯ Ϋϥ΢υ࿈ܞ ɹμΠϨΫτϝιου ɹΠϕϯτ௨஌ Lift ੍ޚ ௨৴੾Γସ͑ ϩδοΫిѹม׵ ۦಈݯ ՙॏηϯα
  15. Arduino޲͚RS304ϥΠϒϥϦͷ։ൃ RS304ϥΠϒϥϦͷެ։ ৄ͘͠͸BlogͰ:http://masato-ka.hatenablog.com/ https://github.com/masato-ka/ServoRS304 Δ͎ͯ͞Μʹ΋ όάfixػೳ௥Ճ͍ͨ ͖ͩ·ͨ͠ɻ ESP32, Arduino Uno,

    Arduino Leonald, Wio LTEͰಈ࡞֬ೝࡁ Έ ૒༿͞Μੋඇ঺հ͍ͯͩ͘͠͞ʂ
  16. Lift! ͷجຊಈ࡞ ※શೋॏ൒ೋॏม׵ճ࿏লུ ੍ޚ௨৴ܥ(WioLTE) λΫτεΠον RS304MD Futaba Lift! UP! ࢦྩ஋ͱτϧΫ੍ޚ

    Cloud Direct methodܦ ༝Ͱεέδϡʔϧ ಈ࡞ɺ֎෦αʔϏ ε࿈ܞ ϘλϯͰ΋ ϦϑτΛૢ࡞ Ͱ͖Δɻ
  17. Lift! ͷجຊಈ࡞ ੍ޚ௨৴ܥ(WioLTE) λΫτεΠον RS304MD Futaba Lift! UP! ՙॏ ෛՙ

    ՙॏʹԠͨ͡ిྲྀ ஋(ෛՙΛऔಘ) ඼෺ͷݕ஌ͱॏྔʹม׵ ࢦྩ஋ͱτϧΫ੍ޚ ݱࡏ֯౓ ͱిྲྀ஋ ݱࡏͷLiftͷঢ়ଶͱ ඼෺ͷঢ়ଶΛΠϕ ϯτͱͯ͠ૹ৴ Cloud
  18. ϝΧઃܭʙϓϩτλΠϓ͔Βઃܭ ϓϩτλΠϓ ෦඼ ϓϩτ2૊Έཱͯ N N N ПN N N

    NN NN N ПN   П   N N  П ΋ͱΈ͞ΜΞυόΠε
  19. σϞ ຊ೔ͷࢿྉ:https://github.com/masato-ka/presentation Twitter: @masato_ka 1. ෺඼ͷऩೲ 2. ෺඼ͷऔΓग़͠ʢεΠονʣ

  20. ࠓޙͷܭը • ௿ίετԽɺػߏͷΈͰྑ͍͓஋ஈ :( • ϦϑτͷετϩʔΫ޲্ʢϞʔλτϧΫʣ • Ϟʔλෛՙͱॏྔͷ૬ؔݟ௚͠ • WEB

    APPͷUI޲্ • WEB APP ػೳ௥Ճ
  21. ͝ײ૝Լ͍͞ʂ Twitter: @masato_ka ຊ೔ͷࢿྉ:https://github.com/masato-ka/presentation Twitter: @masato_ka

  22. Ҏ߱౰೔ະ࢖༻ͷิ଍ࢿྉ

  23. Lift!ͷͰ͖Δ͜ͱ ʙऩΊΔʙ Lift ͸ຊମ಺ʹ೔༻඼Λऩೲ͢Δ͜ͱ͕Ͱ͖·͢ ಠಛͳऩೲ͕໘ന͍ͷͰ͍ͭఆҐஔʹஔ͖·͢ RS304MD Futaba λΫτεΠον Ϙλϯ ௨ͯ͠Lift!ΛUP

    Ϟʔυ΁
  24. Lift!ͷͰ͖Δ͜ͱ ʙऩΊΔʙ Lift ͸ຊମ಺ʹ೔༻඼Λऩೲ͢Δ͜ͱ͕Ͱ͖·͢ ಠಛͳऩೲ͕໘ന͍ͷͰ͍ͭఆҐஔʹஔ͖·͢ Ϙλϯ ௨ͯ͠Lift!ΛUP Ϟʔυ΁ RS304MD Futaba

    λΫτεΠον
  25. σόΠεߏ੒ͱ໾ׂ RS304MD Futaba ※ిݯܥ౷লུ HC47H147࢖༻ શೋॏ൒ೋॏม׵ճ࿏ ੍ޚ௨৴ܥ(WioLTE) ۦಈܥ λΫτεΠον 74HC147

    Cloud εϚϗΞϓϦ
  26. Lift!ͷͰ͖Δ͜ͱ ʙऩೲʙ খ෺Λஔ͘ͱࣗಈͰऩೲ͢Δɻ ඼෺ΛLift!ʹ ऩೲ͢Δɻ RS304MD Futaba

  27. Lift!ͷͰ͖Δ͜ͱ ʙ ऩೲʙ খ෺Λஔ͚ͩ͘Ͱࣗಈऩೲ͢Δɻ ָ͍͔͠ΒLiftʂʹऩೲͨ͘͠ͳΔ RS304MD Futaba ඼෺Λݕ஌͠ ͯࣗಈͰऩೲ

  28. Lift!ͷͰ͖Δ͜ͱ ʙऔΓग़͠ʙ Lift͸εέδϡʔϧʹ߹ΘͤͯࣗಈͰ ඼෺ΛऔΓग़ͯ͘͠Ε·͢ ໌೔ ͷே7࣌ʹਫ Λग़͠ εέδϡʔϥొ࿥

  29. Lift!ͷͰ͖Δ͜ͱ ʙ औΓग़͠ʙ Lift͸εέδϡʔϧʹ߹ΘͤͯࣗಈͰ ඼෺ΛऔΓग़ͯ͘͠Ε·͢ ਖ਼͔֬ͩΒ๩͍͠ே΋େ੾ͳ΋ͷΛ๨Ε·ͤΜ RS304MD Futaba AM7:00 Job

    Schedule with Direct Method
  30. LiftͷͰ͖Δ͜ͱʙ ௨஌ʙ Lift͸֎෦αʔϏεͱ࿈ܞͯ͠඼෺ΛऔΓग़ͤ·͢

  31. Lift!ͷͰ͖Δ͜ͱ ʙ௨஌ʙ Lift͸εέδϡʔϧʹ߹ΘͤͯࣗಈͰ ඼෺ΛऔΓग़ͯ͘͠Ε·͢ ศར͔ͩΒ๩͍͠ே΋େ੾ͳ΋ͷΛ๨Ε·ͤΜ RS304MD Futaba Job Schedule with

    Direct Method
  32. Lift!ͷͰ͖Δ͜ͱ̏ ʙܭଌʙ Lift͸඼෺ͷॏ͞ΛଌΔ͜ͱ͕Ͱ͖·͢ RS304MD Futaba 1kg ඼෺ͷॏ ͞Λଌఆ

  33. Lift!ͷͰ͖Δ͜ͱ̏ ʙ ܭଌʙ Lift͸඼෺ͷॏ͞ΛଌΔ͜ͱ͕Ͱ͖·͢ ফ໣඼ΛೖΕΕ͹࢒ྔΛ஌Δ͜ͱ͕Ͱ͖·͢ ΞϓϦ͔ΒLift! ͷঢ়ଶ΍඼෺ͷ ঢ়ଶɺ࢒ྔ͕֬ ೝͰ͖·͢ɻ