ååã¯ãå±ç¤ºãã¦é ããã³ã¡ã³ããã¡ã¤ã³ã§è¨äºã«ãã¾ããã
ä»åã¯ãæ°ã¥ãããã¨ãã¡ãã£ã¨ã¡ã¢ã£ã¦ããã¾ãã
使ã£ã¦ã¿ããmBaaSï¼ã£ã¦ãããã§ãããï¼
é£ã§å±ç¤ºãã¦ãAnbientãã¡ãã£ã¨ã¾ãããæ°ã«ãªã£ã¦ãã¾ããã
Arduinoã¨ãESP8266ãæµè¡ã£ã¦ã¦ãç°¡åã«ã»ã³ãµã¼ã§è²ããªæ å ±ãåããã¨ãã§ããããã«ãªãã¾ããããã ããã®æ å ±ãç°¡åã«å¯è¦åããã®ã¯çµæ§é£ããã§ããç¹ã«ãåã¿ããã«ã¦ã§ãããªã¨ã³ã¸ãã¢ãªã³ã°ãè¦æãªäººéã«ã¨ã£ã¦ã¿ãã°ãè¦è¡ã§ããããã¾ãããããã§ãä¸è¨ã®ãµã¼ã´ã£ã¹ã使ãã°ãç°¡åã«ç¡æã§æ å ±ãå¯è¦åãããã¨ãã§ãã¾ãã
ãã©ã¬ã¼ã«ã§2é²æ°ã«ã¦ã³ã¿
人çãç¡é§ãçããã¨ã¯å¤§åããããã¾ãããã§ããå ¨ãç¡é§ã®ãªã人çã¯æ¥½ããã®ã§ããããï¼
ãã®å±ç¤ºã§ã¯ãã©ã¬ã¼ã«ã®ãã¤ã³ãã¬ã¼ã«ã®æ²ããæ¹åãï¼ã¨ï¼ã表ãã¦ãã¦ããã©ã¬ã¼ã«ãèµ°ãã¨0b000
ãã0b111
ã¨ããæãã§å¢ãã¦ããã¾ãã(ãããããã¨ã4bitã«ã¦ã³ã¿ã®ééãã§ãããã´ã¡ã³ããµã¤ã)
誰ã®å¾ã«ãªãã®ããä½ãã®å½¹ã«ç«ã¤ã®ããããããã®ã¯ãããã§ããä½ããã¨ãç´ æ´ãããããçºæ³ãç´ æ´ãããããã¸ã§ããåºãã¦ãããä¼ç¤¾ãç´ æ´ãããã
ExcelCreater
JavaãC#ããExcelãã¡ã¤ã«ãä½æã§ãããã©ã°ã¤ã³ã®ãããªãã®ãExcelã¨éåæ¦ãã«ãªã£ãããã¸ã§ã¯ããä¼ç¤¾ã§ã¯ããªãéå®ããããªäºæãExcelã¯ããã¨æå¼·ãªã¢ããªã§ããéçºç°å¢ã§ãã£ãããã¾ãããExcelããé¢ãã¦Google Spreadsheetã¨ãã§ä»£ç¨ã§ããã°ããããããã¼ã«ã¯ä¸è¦ã ã£ãããããã§ããããï¼ã¾ãããããã§ããªãããExcel使ã£ã¦ããã§ãããï¼
ã¤ãè²·ã£ã¡ãããªã©ã¤ãªã¼
ä¼å ´ã§ã¯ãç¿æ³³ç¤¾ããã¨ãªã©ã¤ãªã¼ããã®æ¬ãå®ãè²·ããã¨ãã§ãã¾ãã
www.instagram.com
åãã¤ãã¤ãããMake: Electronics âä½ã£ã¦ãããé»æ°ã¨é»ååè·¯ã®åºç¤ ããè²·ã£ã¦ãã¾ãã¾ãããå®ä¾¡ãã10ï¼ ãªããããã¦æ¶è²»ç¨åãå²å¼ãããªãå®ãè²·ãã¾ããã
ãã¢ã«ã¯ãã©ãã«ã¯ã¤ããã®
ä¸å¿ãä¼å ´ã®APãæã£ãã®ã§ãããçµç±ã§éä¿¡ããã³ã¼ãã«ããã®å ´ã§ã©ã¤ãã³ã¼ãã£ã³ã°ãã¢ãã¤ã«ããããªã¼ã§ãåãããã«ãESP8266ã®DEEPSLEEPãå°å°ããdelay()ã§Loopããããã«å¤æ´ã
#include <ESP8266WiFi.h> #include <WiFiClient.h> char ssid[] = "ä¼å ´ã®SSID"; char password[] = "ä¼å ´ã®PASSWORD"; char unkopage[] = "unkou.keikyu.co.jp"; int led = 14; int intervalSec = 10 * 60; void setup() { pinMode(led, OUTPUT); digitalWrite(led, LOW); Serial.begin(115200); Serial.println(""); } void loop() { connectWifi(); String result = getPageSource(); Serial.println(result); disconnectWifi(); if (result.indexOf("unko-panel") < 0) { Serial.println("åå¾ã¨ã©ã¼"); delay(5000); } else if (result.indexOf("平常") < 0) { Serial.println("é 延ãã¦ãããããã¾ãã"); blinkLed(intervalSec * 1000, false); } else { Serial.println("平常éãé転ãã¦ã¾ã"); // ESP.deepSleep(intervalSec * 1000 * 1000, WAKE_RF_DEFAULT); delay(intervalSec * 1000); } } void connectWifi() { WiFi.mode(WIFI_STA); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { Serial.print("."); blinkLed(1000, true); } Serial.println("connected!"); } void disconnectWifi() { WiFi.disconnect(); Serial.println("disconnected!"); } String getPageSource() { WiFiClient client; if ( !client.connect(unkopage, 80) ) { return String(""); } client.print(String("GET ") + "/" + " HTTP/1.1\r\n" + "Host: " + unkopage + "\r\n" + "Range: bytes=8000-9000\r\n" + "Connection: close\r\n\r\n"); client.println(); delay(1000); String body = ""; while (client.available()) { body += client.readStringUntil('\r'); } return body; } void blinkLed(int msec, boolean fast) { int totalTime = 0; while (totalTime < msec) { int onTime; int offTime; if (fast) { onTime = 5; offTime = 95; } else { onTime = 5; offTime = 995; } digitalWrite(led, HIGH); delay(onTime); digitalWrite(led, LOW); delay(offTime); totalTime += onTime + offTime; } }
ãªããªãä¼å ´ã®Wi-Fiãè©°ã¾ãæ°å³ã ã£ãããã¦ãæ å ±ãåãã¥ããç¶æ ã«ãªããã¨ãããã¾ãããããã¦ã»ã»ã»
ä»æ¥ã京æ¥ãå ¨ç¶é 延ããªãã®ãã #devsumi #京æ¥æå¼· #京æ¥ã¯ç¥ pic.twitter.com/O3Vf7HBNvY
— ãã㪠(@pokiiio) 2017å¹´2æ16æ¥
京æ¥ãå ¨ç¶é 延ããªãã¨ããäºæ ããããé 延ããªãã®ã¯ãããã¨ãªãã§ãããèå¿ã®LEDãå ¨ç¶å ãã¾ããããã¢çã«ã¯ã¡ãã£ã¨ã¢ã¬ã§ããã
ãã£ã±ãå ãç©ã¯å¼·ã
ãã·ã³ã ããã®ã¦ã¯ã¬ã¬ã¨ããã®ã£ã«é»ããã¨ããæ¬å½ã«ãã©ãã©ãã¦ã¾ããã
www.instagram.com
ãã£ã±ããå ãã¨ã¤ã³ãã¯ãå¼·ãã§ãããããªã¼ãã£ã¨ã³ã¹ãå¿ ç¶çã«å¤ããªãã¾ããã¡ãã£ã¨ãããã¾ããã§ããã京æ¥ãå ãæ¹ãå¼±ããã§ãããã»ã»ã»ã
ã©ãã§ããããã¨
- ç®é»ã®å¤©çï¼å± é å±ï¼ã¯ãã
- ååºãå¿ãã¦ã¯ãããªã
- ãããµãã®åå ç»é²ãå¿ãã¦ã¯ãããªã
- é ååã¯Amazonãªãã£ã¹ï¼ã¢ã«ã³ã¿ã¯ã¼ã¢ããã¯ã¹ï¼ã®ã¨ã¹ã«ã¬ã¼ã¿ã¼çµç±ã§è¡ãã¨ãåéãç»ã£ããä¸ã£ããããªãã¦æ¸ã
- åå·âç®é»ã¯é½å¶ãã¹ãèµ°ã£ã¦ã
- åå·âé ååã¯ç¡æã·ã£ãã«ãã¹ãèµ°ã£ã¦ã