본문 바로가기

전체 글

(292)
온라인 온도계 #include #include #include #define DHTPIN 5 #define DHTTYPE DHT11 DHT dht(DHTPIN, DHTTYPE); const char* ssid = "IOT999"; const char* password = "kbs48752"; WiFiClient client; unsigned long myChannelNumber = 2068795; const char * myWriteAPIKey = "MEL279JBB5MXABAX"; void setup() { Serial.begin(115200); // Connect WiFi net. Serial.println(); Serial.print("Connecting with "); Serial.println(ssid); W..
ESP8266온도_흙 수분_LED 실내외 온도, 흙 수분, LED ON, OFF제어를 합니다. 온도 센서 : AM2320, AM2302 흙 습도 센서 : 흙의 수분 측정 LED ON,OFF : 화분, 텃밭 자동 물 뿌리기 위해 모터 제어를 위함 온돋센서 am2302 am2320 수분 센서 source code #include #include #include #include #define DHTPIN 14 #define DHTTYPE DHT22 DHT dht(DHTPIN, DHTTYPE); Adafruit_AM2320 am2320 = Adafruit_AM2320(); const char* ssid = "IOT999"; const char* password = "kbs48752"; // Port 80 // Create an instance ..
ESP8266_AM2320_LED 현제온도 보다 낮거나 높으면, 제어 할 수 있는 기초입니다. LED 포트에 릴레이, 서보모터를 이용하여 전열기를 ON,OFF를 할 예정입니다. source code #include #include #include Adafruit_AM2320 am2320 = Adafruit_AM2320(); const char* ssid = "IOT999"; const char* password = "kbs48752"; // Port 80 // Create an instance of the server // specify the port to listen on as an argument WiFiServer server(80); float temper = 0.0; float h = 0.0; unsigned long prev..
esp8266_LED_On_OFF LED ON OFF를 제어합니다. 핀 D4이며, gpio2 입니다. 아래 Arduino Code를 업로드 합니다. Components를 합니다. properties는 CSS입니다. 마음껏 꾸며, 보세요. 블럭코드 #include const char* ssid = "IOT999"; const char* password = "kbs48752"; // Create an instance of the server // specify the port to listen on as an argument WiFiServer server(80); void setup() { Serial.begin(9600); delay(1500); // prepare GPIO2 pinMode(2, OUTPUT); digitalWrite(2..
esp8266_led_On_off D4에 해당되는 LED를 on, off힙니다. #include #define LED4 2 const char* ssid = "IOT999"; const char* password = "kbs48752"; IPAddress local_IP(192, 168, 0, 17); IPAddress gateway(192, 168, 0, 1); IPAddress subnet(255, 255, 255, 0); WiFiServer server(80); void setup() { Serial.begin(115200); pinMode(LED4, OUTPUT); WiFi.config(local_IP, gateway, subnet); WiFi.begin(ssid, password); while (WiFi.status() != W..
온도센서_AM2320_ECP8266_LED_E nodeMCU GPIO2 기본적으로 연결된 LED를 ON, OFF 합니다. 스마트폰에서 실행 (온도센서_AM2320_ECP8266_LED_E에서 계속합니다.) source code /********* Rui Santos Complete project details at The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. *********/ // Import required libraries #include #include #include #include #include Adafruit_AM2320 am2320 = Adafruit_A..
온도센서_AM2320_ESP8266_Inventor_D MIT Inaventor App에 적용하여 봅니다. 온도센서_ AM2320_ESP8266_CSS_C에서 계속입니다. 스마트폰 화면 App Build 디자인 블럭 코드
온도센서_AM2320_ESP8266_CSS_C style를 이용하여, 화면을 디자인 해봅니다. (온도센서_AM2320_ESP8266_B에서 계속합니다.) CSS를 ~ 에 CSS를 작성합니다. body { background-color:white; } h2 { font-size: 40px; text-align: center; } p { font-size: 40px; color:red; text-align: center; line-height: 50px; } ~ code Thermometer %TEMPERATURE% [Celcius] 전체 소스 #include #include #include #include #include #include #include Adafruit_AM2320 am2320 = Adafruit_AM2320(); const char*..