Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
アルコールモニタリングIoT / Alcohol monitoring IoT
Search
shanonim
February 28, 2019
Technology
0
550
アルコールモニタリングIoT / Alcohol monitoring IoT
2019.02.28
enebular developer Meetup Vol.8
https://enebular.connpass.com/event/117432/
shanonim
February 28, 2019
Tweet
Share
More Decks by shanonim
See All by shanonim
実践 Glass EE2 向けアプリ開発 / Practical Glass EE2 app development
shanonim
0
240
What's "Material You"
shanonim
0
300
新規事業のIoTプロダクトをプロトタイピングする技術 / IoT product prototyping in cookpad mart
shanonim
0
200
IoTで美味しい漬け物を作りたい v2 / make good pickles with IoT v2
shanonim
1
380
Play with Android Things
shanonim
1
6.1k
Android Things Now
shanonim
1
590
Kotlin初心者向けハンズオン #3 / Kotlin Hands-on for Beginners
shanonim
2
310
UI模写のすゝめ / Encouragement of UI drawing
shanonim
3
2.2k
食卓を支える技術 ~Oisixのアプリ開発~ / App Development in Oisix
shanonim
0
1.3k
Other Decks in Technology
See All in Technology
Railway Oriented Programming を オニオンアーキテクチャに適用する by kotlin-result / Railway Oriented Programming in Onion Architecture by kotlin-result
yuitosato
2
210
初心者に Vue.js を 教えるには
tsukuha
3
210
TinyMLの技術動向
kyotomon
2
260
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
2
1.1k
APIテスト自動化の勘所
yokawasa
4
1.1k
[PyCon Korea 2024] Lightning Talk: PyPI패키지를 의심하세요
studioego
PRO
0
130
2024-10-30-reInventStandby_StudyGroup_Intro
shinichirokawano
1
230
30万人が利用するチャットをFirebase Realtime DatabaseからActionCableへ移行する方法
ryosk7
2
300
品質の高い機能を”早く”提供するために技術的な面でチームでやったこと、やりたいこと
sansantech
PRO
2
230
Apple/Google/Amazonの決済システムの違いを踏まえた定期購読課金システムの構築 / abema-billing-system
cyberagentdevelopers
PRO
1
190
Databricksワークショップ - 生成AIとDWH
taka_aki
2
4.5k
よくわからんサービスについての問い合わせが来たときの強い味方 Amazon Q について
kazzpapa3
0
140
Featured
See All Featured
A designer walks into a library…
pauljervisheath
202
24k
Happy Clients
brianwarren
97
6.7k
YesSQL, Process and Tooling at Scale
rocio
167
14k
Automating Front-end Workflow
addyosmani
1365
200k
The Cult of Friendly URLs
andyhume
78
6k
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Designing on Purpose - Digital PM Summit 2013
jponch
115
6.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
What's in a price? How to price your products and services
michaelherold
243
11k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
22k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Transcript
ΞϧίʔϧϞχλϦϯά*P5 FOFCVMBSEFWFMPQFS.FFUVQ7PM !TIBOPOJN
ΫοΫύουגࣜձࣾങࣄۀ෦ ࣰݪ߂ޫ !TIBOPOJN "OESPJEJ04*P51SPUPUZQJOH
None
ϚΠίϯ .4UBDL Ͱ*P5ϓϩτλΠϐϯάΛͨ͠Γ͍ͯ͠·͢
None
w FOFCVMBSʢΤωϒϥʔʣɺ*P5ɾαʔϏεͮ͘ΓΛแׅతʹࢧԉ͢Δɺ։ൃɾӡ༻αʔϏ εͰ͢ɻΤοδͱΫϥυʹ·͕ͨΔ*P5ΞϓϦέʔγϣϯΛ։ൃ͠ɺ༷ʑͳσόΠεਝʹ σϓϩΠɺେͳྔͷσʔλΛՄࢹԽ"*ʹΑΓར׆༻͢Δ͜ͱͰɺ*P5ΞϓϦέʔγϣϯͷ࠷ దͳӡ༻Λࢧԉ͠·͢ɻ ެࣜαΠτΑΓ w IUUQTXXXFOFCVMBSDPNKBBCPVU FOFCVMBS
None
w 8JP-5& "MDPIPM4FOTPSͰΞϧίʔϧϞχλϦϯά*P5 w ਲ͍ΛՄࢹԽ͢Δ w దͳਲ͍Ͱɺ݈߁ͳ৯ੜ׆ΛखʹೖΕΑ͏ ࠓճͷςʔϚ
8JP-5&XJUI403"$0. (SPWF"MDPIPM4FOTPS BOBMPHWBMVF IUUQ1045 'JSFCBTF %BUB4PVSDF qPX JOGPNPUJPO
None
#include <stdio.h> #include <WioLTEforArduino.h> #include <limits.h> #define INTERVAL (5000) #define
SENSOR_PIN (WIOLTE_A6) #define URL “https://<YOUR-DOMAIN>.herokuapp.com/upload" WioLTE Wio; int alcohol = 0; void setup() { // Connect LTE delay(200); SerialUSB.println("--- START ---------------------------------------------------"); SerialUSB.println("### I/O Initialize."); Wio.Init(); SerialUSB.println("### Power supply ON."); Wio.PowerSupplyLTE(true); delay(500); SerialUSB.println("### Turn on or reset."); if (!Wio.TurnOnOrReset()) { SerialUSB.println("### ERROR! ###"); return; } delay(3000); SerialUSB.println("### Setup completed."); }
void loop() { char data[100]; int status; alcohol = analogRead(SENSOR_PIN);
SerialUSB.print("sensor test value = "); SerialUSB.println(alcohol); delay(1000); sprintf(data, "{\"alcohol\": %d}", alcohol); if (!Wio.HttpPost(URL, data, &status)) { SerialUSB.println("### ERROR! ###"); goto err; } err: delay(3000); }
None
None
None
ύʔιφϧՃ࣪ˍۭؾਗ਼ড়ػʮΤΞΫϦʔϯωοΫόϯυʯ IUUQTXXXUIBOLPKQTIPQEFUBJM ͜͜ʹ͚͍ͨ JOQSPHSFTT
Ϣʔεέʔε w टݩͰৗʹΞϧίʔϧݕ w JGҿΈ͗ͯͨ͢Β w ৼಈ w ిؾ w
DVSSFOUTUBUVTΛπΠʔτ w ೋਲ͍͕ະવʹ͛ΔͷͰϋοϐʔ
ࡶײ w ʮఆظతʹσʔλऔಘͯ͠ՄࢹԽ͍ͨ͠ʯཁ݅Λγϡοͱ࡞Εͯ࠷ߴʂʂʂ̍ w 'JSFCBTFʹஷΊͯΔσʔλΛผ్׆༻͢Εͬͱ͍Ζ͍ΖͰ͖ͦ͏ w ΞϓϦ࡞ͬͨΓɺCPUͱ࿈ܞͨ͠Γ w /PEF3&%εΩϧ্͍͛ͨ w
JOGPUZQF+4ͳͷͰɺ࣮࣭δϟόεΫϦϓτ*P5ͳͷͰʁʂʁʂ