[Arduino

Поділитися
Вставка
  • Опубліковано 23 вер 2024
  • Nockanda's ESP32 series!
    As the title suggests, Nockanda in the past used only the ESP8266 board as an IoT board!
    The demand for ESP32 seems to be increasing, and the most important thing is that Nockanda now needs an ESP32 board!
    It can be said that the main topic is to change the examples made with ESP8266 to the ESP32 version!
    At the same time, let's add a little explanation and make some examples!
    (Let's go ahead and highlight the differences between the ESP8266 and the ESP32!)
    (But almost 80~90% seems to be there!)
    In this episode, we will cover how to start the ESP32 board with Arduino development tools and the main contents such as precautions when starting!
    (Reference 1 ESP32 pin map)
    docs.espressif...
    (Reference 2 INPUT_PULLUP enabled pin)
    NO 34,35,2,36,39
    YES 32, 33,25,26,14,27,12,13,22,23,19,21,5,18,16,17,4,15
    (Reference 3 I2C pin of ESP32)
    SDA : 21
    SCL : 22
    (Reference 4 ESP32's SPI pin)
    SCK : 18
    MOSI : 23
    MISO : 19
    CS : 5
    (Reference 5 Serial pin of ESP32)
    RX : 16
    TX : 17
    (Reference 6 Controlling ESP8266 with MQTT in C# WinForms #104)
    bota.tistory.c...
    (Reference 7 Controlling ESP8266 with MQTT in node-red #280)
    bota.tistory.c...
    (Reference 8 Controlling the ESP8266 with MQTT in app-inventor #311)
    bota.tistory.c...
    (Reference 9 Installing NodeRed on Windows)
    • 윈도우10(windows10)에 노드레드...
    (Reference 10 App Inventor MQTT Extension)
    ullisroboterse...
    In this episode, following episode 555, let's apply the MQTT protocol to the ESP32 and control it!
    In flight 555, there was no concept of implementing a controller capable of controlling the ESP32, so we aimed to control it with a smartphone!
    It was demonstrated with an MQTT app someone made in the App Store!
    In this episode, I will implement and control an MQTT client that can control the ESP32 myself, not someone else's!
    Let's try to approach it in the following order!
    1. Control the ESP32 with a Windows app made with C# WinForms!
    2. Control the ESP32 with the node-red IoT platform!
    3. Control the ESP32 with App-inventor!
    (Example implemented in live broadcasting)
    Example code is on the blog! bota.tistory.c...
    1. Display the message transmitted from ESP32 to MQTT on the C# WinForm screen, and enable the message transmitted from C# WinForm to MQTT to be displayed on the serial monitor of ESP32!
    2. Connect the LEDs to pin 15 and pin 2 of the ESP32 one by one and turn them ON/OFF by the command sent from C# Winform!
    10 : LED No. 1 OFF
    11 : LED No. 1 ON
    20 : LED No. 2 OFF
    21 : LED No. 2 ON
    3. Prepare two ESP32 boards, connect one LED each to pin 15 and pin 2, and control the LEDs individually in C# Winform!
    4. (In Example No. 2) Connect the temperature and humidity sensor (DHT-11) to pin 4 of the ESP32 board, and send the measured value to C# Winform through MQTT and output it on the screen! (CSV format)
    5. (In Example No. 4) Let C# know whether the two LEDs attached to the ESP32 are on or off, and output the received temperature and humidity values ​​using a gauge! (ESP32 code is the same as No. 4)
    6. (In Example 4) Use the code uploaded to ESP32 in node-red as it is! (ESP32 code is the same as number 4)
    7. (In Example 4) Use the code uploaded to ESP32 in app-inventor as it is! (ESP32 code is the same as number 4)

КОМЕНТАРІ • 3

  • @먼치킨TV-c8q
    @먼치킨TV-c8q 2 місяці тому

    형님 대단하시네요 ㅎㅎㅎ 설명도 잘해주시고. 구독 하고갑니다

  • @bhs-hs9tr
    @bhs-hs9tr Рік тому

    혹시 GPIO 인터럽트를 이용하여 버튼 입력 시 mqtt를 통해 메세지를 보내는 식으로 구현하려고 했습니다. 그래서 esp32 GPIO 예제를 참고해서 어태취인터럽트 함수를 사용하니까 와이파이 연결이 끊기는 현상이 발생하는데 어떠한 이유인지 알 수 있을까요??

    • @nockanda
      @nockanda  Рік тому

      특별히 사룡하면 안되는 핀에 연결한게 아니라면 아래 내용을 참고해보세용
      bota.tistory.com/m/1830