Xinyuan-LilyGO / LilyGo-EPD47

GNU General Public License v3.0
381 stars 119 forks source link

Hardware details #2

Closed loboris closed 3 years ago

loboris commented 3 years ago

Which display is used on this product? Could you give us the exact part number? Is the schematic available somewhere?

lewisxhe commented 3 years ago

Hi, loboris

I am glad that this can attract your attention. We are using the ink screen of VINTEK from Taiwan. I cannot provide the model for the time being. It is not here. The schematic diagram is not available for the time being. If you are interested in helping us, then I will email and You contact and provide you with free samples to help us improve.

loboris commented 3 years ago

Hi lewisxhe, thanks for the reply. I'm quite interested in using you product with ESP-IDF and my port of MicroPython for ESP32. I have a lot of experience in working with ESP32 and I've just started a project to use a similar display (ED060SC4 6" e-ink) with K210. If you can provide any additional information please send it to loboris@gmail.com.

BTW, is the display connector pinout on your board compatible with ED060SC4?

lewisxhe commented 3 years ago

@loboris
That's great, I knew you a long time ago, but you didn't know me! I know you are a very good person, and it is great that you can help us.

By the way, you can refer to the schematic here https://github.com/vroland/epdiy/tree/master/hardware Basically the same!

We will contact you via email soon! Thanks again

xeijin commented 3 years ago

given that the LilyGo-EPD47 is an all-in-one ESP32, epaper screen, battery and (optional) touch screen interface, I think it would be perfect for this ESP firmware project:

https://github.com/martinberlin/cale-idf

The main project, cale.es is an API mash-up service for WiFi displays, and many epaper displays are already supported. Think it could be a great match.

@lewisxhe maybe you could send @martinberlin (creator of the firmware), a sample too, so he can add support?

image

martinberlin commented 3 years ago

Would like to add support to this, the only thing is that I would have to create a new IO class, since if I see that correctly this Epaper uses parallel protocol instead of SPI. That should be faster but I must say that I don't have experience with I2S anyways looks like a nice challenge. So accepted if I can get one in my hands I will make the ESP-IDF C++ class with GFX support.

lewisxhe commented 3 years ago

Hi, @martinberlin

I know you, if you want, we can send you an e-paper and let you help us improve the firmware! Please send your address to sales@lilygo.cc this mailbox!

martinberlin commented 3 years ago

Done Lewis. Many thanks for the opportunity to try this out!

markbirss commented 3 years ago

@lewisxhe

I know you, if you want, we can send you an e-paper and let you help us improve the firmware! Please send your address to sales@lilygo.cc this mailbox!

Im also interested in this product as I want to use it for a terminal display

I see the implementation is different from the M5Stack M5Paper that also uses a ITE8951 like Waveshare and not using the ESP32 to drive the e-paper as they have other things connected to it

The e-Paper screen is the EPD-ED047TC1

https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/Core/m5paper/M5_PAPER_SCH.pdf

59e8a274-28e9-46fa-b941-8bc59394e45c jpg

fdufnews commented 3 years ago

Can you please publish the board's schematic. It will help using the board. For example, the board is supposed to be used in low power applications and there is a blue LED that is all the time on. Is this LED driven by ESP32 or directly connected to the power line? I would like to switch it off to reduce consumption.

Edit: I noticed that the blue LED is switched off when the ESP32 goes into deep sleep. So I suppose the LED is driven by the ESP. Nevertheless still interested by the board's schematic

vroland commented 3 years ago

@martinberlin Since your firmware is written as an IDF component, you could also use the epdiy library directly: https://github.com/vroland/epdiy. This board is based on epdiy and I'll soon add support for it in the driver. That way, you don't need to depend on Arduino and add support for other parallel e-Paper displays as well.

fpasteau commented 3 years ago

I would also need the schematics. In a low power application with battery, we need to know how much the battery is depeted to avoid running it too low. Right now, I don't know if the battery voltage has been wired to any of the ESP32 ADC pins for us to read. I would also like to turn off this blue led as it uses unnecessary power.

martinberlin commented 3 years ago

Great tip @vroland I'm bookmarking this repository. Waiting anxiously that this new display comes. When I find some time will design also a 3D model for the Housing.

markbirss commented 3 years ago

@Martin not sure if you saw this already in the repository ? https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/tree/master/3D_file

On Fri, Jan 8, 2021 at 1:41 PM Martin notifications@github.com wrote:

Great tip @vroland https://github.com/vroland I'm bookmarking this repository. Waiting anxiously that this new display comes. When I find some time will design also a 3D model for the Housing https://www.thingiverse.com/movil/designs.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/issues/2#issuecomment-756711729, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ2JZALOM5TDY42GPIVLTSY3VOVANCNFSM4UNJDQ3A .

martinberlin commented 3 years ago

Ahem! Nice. But what kind of 3D format is that? I cannot import it in Blender. Also not in Slicer, so I cannot really printed until is transformed in some other format. @lewisxhe is possible to upload this file to the repository in a different format like STL or OBJ? Something that can be imported in Blender and customized? (Or even direct in Slic3r or Cura for 3D printing) UPDATE: There is an addon to Blender to import step files. It costs 17€ Can you please upload it also in another format? I tried some online converters, none seem to work, I get just a square box ;)

