From Waveshare Wiki
Jump to: navigation, search
 
(20 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox item
+
{{#tweekihide:firstHeading|sidebar-left|sidebar-right}}__NOTOC__
|name=4.01inch e-Paper HAT (F)
 
|img=[[File:4.01inch-e-Paper-HAT-F-1.jpg|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=https://www.waveshare.com/4.01inch-e-paper-hat-f.htm}}]]
 
|caption=4.01inch ACeP 7-Color EPD HAT for Raspberry Pi, 640×400 Pixels
 
|name2=4.01inch e-Paper (F)
 
|img2=[[File:4.01inch-e-Paper-F-1.jpg|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=https://www.waveshare.com/4.01inch-e-paper-f.htm}}]]
 
|caption2=4.01inch ACeP 7-Color EPD panel, 640×400 Pixels
 
|category=[[:Category:OLEDs / LCDs|OLEDs / LCDs]], [[:Category:LCD|LCD]]
 
|brand=Waveshare
 
|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|website_cn=[https://www.waveshare.net/shop/4.01inch-e-Paper-HAT-F.htm 官方中文站点]
 
|website_en=[https://www.waveshare.com/4.01inch-e-paper-hat-f.htm Waveshare website]
 
|interface1=SPI
 
|related=
 
{{Product List|OLEDs / LCDs/e-Paper}}
 
}}
 
<div class="tabber">
 
<div class="tabbertab" title="Introduction">
 
  
= Introduction =
+
<div style="background-color: #343434;text-align: center;color: white;padding: 20px;margin: 8px;">
This 4.01inch Colorful EPD (Electronic Paper Display) HAT For Raspberry Pi, 640×400 Pixels, ACeP 7-Color, SPI Interface<br》
+
=4.01inch e-Paper HAT (F) Manual=
If you buy the 4.01inch e-Paper (F) without PCBA, you need to make the driver board yourself, otherwise, it cannot work separately.
+
</div>
 +
<p></p>
 +
{{ContentGrid|grid-gap=25px
 +
|content =
  
{{Amazon|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
+
{{StudyCard
|More = [https://www.waveshare.com/4.01inch-e-paper-hat-f.htm More]}}
+
|img=[[File:Start-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#Introduction]]
 +
|heading = Introduction
 +
|content = Parameters, principles, and precautions
 +
}}
  
==Specifications==
+
{{StudyCard
*Size:4.01inch
+
|img=[[File:数据表-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#Picture_Production]]
*Outline dimensions(raw panel):96.80mm x 68.70mm x 0.91mm
+
|heading = Image conversion
*Outline dimension(driver board):98.50mm x 70.00mm
+
|content = Create a seven color image
*Display size:86.4mm x 54.0mm
+
}}
*Operating voltage: 3.3V/5V
 
*Interface: SPI
 
*Dot pitch: 0.135 × 0.135mm
 
*Resolution: 640 × 400 pixels
 
*Display color: Black/White/Green/Blue/Red/Yellow/Orange
 
*Full refreshing time:15s
 
*Refresh power: 50mW(typ.)(with driver board)
 
*Standby current: <0.01uA(almost none)
 
*Note:
 
1. Refresh time: The refresh time is the experimental results, the actual refresh time will have errors, and the actual effect shall prevail. There will be a flickering effect during the global refresh process, this is a normal phenomenon
 
  
2. Power consumption: The power consumption data is the experimental results. The actual power consumption will have a certain error due to the existence of the driver board and the actual use situation. The actual effect shall prevail.
+
{{StudyCard
 +
|img=[[File:Remote-access-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#Users_Guides_of_Raspberry_Pi]]
 +
|heading = Start with Raspberry Pi
 +
|content = Using BCM2835, WiringPi, file IO, RPI (Python) library development routines and instructions
 +
}}
  
==SPI Communication Timing==
+
{{StudyCard
[[File:1.54inch-e-paper-manual-1.png|400px]]
+
|img=[[File:Linux-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#User_Guides_of_Jetson_Nano]]
 +
|heading = Start with the Jetson Nano
 +
|content = Use C language, Python developed routines and instructions
 +
}}
  
Since the ink screen only needs to be displayed, the data cable (MISO) sent from the machine and received by the host is hidden here.
+
{{StudyCard
*CS: Slave chip select, when CS is low, the chip is enabled
+
|img=[[File:Config-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#User_Guides_of_STM32]]
*DC: data/command control pin, write command when DC=0; write data when DC=1
+
|heading = Starting from the STM32
*SCLK: SPI communication clock
+
|content = Use STM32CubeMX to develop routines based on STM32F103ZET6 and their usage instructions
*SDIN: SPI communication master sends, slave receives
+
}}
*Timing: CPHL=0, CPOL=0 (SPI0)
 
[Remarks] For specific information about SPI, you can search for information online.<big>
 
== Working principle ==
 
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 suspended 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 ambient light, the E-paper screen still has high visibility with a wide viewing angle of 180 degrees. It is the ideal choice for E-reading.
 
('''Note that the e-Paper cannot support updating directly under sunlight''')
 
===Pixel & Byte===
 
We define the pixels in a monochrome picture, 0 is black and 1 is white.<br />
 
White:□: Bit 1<br />
 
Black:■: Bit 0<br />
 
*The dot in the figure is called a pixel. As we know, 1 and 0 are used to define the color, therefore we can use one bit to define the color of one pixel, and 1 byte = 8pixels<br />
 
*For example, If we set the first 8 pixels to black and the last 8 pixels to white, we show it by codes, they will be 16 bit as below:<br />
 
[[file:e-paper_hardware_work_1.png]]<br />
 
  
For computer, the data is saved in MSB format:<br />
+
{{StudyCard
[[file:e-paper_hardware_work_2.png]]<br />
+
|img=[[File:Tinker Board 2硬件-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#User_Guides_of_Arduino]]
So we can use two bytes for 16 pixels.<br />
+
|heading = Starting from the Arduino
==Color of e-Paper==
+
|content = Routines developed based on Arduino UNO R3 and their usage instructions
An image is made of pixels. The sizes of every pixel defined how many kinds of color are supported by the e-Paper. Monochrome image use one bit for one pixel (0 and 1, black and white), in this case, if we want to display more colors, we should use more bits for every pixel.<br />
+
}}
We need at least 3bits to display severe color. For easy programming, we and an 0 bit in front of it. In this case, we use 4 bits for every pixel.
 
{|border="1" style="text-align:center; width:400px"
 
|-
 
|'''Color'''
 
|'''BIN'''
 
|'''HEX'''
 
|'''The color (reference)'''
 
|-
 
|Black||0b0000||0x0
 
|style="background:#000000"|
 
|-
 
|White||0b0001||0x1||
 
|-
 
|Green||0b0010||0x2
 
|style="background:green"|
 
|-
 
|Blue||0b0011||0x3
 
|style="background:#0000FF"|
 
|-
 
|Red||0b0100||0x4
 
|style="background:#FF0000"|
 
|-
 
|Yellow||0b0101||0x5
 
|style="background:#FFFF00"|
 
|-
 
|Orange||0b0110||0x6
 
|style="background:#FFAA00"|
 
|}
 
For example, if you want to display four colors, green, yellow, red and orange, it should be like as below:
 
{|border="1" style="text-align:center"
 
|-
 
|'''Pixel'''
 
|colspan="4" width="100px"|1
 
|colspan="4" width="100px"|2
 
|colspan="4" width="100px"|3
 
|colspan="4" width="100px"|4
 
|-
 
|'''Bit'''
 
|0||1||2||3||4||5||6||7||8||9||10||11||12||13||14||15
 
|-
 
|'''Data'''||0||0||1||0||0||1||0||1||0||1||0||0||0||1||1||0
 
|-
 
|'''Color'''
 
|colspan="4" style="background:green"|
 
|colspan="4" style="background:yellow"|
 
|colspan="4" style="background:red"|
 
|colspan="4" style="background:#FFAA00"|
 
|}
 
Data is saved in MSB formate and 1byte is equal to 8 bits.
 
{|border="1" style="text-align:center"
 
|-
 
|'''Pixel'''
 
|colspan="4" width="100px"|1
 
|colspan="4" width="100px"|2
 
|colspan="4" width="100px"|3
 
|colspan="4" width="100px"|4
 
|-
 
|'''Bit'''
 
|7||6||5||4||3||3||1||0||7||6||5||4||3||2||1||0
 
|-
 
|'''Data'''||0||0||1||0||0||1||0||1||0||1||0||0||0||1||1||0
 
|-
 
|'''Color'''
 
|colspan="4" style="background:green"|
 
|colspan="4" style="background:yellow"|
 
|colspan="4" style="background:red"|
 
|colspan="4" style="background:#FFAA00"|
 
|-
 
|'''Byte'''
 
|colspan="8"|0x25
 
|colspan="8"|0x46
 
|}
 
You can refer to the '''"Make BMP file for e-Paper" guide and make the image yourself for this module.<br />
 
<!--:[[File:5in65-ePaper-module-manual-1.png|400px]]-->
 
==Precautions==
 
#For the screen that supports partial update, please note that you cannot refresh the screen with the partial mode all the time. After several partial updating, you need to fully refresh the screen once. Otherwise, the screen display effect will be abnormal, which cannot be repaired!<br/>
 
#Because of the different batches, some of them have aberrations. Store the e-Paper right side up will reduce it. And if the e-Paper didn't be refreshed for a long time, it will become more and more reddish/yellowish. Please use the demo code to refresh the e-paper several times in this case.<br/>
 
#Note that the screen cannot be powered on for a long time. When the screen is not refreshed, please set the screen to sleep mode, or power off the e-Paper. Otherwise, the screen will remain in a high voltage state for a long time, which will damage the e-Paper and cannot be repaired!<br/>
 
#When using the e-Paper, it is recommended that the refresh interval be at least 180s, and refresh at least once every 24 hours. If the e-Paper is not used for a long time, the ink screen should be brushed and stored. (Refer to the datasheet for specific storage environment requirements)<br/>
 
#After the screen enters sleep mode, the sent image data will be ignored, and it can be refreshed normally only after initializing again.<br/>
 
#Control the 0x3C or 0x50 (refer to the datasheet for details) register to adjust the border color. In the routine, you can adjust the Border Waveform Control register or VCOM AND DATA INTERVAL SETTING to set the border.<br/>
 
#If you find that the created image data is displayed incorrectly on the screen, it is recommended to check whether the image size setting is correct, change the width and height settings of the image and try again.<br/>
 
#The working voltage of the e-Paper is 3.3V. If you buy the raw panel and you need to add a level convert circuit for compatibility with 5V voltage. The new version of the driver board (V2.1 and subsequent versions) has added a level processing circuit, which can support both 3.3V and 5V working environments. The old version can only support a 3.3V working environment. You can confirm the version before using it. (The one with the 20-pin chip on the PCB is generally the new version)<br/>
 
#The FPC cable of the screen is relatively fragile, pay attention to bending the cable along the horizontal direction of the screen when using it, and do not bend the cable along the vertical direction of the screen<br/>
 
#The screen of e-Paper is relatively fragile, please try to avoid dropping, bumping, and pressing hard.<br/>
 
#We recommend that customers use the sample program provided by us to test with the corresponding development board after they get the screen.<br/>
 
</div>
 
<div class="tabbertab" title="Picture Production">
 
{{e-Paper HAT (F) Picture Production}}
 
</div>
 
  
</div>
+
{{StudyCard
<div class="tabbertab" title="User Guides of Pi">
+
|img=[[File:Linux-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#Resources]]
 +
|heading = Resources
 +
|content = Documentation, procedures and data sheets, etc
 +
}}
  
We provide several examples for testing, you first test the e-Paper by following the guides. If your developing board is different, you need to write your codes yourself by following the resources.
+
{{StudyCard
{{Raspberry Pi Guides for SPI e-Paper}}
+
|img=[[File:显示屏-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#FAQ]]
</div>
+
|heading = FAQ
<div class="tabbertab" title="User Guides of Jetson Nano">
+
|content = e-Paper frequently asked questions
{{Jetson Nano Guides for SPI e-Paper}}
+
}}
</div>
 
<div class="tabbertab" title="User Guides of STM32">
 
{{STM32 Guides for SPI e-Paper}}
 
</div>
 
<div class="tabbertab" title="User Guides of Arduino">
 
{{Arduino Guides for SPI e-Paper}}
 
</div>
 
<div class="tabbertab" title="User Guides of ESP32">
 
{{ESP32 Guides for SPI e-Paper}}
 
</div>
 
<div class="tabbertab" title="User Guides of ESP8266">
 
{{ESP8266 Guides for SPI e-Paper}}
 
</div>
 
<div class="tabbertab" title="Resources">
 
= Resources =
 
=== Documentation ===
 
{{Commom Instruction of SPI e-paper}}
 
*[https://{{SERVERNAME}}/w/upload/b/bb/4.01inch_e-Paper_HAT_%28F%29.pdf Schematic]
 
*[https://www.waveshare.com/w/upload/f/f0/4.01inch-ePaper-F-Reference-Design.pdf 4.01inch e-Paper Reference manual]
 
*[https://www.waveshare.com/w/upload/8/8f/4.01inch_ePaper-F-Specification.pdf 4.01inch e-Paper F Specification]
 
*[https://www.waveshare.com/w/upload/b/bf/SPD1656_1.1.pdf SPD1656 Specification]
 
  
===Demo code===
+
{{StudyCard
*[https://www.waveshare.com/w/upload/3/39/E-Paper_code.7z Demo codes for e-Paper]
+
|img=[[File:数据表-test1.png|121px|link=https://www.waveshare.com/wiki/4.01inch_e-Paper_HAT_(F)_Manual#Support]]
*[https://github.com/waveshare/e-Paper Github]
+
|heading = Support
</div>
+
|content = Technical support
<div class="tabbertab" title="FAQ">
+
}}
  
==FAQ==
+
}}
{{FAQ|What is the Operation temperature?
 
|The Operating temperature range of ACep e-Paper is 15~35°C. The color fade if you use it out of the range.
 
|||}}
 
</div>
 
<div class="tabbertab" title="Supports">
 
{{Service00}}
 
</div>
 
</div>
 

Latest revision as of 10:18, 21 July 2022


4.01inch e-Paper HAT (F) Manual

Start-test1.png

Introduction

Parameters, principles, and precautions
数据表-test1.png

Image conversion

Create a seven color image
Remote-access-test1.png

Start with Raspberry Pi

Using BCM2835, WiringPi, file IO, RPI (Python) library development routines and instructions
Linux-test1.png

Start with the Jetson Nano

Use C language, Python developed routines and instructions
Config-test1.png

Starting from the STM32

Use STM32CubeMX to develop routines based on STM32F103ZET6 and their usage instructions
Tinker Board 2硬件-test1.png

Starting from the Arduino

Routines developed based on Arduino UNO R3 and their usage instructions
Linux-test1.png

Resources

Documentation, procedures and data sheets, etc
显示屏-test1.png

FAQ

e-Paper frequently asked questions
数据表-test1.png

Support

Technical support