[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 Korea Meteorological Administration Get Weather Information RSS #175)
    bota.tistory.c...
    (Reference 7 Public Data Portal/Korea Environment Corporation/National Fine Dust Concentration#198)
    bota.tistory.c...
    (Reference 8 Printing Korean on ILI9341 #170)
    bota.tistory.c...
    (Reference 9 C# WinForms HttpListener#143)
    bota.tistory.c...
    In this episode, we will make a request to the web server using the HTTP protocol with the ESP32 board!
    The esp32 board becomes a web client! (Running as a web server in the beginning is complete)
    A typical example that can be implemented is to receive weather information from the Korea Meteorological Administration!
    Let's make the example that Nokkanda made in the past ESP8266 run on ESP32!
    (Explain the basic principle)
    And let's choose one of the OPENAPI services provided by the public data portal and apply it!
    I had a problem while trying to use the ILI9341 LCD in the first half of the ESP32 series, but I came up with a solution!
    Let's print the information provided by the web server to the ILI9341!
    And let's run it as an example that connects the SD card reader module to the ESP32, reads the Korean font contained in the SD card, and outputs it in Korean on the LCD!
    (I confirmed that the ESP8266 example does not run directly on the ESP32)
    Finally, let's run the HTTP communication example between the ESP8266 and C# WinForms with the ESP32 version!
    Try to do everything you can!
    (Example implemented in live broadcasting)
    Example code is on the blog! bota.tistory.c...
    1. Implement the RSS example of the Meteorological Agency in Nockanda's Arduino 175 with the ESP32 version!
    2. Connect the ILI9341 to the ESP32 and run the graphics test example!
    3. Connect the ILI9341 and SD card reader to the ESP32 and run the example of printing in Korean!
    4. Output the weather information obtained from the Korea Meteorological Administration in Korean on ILI9341! (Replace 175-5 example with ESP32)
    5. Implement an example of receiving the Korea Environment Corporation air quality inquiry OPENAPI service from the public data portal to the ESP32 and outputting it on the LCD in Korean!
    6. In the HTTPLISTENER example created in Nokkanda's C# WinForm, implement an example that ESP32 uploads virtual temperature and humidity values!
    7. Implement an example of sending data from a web server implemented with C# WinForms to the ESP32!

КОМЕНТАРІ •