ElementW commented 3 years ago

On the touchscreen sold with the EPD47: the store page mentions "Touch chip: L58", but this yields no relevant search results. The screen is the same as a Samsung Galaxy S III, which uses a Melfas 8PL533 controller (iFixit, Linux defconfig), but the package, pinout, and I2C comm of the sold screen is different. Unfortunately the IC is unmarked; I've been looking for what it could be but no dice. @lewisxhe Do you know the name of the touchscreen controller IC?

kd8bxp commented 3 years ago

@martinberlin No expert at cad or 3d design, the closest I get is tinkercad - I've made a few things, but just FIY I used freecad to open the stp file, and after some time hitting buttons :-) was able to convert the main part of the case to an stl file, haven't printed it yet - so don't know how well it will work, but it looks good.
The buttons look like they will print really small, and the top I think I messed up, it doesn't have a hole for the display. I'm also no expert on any cad software, so it is entirely possible I did something wrong. I'll print the case tomorrow and at least see how that works.

markbirss commented 3 years ago

@martinberlin Hope it helps, a online converter was used 0-sjk_asm(2).zip

markbirss commented 3 years ago

@ElementW

not sure what is actually used here with the LiLyGo EPD47

The M5Paper uses the GT911 for touch controller https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/core/m5paper/gt911_datasheet.pdf

martinberlin commented 3 years ago

I added a new issue #10 about this 3D model issue so we don't spam @loboris with things that have nothing to do with the issue he posted. I also think that a proper schematics will be great so we can unleash the full potential of this. I have the same issues with other TTGO products like the small T5 epapers. Which are great and I really like to do stuff on them but they lack a bit proper schematics & documentation. Let's give them some time so they can do it properly this time for this parallel epaper that looks like a great product.

lewisxhe commented 3 years ago

On the touchscreen sold with the EPD47: the store page mentions "Touch chip: L58", but this yields no relevant search results. The screen is the same as a Samsung Galaxy S III, which uses a Melfas 8PL533 controller (iFixit, Linux defconfig), but the package, pinout, and I2C comm of the sold screen is different. Unfortunately the IC is unmarked; I've been looking for what it could be but no dice. @lewisxhe Do you know the name of the touchscreen controller IC?

Unfortunately, we don’t have detailed information about this touch screen, but only an introduction to it. The sample code in the warehouse is still modified by the code provided by the manufacturer. For multi-touch, it still has problems, but for single-touch , It works normally.

lewisxhe commented 3 years ago

This issueis too redundant, please open in a new issueis

markbirss commented 3 years ago

Can you please publish the board's schematic. It will help using the board. For example, the board is supposed to be used in low power applications and there is a blue LED that is all the time on. Is this LED driven by ESP32 or directly connected to the power line? I would like to switch it off to reduce consumption.

