|
|
(51 intermediate revisions by 5 users not shown) |
Line 1: |
Line 1: |
− | {{Infobox item
| + | {{#tweekihide:firstHeading|sidebar-left|sidebar-right}}__NOTOC__ |
− | |name=4.2inch e-Paper
| |
− | |name2=4.2inch e-Paper Module
| |
− | |img=[[File:4.2inch-e-Paper-1.jpg|300px|link=https://www.waveshare.com/4.2inch-e-Paper.htm]]
| |
− | |img2=[[File:4.2inch-e-paper-module-5.jpg|300px|link=http://www.waveshare.com/4.2inch-e-paper-module.htm]]
| |
− | |caption=400x300, 4.2inch E-Ink display raw panel
| |
− | |caption2=400x300, 4.2inch E-Ink display module, SPI interface
| |
− | |category=[[:Category:OLEDs / LCDs|OLEDs / LCDs]], [[:Category:LCD|LCD]]
| |
− | |brand=Waveshare
| |
− | |{{#urlget:amazon|default}}=display
| |
− | |website_cn=[http://www.waveshare.net/shop/4.2inch-e-Paper-Module.htm 官方中文站点]
| |
− | |website_en=[http://www.waveshare.com/4.2inch-e-paper-module.htm Waveshare website] | |
− | |interface1=SPI
| |
− | |related=
| |
− | {{Product List|OLEDs / LCDs/e-Paper}}
| |
− | }}
| |
− | <div class="tabber">
| |
− | <div class="tabbertab" title="Introducton">
| |
− | = Introduction =
| |
− | {{E-Paper Raw Panel}}
| |
| | | |
− | 400x300, 4.2inch E-Ink display module, SPI interface
| + | <div style="background-color: #343434;text-align: center;color: white;padding: 20px;margin: 8px;"> |
| + | =4.2inch e-Paper Module Manual= |
| + | </div> |
| + | <p></p> |
| + | {{ContentGrid|grid-gap=25px |
| + | |content = |
| + | {{StudyCard |
| + | |img=[[File:E-Paper_Introduction_4.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Introduction]] |
| + | |heading = Introduction |
| + | |content = Parameters, principles and precautions}} |
| | | |
− | {{Amazon|{{#urlget:amazon|default}}=display | + | {{StudyCard|img=[[File:Rapberry Pi.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Working_With_Raspberry_Pi]] |
− | |More = [http://www.waveshare.com/product/4.2inch-e-paper-module.htm More]}} | + | |heading = Working with Raspberry Pi |
| + | |content = User guides for the development demo of C language, Python}} |
| | | |
− | = Interfaces =
| + | {{StudyCard|img=[[File:Arduino00.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Working_With_Arduino]] |
− | {|class="wikitable" | + | |heading = Working with the Arduino |
− | |- | + | |content = User guides for the development demo based on Arduino UNO R3}} |
− | | VCC || 3.3V | |
− | |-
| |
− | | GND || GND
| |
− | |-
| |
− | | DIN || SPI MOSI
| |
− | |-
| |
− | | CLK || SPI SCK
| |
− | |-
| |
− | | CS || SPI chip select (Low active)
| |
− | |-
| |
− | | DC || Data/Command control pin (High for data, and low for command)
| |
− | |-
| |
− | | RST || External reset pin (Low for reset) | |
− | |-
| |
− | | BUSY || Busy state output pin (Low for busy)
| |
− | |}
| |
− | = Working principle = | |
− | ;Introduction
| |
− | ----
| |
− | This product is an E-paper device adopting the image display technology of Microencapsulated Electrophoretic Display, MED. The initial approach is to create tiny spheres, in which the charged color pigments are suspending in the transparent oil and would move depending on the electronic charge. The E-paper screen display patterns by reflecting the ambient light, so it has no background light requirement. Under sunshine, the E-paper screen still has high visibility with a wide viewing angle of 180 degree. It is the ideal choice for E-reading.
| |
− | ; Communication protocol
| |
− | ----
| |
− | [[File:1.54inch-e-paper-manual-1.png|400px]]
| |
| | | |
− | Note: Different from the traditional SPI protocol, the data line from the slave to the master is hidden since the device only has display requirement.
| + | {{StudyCard|img=[[File:Jetson Arduino00.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Working_With_Jetson_Nano]] |
− | * CS is slave chip select, when CS is low, the chip is enabled.
| + | |heading = Working with the Jetson Nano |
− | * DC is data/command control pin, when DC = 0, write command, when DC = 1, write data.
| + | |content = User guides for the development demo of C language, Python}} |
− | * SCLK is the SPI communication clock.
| |
− | * SDIN is the data line from the master to the slave in SPI communication.
| |
− | SPI communication has data transfer timing, which is combined by CPHA and CPOL.
| |
− | # CPOL determines the level of the serial synchronous clock at idle state. When CPOL = 0, the level is Low. However, CPOL has little effect to the transmission. | |
− | # CPHA determines whether data is collected at the first clock edge or at the second clock edge of serial synchronous clock; when CPHL = 0, data is collected at the first clock edge.
| |
− | * There are 4 SPI communication modes. SPI0 is commonly used, in which CPHL = 0, CPOL = 0.
| |
− | As you can see from the figure above, data transmission starts at the first falling edge of SCLK, and 8 bits of data are transferred in one clock cycle. In here, SPI0 is in used, and data is transferred by bits, MSB first.
| |
− | </div>
| |
− | <div class="tabbertab" title="Hardware/Software setup">
| |
− | {{Hardware/Software setting for SPI e-paper}}
| |
− | </div>
| |
− | <div class="tabbertab" title="Codes description">
| |
− | {{e-Paper Codes Description}}
| |
− | </div>
| |
− | <!--
| |
− | === Display a Frame (DisplayFrame) ===
| |
− | DisplayFrame is used to send a frame to module, and the screen will refresh and display it.
| |
| | | |
− | Process: resolution setting -> VCM DC setting -> VCOM and data interval setting -> Send command data start transmission 1 -> Send data of an white image (send 0xFF 15000 times) -> Send command data start transmission 2 -> Send data of an image to display -> set LUT -> Refresh the screen.
| + | {{StudyCard|img=[[File:Sunrise X3 Pi.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Working_With_Sunrise_X3_Pi]] |
| + | |heading = Working with Sunrise X3 Pi |
| + | |content = User guides for the development demo based on Python}} |
| | | |
− | Note:
| + | {{StudyCard|img=[[File:STM321.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Working_With_STM32]] |
− | * You have to send a white frame before the frame to display.
| + | |heading = Working with the STM32 |
− | * 1 byte = 8 pixels, doesn’t support Gray scale (Can only display black and white). A bit set stands for a white pixel, otherwise a bit reset stands for black.
| + | |content = User guides for the development demo based on STM32CubeMX}} |
| | | |
− | For example:
| + | {{StudyCard|img=[[File:E-Paper_ESP32.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#ESP32.2F8266]] |
− | <pre>
| + | |heading = Working with ESP32/8266 |
− | 0xC3:8 pixels □□■■■■□□
| + | |content = User guides for ESP32/8266}} |
− | 0x00:8 pixels ■■■■■■■■
| |
− | 0xFF:8 pixels □□□□□□□□
| |
− | 0x66:8 pixels ■□□■■□□■
| |
− | </pre>
| |
− | * This module doesn’t support partial refresh.
| |
− | * The refresh rate of this module is slow, and it will flicker for several times during refreshing. Please be patient.
| |
− | -->
| |
− | <div class="tabbertab" title="Resources">
| |
− | == Resources ==
| |
− | = Documentation =
| |
− | *[https://www.waveshare.com/w/upload/2/20/4.2inch-e-paper-module-user-manual-en.pdf User Manual]
| |
− | {{Commom Instruction of SPI e-paper}}
| |
− | * [[:File:4.2inch_e-Paper_Schematic.pdf|Schematic]]
| |
| | | |
− | = Demo code = | + | {{StudyCard|img=[[File:Resource0.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Resources]] |
− | * [[:File:4.2inch_e-paper_module_code.7z|Demo code]]
| + | |heading = Resources |
− | *[https://github.com/waveshare/e-Paper Github]
| + | |content = Documentation, procedures and data sheets, etc}} |
| | | |
− | = Datasheets = | + | {{StudyCard|img=[[File:FAQ01.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#FAQ]] |
− | * [[:File:4.2inch-e-paper-specification.pdf|Datasheets]]
| + | |heading = FAQ |
| + | |content = e-Paper frequently asked questions}} |
| | | |
− | =Related Resources= | + | {{StudyCard|img=[[File:support00.jpg|110px|link=https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_Manual#Support]] |
− | This is a post in Arduino Form about our SPI e-Paper thanks to ZinggJM, maybe you want to refer to.
| + | |heading = Support |
− | *[https://forum.arduino.cc/index.php?topic=487007.0 Waveshare e-Paper display with SPI]
| + | |content = Technical support |
− | </div>
| + | }} |
− | <div class="tabbertab" title="FAQ">
| + | }} |
− | = FAQ = | |
− | <!--{{e-Paper FAQ}}-->
| |
− | {{e-Paper FAQ}}
| |
− | </div>
| |
− | ==Support==
| |
− | {{Service00}}
| |