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

Android ThingsでIoT/AIなデバイス開発しよう

masato-ka
August 20, 2018
720

Android ThingsでIoT/AIなデバイス開発しよう

masato-ka

August 20, 2018
Tweet

More Decks by masato-ka

Transcript

  1. Android Thingsͬͯͳʹʁ • Android(Android O)ϕʔεʹIoTσόΠε޲͚ʹΧελϚ Πζͨ͠OS • ̎̌̍̔೥ 5݄ʹVer 1.0.0ʢ8݄Ͱ

    Ver1.0.3ʣ • Things Support LibraryͰσόΠεͷपล I/OʹΞΫηεͰ͖Δɻ • ΠϯετʔϧͰ͖ΔΞϓϦ͸1ͭͰΞϓϦέʔγϣϯ͕ࣗಈىಈ͢Δɻ • Raspberry Pi 3BͳͲෳ਺ͷϘʔυʹରԠ͍ͯ͠Δɻ • LenovoͷSmart Display͕Android Things 1.0.0ൃͷϓϩμΫτ ༻్: Raspberry PiͰ࡞ΕΔσόΠε͸େମ࡞ΕΔɻ
  2. पลI/OΛAndroidͷAPIͰѻ͑ΔΑ͏ʹ͢Δɻ Android Things OS UART I2C/SPI PWM I/O 1.User-space driver

    GPSϞδϡʔϧ ηϯα/LED/OLED ϥδίϯαʔϘ SW/LED ※I2S͸Audio APIͰΞΫηε͢Δɻ Things Support Library Location HID Sensor LoWPAN Location API View Sensor LoWPAN User-space driver AndroidAPI User application
  3. User-space driverͷ࠷ߴͳϙΠϯτ • ΞϓϦέʔγϣϯͷϙʔλϏϦςΟΛߴΊΔɻ खࠒͳσόΠε͕ͳ͍ʂ AndroidͰཁ݅ݕ౼ Android ThingsͰ ϓϩτλΠϐϯά ηϯαͰԿΛܭଌʁ

    Ϋϥ΢υଆͱ ͷػೳ෼୲ ௨৴ํࣜʁ ϢʔβώΞͷ ϞοΫ ΞϓϦ͸ྲྀ༻ͯ͠ཁ݅ʹ͋ͬ ͨϋʔυ΢ΣΞΛ࡞Δɻ ͋Γ΋ͷͰσόΠε։ൃΛޮ཰తʹਐΊΒΕΔɻ
  4. • Android ThingsͷAI͸Tensorflow-Lite͔FirebaseML Kit Λར༻Ͱ͖Δɻ 2.σόΠε΁ͷAIͷ૊ΈࠐΈ Android Things DNN Model

    User Application ɾInception-v3 ɾmobilenet ɾmobilenet-ssd ɾFirebase (Mobile޲͚ͷBaaS) ɾAndroid Things͔Β΋ར༻Մೳ TensorFlow LiteΛ࢖͏͚ͩͳΒ RaspbianͰ΋Ͱ͖Δɻ
  5. 3. Ϋϥ΢υͱͷ࿈ܞ •Cloud IoT CoreͷΫϥΠΞϯτϥΠϒϥϦ • Cloud IoT CoreΛى఺ʹGCPͱ઀ଓͰ͖Δɻ •Android

    Things Console • Android ThingsͷOSΞϓϦͷ؅ཧΛ͢ΔαʔϏε Ҿ༻ɿhttps://developers-jp.googleblog.com/2018/07/android-things-client-library-for.html
  6. Android Thingsͷਏ͍ϙΠϯτ • Androidʹؔ͢Δ஌ࣝΛڧཁͯ͘͠Δɻ • ޾͍ʹ΋AndroidͷάάϥϏϦςΟ͸ߴ͍ɻάάΕ͹ͳΜͱ͔ͳΔɻ • JavaͰ։ൃ͢ΔͷͩΔ͍ʢࢲ͸Java޷͖Ͱ͢ʣ • Android

    Studio(InteliJ IDEA)ͷ࢖͍ํΛ֮͑Δͱָ͘͠ͳΔɻ • Ͳ͏ͯ͠΋ݏͳΒKotolin • ରԠϋʔυ΢ΣΞ • ݸਓͰ͸࣮࣭Rspberry Pi 3B Ұ୒ɺ3B+ૣ͘དྷͯ͘Εɻ • ηΩϡϦςΟ • ϓϩμΫτʹ͢Δʹ͸ϙʔτดͨ͡ΓϢʔβݖݶઃఆͨ͠Γɻ • ଞͷϘʔυ΋ಉͩ͡ͱࢥ͏ɻ • Thingsࣗ਎ͷ৘ใ͕·ͩ·ͩগͳ͍ɻ • ΈΜͳͰ࢖ͬͯΤίγεςϜ࡞͍͖ͬͯ·ͤΜʁ • ύΠΦχΞਫ਼ਆͰऔΓ૊ΊΔɻ