Edit: I noticed that the blue LED is switched off when the ESP32 goes into deep sleep. So I suppose the LED is driven by the ESP. Nevertheless still interested by the board's schematic

MrNiceThings made a board based on this design also

https://www.reddit.com/r/esp32/comments/k4uxvh/6_kindle_paperwhite_display_with_esp32/

Schematic_9.7inch e-ink controller_2020-12-06_20-17-59.pdf

vke commented 3 years ago

schematic.pdf

fdufnews commented 3 years ago

@lewisxhe if it is the official schematic it would be cool to store it on the repository as there is little chance people will go in the closed issues to search for the schematic.

vke commented 3 years ago

@fdufnews official from their Aliexpress store.

They must export the 3D PCB model from Altium to a STEP file also for users who wish to draw their own enclosures.

fpasteau commented 3 years ago

Can you please publish the board's schematic. It will help using the board. For example, the board is supposed to be used in low power applications and there is a blue LED that is all the time on. Is this LED driven by ESP32 or directly connected to the power line? I would like to switch it off to reduce consumption.

Edit: I noticed that the blue LED is switched off when the ESP32 goes into deep sleep. So I suppose the LED is driven by the ESP. Nevertheless still interested by the board's schematic

From the schematics, this blue led seems to be LED7, directly connected to the 3V3 power rail. This 3V3 power rail is the one powering the screen and the P4/P5 4 pin plugs, it differs from the VDD3V3 power rail powering the ESP32. You can turn this led on/off using the epd_poweron() and epd_poweroff() function but it will also power on/off the screen. If you want to completely turn it off, you may have to remove it or its resistor.

As for sensing the battery level, it can be done using ADC on GPIO36 which is connected to the battery with a voltage divider of 1/2 ratio.

On a side note, this schematics also explain a strange screen behavior that I had. When unplugging the usb cable after displaying some image on the screen, the display started to fade out a little bit, seemingly losing contrast. As a matter of fact, the 3V3 power rail is always turned on when power is applied through USB. Therefore when disconnecting the USB cable, the 3V3 power rail is turned off but without following the timing the screen expects leading to a this strange behavior. Furthermore, it also means the if you're code is running well when USB is plugged, it does not mean it will run the same way when running on batteries ( you may forget to turn on/off the screen as it is always on when USB is connected).

markbirss commented 3 years ago

@fpasteau as this design was based on https://github.com/vroland/epdiy/ these issues could exist or been created

epdiy is undergoing a further revision to address some power issues

https://github.com/vroland/epdiy/issues/50 https://github.com/vroland/epdiy/issues/47

Kabron287 commented 3 years ago

I noticed that dual DC/DC converter U2 could not be shutdown. Are there free MCU pins to route to SHDN1/SHDN2 pins of U2?

markbirss commented 3 years ago

Here my LilyGO 4.7 e-Paper Raspberry Pi Zero W Terminal with USB keyboard 95 x 25 characters

Screenshot from 2021-02-04 13-44-58

Thanks for your help from @vroland

krystiansliwa commented 3 years ago

Here my LilyGO 4.7 e-Paper Raspberry Pi Zero W Terminal with USB keyboard 95 x 25 characters

Screenshot from 2021-02-04 13-44-58

Thanks for your help from @vroland

wow amazing, how you connect board to the RPi?

markbirss commented 3 years ago

RxD TxD GND

signal-2021-02-03-125039

G6EJD commented 3 years ago

It's a serial port connection, so displaying all serial port data.

markbirss commented 3 years ago

Yes with some modifications to Pi like what you would need todo to use a kindle touch and pi is the past

On Thu, Feb 4, 2021 at 2:25 PM G6EJD notifications@github.com wrote:

It's a serial port connection, so displaying all serial port data.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/issues/2#issuecomment-773268227, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKZ2JZRELNO7EA32RP7LXLS5KG2DANCNFSM4UNJDQ3A .

