I NEED HELP with a ESP8266 board WITH AN OLED BUILT IN

Miguel_Torrealba
Posts: 1
Joined: Wed Mar 20, 2024 2:12 am

I NEED HELP with a ESP8266 board WITH AN OLED BUILT IN

Postby Miguel_Torrealba » Wed Mar 20, 2024 2:40 am

Hello everyone, i know this forum is exclusive for the esp32 but since no more post can be made in the esp8266 that brought me here, i bought an ESP8266 board recently in aliexpress i´ll attach the link below (its in spanish but it basically says NodeMCU-developement board ESP8266 with integrated OLED 0,96 inches, driver module CH340 for programming in Arduino IDE/Micropython), with an integrated YELLOW and BLUE oled

well here´s the thing when i pluged it in everything is fine, the oled turns on and show the message you see in the aliexpress picture showing the OLED screen pins, then i flashed it with the DAUTHER BIN code with a NODEMCU firmaware programer, then what happened was that i only saw the hello world fragment of the screen, and stayed in that state, i couldnt see the menu i was supposed to see (later i realised that code was for generic ESP8266 board conected with a oled screen NOT built in, i dont think that could damage the oled screen or the board itself)

well then i got desperate trying to see what i could do i just unpluged the device, and the oled screen went to sleep, wont even show the factory message, later i found out i could used it with the arduino IDE, i set my arduino IDE to compile ESP8266 code and i downloaded all the esp8266 OLED libraries and i tried the OLED code examples (like of 100 codes and models) and nothing seems to get the OLED display show anything (and yes i set the ssddisplay() (and some others) function with my particular esp8266 board SDA and SCL pins that you see in the advertisement picture but in vain)

good news is that i tried the builtin led code and it works perfectly, so i dont think the board is damaged, after a crazy research marathon i could not find anything but headaches, tried different codes, different libraries, wrote in the google engine "esp8266 built in oled" in a millions of ways to find my particular board but it seems that the one i own is SO PARTICULAR that nobody has made content on it, and im just a newbie in this subject

so im asking for your help on how to make the oled screen turn on again with an arduino code (or bin), to help me know what im doing and done wrong, if i need to install something else, or if you know a community that has made codes for THIS ONE OF KIND BOARD, i will be very thankful with you

Regards :D

https://es.aliexpress.com/item/10050062 ... ry_from%3A

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: I NEED HELP with a ESP8266 board WITH AN OLED BUILT IN

Postby ESP_Sprite » Thu Mar 21, 2024 3:16 am

Moved to the ESP8266 subforum.

Mandala20024
Posts: 1
Joined: Tue Jul 16, 2024 5:27 pm

Re: I NEED HELP with a ESP8266 board WITH AN OLED BUILT IN

Postby Mandala20024 » Tue Jul 16, 2024 5:36 pm

Hello friend, leave here the code that you can send to your Esp8266 that will make the display work again, then just make the changes you want within your project

Code: Select all

#include "SSD1306Wire.h"
#include "ESP8266WiFi.h"

// Inicialize o display OLED usando o Arduino Wire:
SSD1306Wire display(0x3c, D6, D5);  // Use os pinos corretos para SDA e SCL

void setup() {
  WiFi.mode(WIFI_STA);
  WiFi.disconnect();
  delay(100);

  // Inicializar o display
  display.init();
  // display.flipScreenVertically();  // Use se necessário
  display.setFont(ArialMT_Plain_10);
  display.setTextAlignment(TEXT_ALIGN_CENTER);
}

void loop() {
  display.clear();

  display.drawString(64, 0, "Bem Vindos");
  display.drawString(64, 16, "Cervejaria Mandala");
  display.drawString(64, 32, "Cervejas Especiais");
  display.drawString(64, 48, "Inhapim - MG");

  display.display();
  delay(5000);  // Tempo para manter a mensagem exibida

  // Se desejar, você pode adicionar mais funcionalidades aqui
}

arun_k
Posts: 1
Joined: Mon Sep 02, 2024 8:13 pm

Re: I NEED HELP with a ESP8266 board WITH AN OLED BUILT IN

Postby arun_k » Mon Sep 02, 2024 8:18 pm

/*

Try copy-pasting this, it worked for me.
HelloWorld.ino

Universal 8bit Graphics Library (https://github.com/olikraus/u8g2/)

Copyright (c) 2016, olikraus@gmail.com
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or other
materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/

#include <Arduino.h>
#include <U8g2lib.h>

#ifdef U8X8_HAVE_HW_SPI
#include <SPI.h>
#endif
#ifdef U8X8_HAVE_HW_I2C
#include <Wire.h>
#endif

U8G2_SSD1306_128X64_NONAME_F_SW_I2C u8g2(U8G2_R0, /* clock=*/ 12, /* data=*/ 14, /* reset=*/ U8X8_PIN_NONE); // All Boards without Reset of the Display



void setup(void) {
u8g2.begin();
}

void loop(void) {
u8g2.clearBuffer(); // clear the internal memory
u8g2.setFont(u8g2_font_7x14B_tr); // choose a suitable font
u8g2.drawStr(0,10,"Hello World!"); // write something to the internal memory
u8g2.sendBuffer(); // transfer internal memory to the display
delay(1000);
}

Who is online

Users browsing this forum: No registered users and 34 guests