Using a 2.9 inch E-Paper Display with ARDUINO

Daestrum

Expert
Licensed User
Longtime User
I successfully connected to my esp in AP mode.
These are the changes I made in Loader.ino (some are probably not needed)
B4X:
ESP8266WebServer server(80);
///IPAddress myIP;       // IP address in your local wifi net
IPAddress myIP(10,0,1,20);
IPAddress gateway(10,0,1,10);
IPAddress subnet(255,255,255,0);
const  char * ssid = "Epaper";
const  char * password = "testing";
void setup(void) {
  Serial.begin(9600);
 /// WiFi.mode(WIFI_STA);
 WiFi.mode(WIFI_AP);
///  WiFi.begin(ssid, password);
  //Static IP setting---by Lin
  wifi_station_dhcpc_stop();
  struct ip_info info;
 IP4_ADDR(&info.ip, 192, 168, 0, 189);
 IP4_ADDR(&info.gw, 192, 168, 0, 0);
 IP4_ADDR(&info.netmask, 255, 255, 255, 0);
 wifi_set_ip_info(STATION_IF, &info);
WiFi.softAPConfig(myIP, gateway, subnet);
WiFi.softAP("testSSID");

  // Connect to WiFi network
/* ///
  Serial.println("");
  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);
*/
  // SPI initialization
  pinMode(CS_PIN  , OUTPUT);
  pinMode(RST_PIN , OUTPUT);
  pinMode(DC_PIN  , OUTPUT);
  pinMode(BUSY_PIN,  INPUT);
  SPI.begin();
  // Wait for connection
/* ///
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }
*/

Ignore the commented code ( it's the original code in case it all went TU)

I connected to the wifi "testSSID", and then in my browser went to 10.0.1.20 and up popped the webpage to transfer images to esp.

Obviously you need to add a password for the network, as it is an open one with the changes above.
 

Marc DANIEL

Well-Known Member
Licensed User
Thank you, but my lines of code don't match yours... but I'll try anyway

Code snippets:
ESP8266WebServer server(80);
IPAddress myIP;       // IP address in your local wifi net

void setup(void) {

  Serial.begin(115200);
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid, password);

  //Static IP setting---by Lin
  wifi_station_dhcpc_stop();
  struct ip_info info;
  IP4_ADDR(&info.ip, 192, 168, 0, 189);
  IP4_ADDR(&info.gw, 192, 168, 0, 0);
  IP4_ADDR(&info.netmask, 255, 255, 255, 0);
  wifi_set_ip_info(STATION_IF, &info);


  // Connect to WiFi network
  Serial.println("");
  Serial.println("");
  Serial.print("Connected to ");
  Serial.println(ssid);

  // SPI initialization
  pinMode(CS_PIN  , OUTPUT);
  pinMode(RST_PIN , OUTPUT);
  pinMode(DC_PIN  , OUTPUT);
  pinMode(BUSY_PIN,  INPUT);
  SPI.begin();
 

Marc DANIEL

Well-Known Member
Licensed User
Your Line 9 - my line 6 > SERIAL BEGIN 9600 ? or 115200 ?

But in fact, you don't have the same code as me. However, you must have downloaded your "Loader.ino" file in the same place as me. It might be useful if you copied it to me as a file.zip so that I can compare and eventually replace mine.
 
Last edited:

Daestrum

Expert
Licensed User
Longtime User
This is the modified 'Loader.ino'

I just connect at 9600 - I'm in no rush lol

** had to remove then re add the file below as I left my network credentials in the original one. Ooops.
 

Attachments

  • justLoader.zip
    1.8 KB · Views: 114
Last edited:

Marc DANIEL

Well-Known Member
Licensed User
Hi, sorry for the time it took to respond to you. Incredibly, it no longer works on my laptop but it worked from my desktop (I'm giving up trying to figure out why these changes). I still haven't managed to stay connected to "testSSID" for more than 3 seconds with my Smartphone but on the other hand, my Android tablet is more cooperative and displayed the famous image processing html page. So congratulations for your incredible perseverance in trying to help me!!!

You succeed !
I'm now going to have fun with image processing and will come back to report here...
 

Marc DANIEL

Well-Known Member
Licensed User
Good news, I easily connect with my laptop to E-Paper ESP8266!!!

I manage to use html application for image selection and processing.

Traitement_Images.jpg


On the other hand, the display on my 2.66 inch E-Paper screen leaves something to be desired...

AffichageDéfectueux.jpg

Maybe I don't have the exact E-Paper screen types designated in the list displayed by Waveshare. I'm going to try tomorrow with my second 2.9 inch E-Paper screen...

I also noticed that on the HTML application, the width and height of the screens, automatically displayed in pixels, are systematically inverted but it is possible to manually correct this inversion.
 

Daestrum

Expert
Licensed User
Longtime User
no problem, it piqued my interest.

re: odd image - try turning original 90deg clockwise

I had to make my test picture 128x296 to display properly when converted. (for 2.9" display)
1711139887410.png
 
Last edited:

Marc DANIEL

Well-Known Member
Licensed User
Today I disconnected my 2.9 inch E-Paper display from its pins so I could connect it directly to "E-Paper ESP8266 Driver Board", I was hesitant to do this as it seems quite difficult to switch back to the “factory outlet” connections.

I currently own 2 models of E-Paper screens: one 2.66 inch and another 2.9 inch

TwoE-Paper.jpg


And in addition, all arduino sketches that worked well with UNO or MEGA no longer work due to changes in essential pin numbers, so modifications must be made to make these sketches work again with E-Paper ESP8266 Driver Board

Pins.png
EPDIF.h.png


Unlike yesterday with my 2.66 inch screen, I was not able to perform any image transfer with the Waveshare html application (named "PriceTag") on my 2.9 inch screen.

Perhaps I did not choose the correct position (A or B) of the selection button located on ESP8266, the list of devices indicated on the PDF instructions published by Waveshare does not really correspond to the list displayed on the left of the html application.

Selection.png


I understood that position A corresponds to black and white devices and that position B corresponds to devices with at least 3 colors but I could be wrong and I do not see in these lists a 2.66 inch device?? ?


E-PaperList.jpg


 
Last edited:

Marc DANIEL

Well-Known Member
Licensed User
My most sincere apologies, I forgot to enter the "Device IP" line.
So, it worked very well but only with my 2.66 inch E-Paper screen and I left the images as they are presented vertically, it gives a very nice image!!!


VIDEO

On the other hand, with my 2.9 inch screen, nothing works...
I tried all 2.9 inch variants: 2.9, 2.9b, 2.9c, 2.9d, 2.9V2, 2.9bV4 in black and white, in tricolor, NOTHING works!
 

Daestrum

Expert
Licensed User
Longtime User
When you say nothing works,
does the sketch compile?
is it possible the ribbon cable has bad connection / damaged by removing from original socket?
 

Marc DANIEL

Well-Known Member
Licensed User
No, the connection is correct since I manage to use the old Arduino sketches of which I modified the line numbers concerning the pins...

 

Attachments

  • epd2in9b_V4.zip
    10.2 KB · Views: 103
Last edited:

Cableguy

Expert
Licensed User
Longtime User
I may be jumping in this train after all...
I found myself a 2.5" e-paper price tag just outside one of my local supermarket.
Don't really know why they threw it away since it seems to work....
I just took it apart and here are the parts:

1711279043261.png
1711279130162.png

1711279210465.png

1711279297886.png


Now I may just need a middle board
 
Last edited:

Cableguy

Expert
Licensed User
Longtime User
You're lucky to find E-Papers that seem to work. Is the ribbon cable usable, in good condition?
Yes, its was as good as new, I'm about to try again taking the photos
 

Cableguy

Expert
Licensed User
Longtime User
From what i can see, this module uses IR, and either BLE or NFC to comunicate... I still have some digging to do
 

Marc DANIEL

Well-Known Member
Licensed User
From what i can see, this module uses IR, and either BLE or NFC to comunicate... I still have some digging to do
YES, but I seem to have seen a ribbon cable, so by connecting it to an E-Paper ESP8266, no need for any other communication system, right?

The QR Code located behind your label corresponds to an NVIDIA RTX 3060 chip
 
Top