vroland commented 3 years ago

I'd recommend adding flow rts/cts flow control if you use more complex things like ncurses GUIs. With things like nmtui or even raspi-config (or console media players), data can get lost otherwise, corrupting the output.

markbirss commented 3 years ago

yes, still todo waiting to see what GPIO's are left as they are not printed correctly on the silk screen

as it is not had too many issues yet

https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/issues/25

G6EJD commented 3 years ago

Which’s pins have you defined and used for the serial connection? 12,13 or 14, 15? That will help confirm which pins are in use v the silkscreen, thanks

markbirss commented 3 years ago

@G6EJD

At the moment im using TxD - 13 and RxD - 12

G6EJD commented 3 years ago

Thanks, I’m waiting for a molex connector to try out mine. GPIO-12 is a little tricky as if held high during boot it changes the ESP32 configuration.

markbirss commented 3 years ago

@G6EJD

I chopped a M5 Stack cable (made it round) and soldered a little break-out, and yes GPIO-12 is tricky (i would rather want to use another GPIO) https://m5stack.com/products/4pin-buckled-grove-cable

mengszym commented 3 years ago

Hello, after uploading the water program to epd47 after refreshing the screen, the gray background remains. how to fix it ? Thank you in advance for your help and best regards

fdufnews commented 3 years ago

What do you mean with "water progam"?

mengszym commented 3 years ago

Hello, I mean the program that is shown in the pictures on the shares with the device, I got it from you in the EPD47 file in the sample folder there was a program called wather and after uploading this program there is a gray background and the weather icons and descriptions are hard to see. grayscale and picture work fine on demo programs. EPD47.zip https://drive.google.com/file/d/172DdLXkLKNmPq4w0pVGuinxBqQSDX6fN/view?usp=drivesdk

wt., 16 lut 2021, 11:07 użytkownik fdufnews notifications@github.com napisał:

What do you mean with "water progam"?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/issues/2#issuecomment-779728453, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSB4P6SQDJMO67Y24RDVV3S7I7URANCNFSM4UNJDQ3A .

mengszym commented 3 years ago

wt., 16 lut 2021, 11:38 użytkownik timon w sornydror@gmail.com napisał:

Hello, I mean the program that is shown in the pictures on the shares with the device, I got it from you in the EPD47 file in the sample folder there was a program called wather and after uploading this program there is a gray background and the weather icons and descriptions are hard to see. grayscale and picture work fine on demo programs. EPD47.zip https://drive.google.com/file/d/172DdLXkLKNmPq4w0pVGuinxBqQSDX6fN/view?usp=drivesdk

wt., 16 lut 2021, 11:07 użytkownik fdufnews notifications@github.com napisał:

What do you mean with "water progam"?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/issues/2#issuecomment-779728453, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSB4P6SQDJMO67Y24RDVV3S7I7URANCNFSM4UNJDQ3A .

fdufnews commented 3 years ago

Ok, it is not water but weather program. You are not running the right software. The one you run is for another configuration. you shall use this one https://github.com/G6EJD/LilyGo-EPD-4-7-OWM-Weather-Display

mengszym commented 3 years ago

unfortunately the link does not work: /

wt., 16 lut 2021, 13:48 użytkownik fdufnews notifications@github.com napisał:

You are not running the right software. The one you run is for another configuration. you shall use this one https://github.com/G6EJD/LilyGo-EPD-4-7-OWM-Weather-Display http://url

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/issues/2#issuecomment-779815151, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASSB4P6RH77GKV4NPK6CJ43S7JSR3ANCNFSM4UNJDQ3A .

G6EJD commented 3 years ago

I’ve just checked if and it’s OK?

mengszym commented 3 years ago

now it works great :) :) :) thank you very much you are a master greetings :) you are great :) IMG_20210216_225848.jpg

mengszym commented 3 years ago

hello, is there a weather station program for LilyGo 1.54 "epaper or some other interesting program?IMG_20210220_125739.jpg