IoT/Arduino

    [Wemos D1] 2. Thinkspeak에 데이터를 올리는 방법

    두번째로 @Thinkspeak에 데이터를 올리는 방법을 소개하겠습니다. 우선 Thinkspeak란 IoT센서 값이나 다양한 데이터들을 모아 그래프로 볼 수 있게 해주는? 사이트라고 생각해주시면 되겠습니다. https://thingspeak.com/ IoT Analytics - ThingSpeak Internet of Things Weather Station This project shows how to build an Arduino-based weather station that sends data to ThingSpeak. Once the data is collected, MATLAB is used to view trends of the data, plot histograms of the data, c..

    [Wemos D1] 1. WiFi 연결하는 법

    Wemos D1 보드를 통해 WiFi를 연결하는법을 알기위해 수 많은 정보의 바다를 뒤졌고 거기있는 많은정보들을 다 보니 이해하기가 너무어려웠기에 단계별로 글을 작성하려고합니다. 그 정보들을 잘 조합해서 합쳤고 아주아주 기초 초보자들을위해 주석도 달고 만들었습니다. 우선 이 글은 아두이노에서 WiFi를 사용하기위해선 ESP8266 모듈을 사용하는데 이 모듈이 내장되어있는 보드중 Wemos D1에 대한 설명입니다. 이 글의 순서는 1. WiFi연결하는법 2. Thinkspeak에 data 올리는법 3. 그 data를 앱인벤터 APP으로 받아오는법 4. 앱인벤터에서 아두이노로 WiFi를 통해 값을 변환시키는 법(저의 경우는 서보모터를 움직였습니다) 5. 토양수분센서 사용법(간단하게) 총 4가지 단계로 움직일..

    [아두이노] LCD 알파벳 표현하기

    /* LiquidCrystal Library - Hello World Demonstrates the use a 16x2 LCD display. The LiquidCrystal library works with all LCD displays that are compatible with the Hitachi HD44780 driver. There are many of them out there, and you can usually tell them by the 16-pin interface. This sketch prints "Hello World!" to the LCD and shows the time. The circuit: * LCD RS pin to digital pin 12 * LCD Enable ..

    [아두이노] 키패드 입력받기

    #include const byte rows = 4; //four rows const byte cols = 4; //three columns char keys[rows][cols] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; byte rowPins[rows] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad byte colPins[cols] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad Keypad customKeypad = Keypad( makeKeymap(keys), rowPins,..

    [아두이노] 아날로그 핀으로 모터움직이기(MAP함수)

    #include Servo myservo; // 서보모터 생성 int potpin = A0; //아날로그 핀 연결 int val; //핀 값 변수 void setup() { myservo.attach(9); Serial.begin(9600); } void loop() { val = analogRead(potpin); val = map(val, 0, 1023, 0, 180); myservo.write(val); Serial.println(val); delay(15); }