Total Pageviews

Showing posts with label ESP32. Show all posts
Showing posts with label ESP32. Show all posts

Sunday, September 23, 2018

NTP clock using OLED Wemos Lolin ESP32

   I buy an interesting ESP32 development board module because it has built-in OLED display drived with SSD1306 chip (is classc 0.96" OLED display).
  I combine 2 sketches to use NTP clock data (see https://en.wikipedia.org/wiki/Network_Time_Protocol for more info). This sketch is ESP32_OLED_SSD1306_NTP_0.ino who use ESP32-OLED0.96-ssd1306 and NTPtimeESP libraries.
   You can see how is clock displayed on OLED display while whatching NTP clock using OLED Wemis Lolin ESP32 movie.

Sunday, August 26, 2018

WebServer with ESP32

   I buy an Geekcreit® ESP32-DevKit development board and I want to test quickly, so I use information from article ESP32 Web Server – Arduino IDE writted by Rui Santos.
    I discover that development boar has 2 built-in leds, one at GPIO0 and one at GPIO27 (while om net is mentioned just GPIO27), so I change the sketch to use this leds and to invert logical level because leds are connected thru resistors at +3,3V not GND.
   Changed sketch is ESP32_WebServer.ino and you can upload in ESP32 development board after follow steps from article Installing the ESP32 Board in Arduino IDE (Windows instructions).
   After upload my sketch, in serial monitor it appear IP adress for local WebServer
   First, both leds are off
but after you push virtual button from webserver named GPIO0 led will lit (upper button)
and after push botton button (GPIO27) apropriate led will lit
 To have just GPIO27 led lit, must pust on GPIO0 button
   I made Web Server with red ESP32 board from Banggood movie where is presented how WebSwever control the two leds

Saturday, August 18, 2018

128x128 1.5" OLED display with SSD1327 controlled by ESP32

original article

   I received an interesting display for test (OLED technology, 128x128 resolutios, SSD1327 driver) for made to work with ESP32 development board.

   Default, connexion is for SPI, but you can change to i2c connexion, see in schematic from here.
   I search info and after few tests, I used with good results u8g2 library  and my config is
U8G2_SSD1327_MIDAS_128X128_F_4W_SW_SPI u8g2(U8G2_R0, /* clock=*/ 13, /* data=*/ 12, /* cs=*/ 14, /* dc=*/ 27, /* reset=*/ 26);
   You can see 1.5” OLED display with ESP32 movie



Tuesday, July 3, 2018

128x160 1.8" TFT display with ST7735 controlled by ESP32

   I give an 1.8" TFT display with 128x160 resolution. It use ST7735 as driver.
   I wanted to use together with an ESP32 development board and first I search information about this connexion but just two article and an topic on Arduino forum was usefull.
   First usefull article was 128×128 Colour LCD to ESP32 from www.xtronical.com. Schematic for connexion is
It used Xtronical ST7735 library derivated from Adafruit ST7735 library... I tested, but I can't display all info in all four modes (0, 90, 180 and 270 degree) even if I change resolution in library as 128x160 not 128x128.
  I made 128x160 1.8" TFT display with ST7735 controlled by ESP32 to be more clear
   In article Cheap 1.77 Inch TFT-screen on ESP32 from https://www.hackster.io/ and  an topic on Arduino forum I discover Bodmer's TFT_eSPI library. After few time testing, I can see ok info on display.
   My changed User_Setup.h works fine for me, see in 128x160 1.8" TFT display with ST7735 controlled by ESP32 (2)