From Waveshare Wiki
Jump to: navigation, search
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="tabber">
+
{{#tweekihide:firstHeading|sidebar-left|sidebar-right}}__NOTOC__
<div class="tabbertab" title="Instruction">
 
{{Infobox item
 
|name=2.66inch e-Paper
 
|name2=2.66inch e-paper Module
 
|img=[[File:2.66inch-e-Paper-1.jpg|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=https://www.waveshare.com/2.66inch-e-paper.htm}}]]
 
|img2=[[File:2.66inch-e-Paper-Module-1.jpg|300px|{{Amazon_nolink|default={{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}|url=link=http://www.waveshare.com/2.66inch-e-paper-module.htm}}]]
 
|caption=296x152, 2.66inch EPD panel without driver board
 
|caption2=296x152, 2.66inch EPD HAT for Raspberry Pi, SPI interface
 
|category=[[:Category:OLEDs / LCDs|OLEDs / LCDs]], [[:Category:LCD|LCD]], [[:Category:Display|e-Paper]]
 
|brand=Waveshare
 
|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|website_cn=[https://www.waveshare.net/shop/2.66inch-e-Paper-Module.htm 官方中文站点]
 
|website_en=[http://www.waveshare.com/2.66inch-e-paper-module.htm Waveshare website]
 
|interface1=SPI
 
|related=
 
{{Product List|OLEDs / LCDs/e-Paper}}
 
}}
 
 
 
== Introduction ==
 
 
 
'''Note:''' The raw panel requires a driver board, If you are the first time use this e-Paper, we recommend you to buy the Module version or buy more one driver hat for easy use, otherwise you need to make the driver board yourself. And this instruction is based on the module version.
 
 
 
296x152, 2.66inch EPD (Electronic Paper Display) HAT for Raspberry Pi, SPI interface
 
 
 
{{Amazon|{{#ifeq: {{#urlget:amazon|0}}|{{#urlget:Amazon|0}}| default|}}=display
 
|More = [http://www.waveshare.com/2.66inch-e-paper-module.htm More]}}
 
===Features===
 
*Dimension: 2.66inch
 
*Outline Dimensions: 36.304mm(H) × 71.820mm(V) × 1.0mm(D)
 
*Display Size: 30.704mm(H) × 60.088mm(V)
 
*Operating Voltage: 3.3V/5V (The raw panel only support 3.3V)
 
*Interface: SPI
 
*Dot Pitch: 0.202 x 0.203mm
 
*Resolution: 296 x 152
 
*Display Color: Black, White
 
*Grayscale: 2
 
*Partial Refresh Time: 0.3s
 
*Full Refresh Time: 6s
 
*Refresh Power: 42.4mW(Typ.)
 
*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<br />
 
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.
 
 
 
==SPI Timing==
 
[[File:1.54inch-e-paper-manual-1.png|400px]]
 
 
 
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.
 
*CS: Slave chip select, when CS is low, the chip is enabled
 
*DC: data/command control pin, write command when DC=0; write data when DC=1
 
*SCLK: SPI communication clock
 
*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 protocol==
 
===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 />
 
[[file:e-paper_hardware_work_2.png]]<br />
 
So we can use two bytes for 16 pixels.<br />
 
  
==Precautions==
+
<div style="background-color: #343434;text-align: center;color: white;padding: 20px;margin: 8px;">
#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/>
+
=2.66inch e-Paper Module Manual=
#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>
<div class="tabbertab" title="User Guides of Pi">
+
<p></p>
 +
{{ContentGrid|grid-gap=25px
 +
|content =
 +
{{StudyCard
 +
|img=[[File:E-Paper_Introduction_4.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Overview]]
 +
|heading = Introduction
 +
|content = Parameters, principles, and precautions
 +
}}
 +
{{StudyCard
 +
|img=[[File:Rapberry Pi.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Working_With_Raspberry_Pi]]
 +
|heading = Working with Raspberry Pi
 +
|content = User guides for the development demo of C language, Python
 +
}}
 +
{{StudyCard
 +
|img=[[File:Arduino00.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Working_With_Arduino]]
 +
|heading = Working with the Arduino
 +
|content = User guides for the development demo based on Arduino UNO R3
 +
}}
 +
{{StudyCard
 +
|img=[[File:Jetson Arduino00.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Working_With_Jetson_Nano]]
 +
|heading = Working with the Jetson Nano
 +
|content = User guides for the development demo of C language, Python
 +
}}
 +
{{StudyCard
 +
|img=[[File:Sunrise X3 Pi.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_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
 +
}}
 +
{{StudyCard
 +
|img=[[File:STM321.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Working_With_STM32]]
 +
|heading = Working with the STM32
 +
|content = User guides for the development demo based on STM32CubeMX
 +
}}
 +
{{StudyCard|img=[[File:E-Paper_ESP32.jpg|110px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#ESP32.2F8266]]
 +
|heading = Working with ESP32/8266
 +
|content = User guides for ESP32/8266}}
  
We provide several examples for testing, you can 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:Resource0.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Resources]]
</div>
+
|heading = Resources
<div class="tabbertab" title="User Guides of Jetson Nano">
+
|content = Documentation, procedures and data sheets, etc
{{Jetson Nano Guides for SPI e-Paper}}
+
}}
</div>
+
{{StudyCard
<div class="tabbertab" title="User Guides of STM32">
+
|img=[[File:FAQ01.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#FAQ]]
{{STM32 Guides for SPI e-Paper}}
+
|heading = FAQ
</div>
+
|content = e-Paper frequently asked questions
<div class="tabbertab" title="User Guides of Arduino">
+
}}
{{Arduino Guides for SPI e-Paper}}
+
{{StudyCard
</div>
+
|img=[[File:support00.jpg|121px|link=https://www.waveshare.com/wiki/2.66inch_e-Paper_Module_Manual#Support]]
<div class="tabbertab" title="User Guides of ESP32">
+
|heading = Support
{{ESP32 Guides for SPI e-Paper}}
+
|content = Technical support
</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://www.waveshare.com/w/upload/6/67/2.66inch_e-Paper_Schematic.pdf 2.66inch e-Paper Shcematic]
 
*[https://www.waveshare.com/w/upload/d/dc/2.66inch-e-paper-specification.pdf 2.66inch e-Paper Specification]
 
===Demo code===
 
*[https://github.com/waveshare/e-Paper Github]
 
 
 
</div>
 
<div class="tabbertab" title="FAQ">
 
 
 
=FAQ=
 
{{e-paper Hat FAQ}}
 
 
 
=Support=
 
{{Service00}}
 
</div>
 
</div>
 

Latest revision as of 06:06, 24 March 2023


2.66inch e-Paper Module Manual

E-Paper Introduction 4.jpg

Introduction

Parameters, principles, and precautions
Rapberry Pi.jpg

Working with Raspberry Pi

User guides for the development demo of C language, Python
Arduino00.jpg

Working with the Arduino

User guides for the development demo based on Arduino UNO R3
Jetson Arduino00.jpg

Working with the Jetson Nano

User guides for the development demo of C language, Python
Sunrise X3 Pi.jpg

Working with Sunrise X3 Pi

User guides for the development demo based on Python
STM321.jpg

Working with the STM32

User guides for the development demo based on STM32CubeMX
E-Paper ESP32.jpg

Working with ESP32/8266

User guides for ESP32/8266
Resource0.jpg

Resources

Documentation, procedures and data sheets, etc
FAQ01.jpg

FAQ

e-Paper frequently asked questions
Support00.jpg

Support

Technical support