From Waveshare Wiki
Jump to: navigation, search
 
(49 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Infobox item
+
{{#tweekihide:firstHeading|sidebar-left|sidebar-right}}__NOTOC__
|name=2.13inch e-paper
+
 
|name2=2.13inch e-Paper HAT
+
<div style="background-color: #343434;text-align: center;color: white;padding: 20px;margin: 8px;">
|img=[[File:2.13inch-e-Paper-1.jpg|300px|link=https://www.waveshare.com/2.13inch-e-Paper.htm]]
+
=2.13inch e-Paper HAT Manual=
|img2=[[File:2.13inch-e-paper-hat-intro.jpg|300px|link=http://www.waveshare.com/2.13inch-e-paper-hat.htm]]
+
</div>
|caption=250x122, 2.13inch E-Ink display raw panel
+
<p></p>
|caption2=250x122, 2.13inch E-Ink display HAT for Raspberry Pi, SPI interface
+
{{ContentGrid|grid-gap=25px
|category=[[:Category:OLEDs / LCDs|OLEDs / LCDs]], [[:Category:LCD|LCD]]
+
|content =
|brand=Waveshare
+
{{StudyCard
|{{#urlget:amazon|default}}=display
+
|img=[[File:E-Paper_Introduction_4.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Overview]]
|website_cn=[http://www.waveshare.net/shop/2.13inch-e-paper-hat.htm 官方中文站点]
+
|heading = Introduction
|website_en=[http://www.waveshare.com/product/2.13inch-e-paper-hat.htm Waveshare website]
+
|content = Parameters, principles and precautions}}
|interface1=SPI
+
 
|interface2=RPi
+
{{StudyCard|img=[[File:Rapberry Pi.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Working_With_Raspberry_Pi]]
|related=
+
|heading = Working with Raspberry Pi
{{Product List|OLEDs / LCDs/e-Paper}}
+
|content = User guides for the development demo of C language, Python}}
}}
 
<div class="tabber">
 
<div class="tabbertab" title="Introduction">
 
= Introduction =
 
{{E-Paper Raw Panel}}
 
250x122, 2.13inch E-Ink display HAT for Raspberry Pi, SPI interface
 
  
{{Amazon|{{#urlget:amazon|default}}=display
+
{{StudyCard|img=[[File:Arduino00.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Working_With_Arduino]]
|More = [http://www.waveshare.com/product/2.13inch-e-paper-hat.htm More]}}
+
|heading = Working with the Arduino
=Video=
+
|content = User guides for the development demo based on Arduino UNO R3}}
<youtube height=500px, width=500px>https://www.youtube.com/edit?o=U&video_id=y5XdNrZ6AtY</youtube>
 
=Versions=
 
The 2.13inch e-Paper have updated to v2 version. The controller of 2.13inch e-Paper v2 is different with the old version. Demo code is updated, and it is not compatible with the old version.
 
  
Please check which version of e-paper do you get before you download demo codes. The e-Paper which has v2 sticker is new version.
+
{{StudyCard|img=[[File:Jetson Arduino00.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Working_With_Jetson_Nano]]
 +
|heading = Working with the Jetson Nano
 +
|content = User guides for the development demo of C language, Python}}
  
[[File:E-paper_v1&v2.png|400px]]            [[File:2.13inch_e-paper_HAT_v1&v2.jpg|400px]]
+
{{StudyCard|img=[[File:Sunrise X3 Pi.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Working_With_Sunrise_X3_Pi]]
= Interfaces =
+
|heading = Working with Sunrise X3 Pi
[[File:2.13inch-e-paper-hat.png|left|300px|Interfaces]]
+
|content = User guides for the development demo based on Python}}
  
{|class="wikitable" style="height:380px; text-align:center"
+
{{StudyCard|img=[[File:STM321.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Working_With_STM32]]
|-
+
|heading = Working with the STM32
| VCC || 3.3V
+
|content = User guides for the development demo based on STM32CubeMX}}
|-
 
| 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 =
+
{{StudyCard|img=[[File:E-Paper_ESP32.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#ESP32.2F8266]]
; Introduction
+
|heading = Working with ESP32/8266
----
+
|content = User guides for ESP32/8266}}
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:Resource0.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Resources]]
* CS is slave chip select, when CS is low, the chip is enabled.
+
|heading = Resources
* DC is data/command control pin, when DC = 0, write command, when DC = 1, write data.
+
|content = Documentation, procedures and data sheets, etc}}
* 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>
 
<!--
 
=== Set the frame memory (SetFrameMemory) ===
 
SetFrameMemory is used to write image data to the memory.
 
* Process:
 
:: Set the area size (see the function SetMemoryArea) -> set the start point (see the function SetMemoryPointer) -> send the command ''Write RAM'' -> start image data transfer.
 
* The module has two memory areas. Once DisplayFrame is invoked, the following action of SetFrameMemory will set the other memory area, e.g. to set all the two memory areas, the process is: SetFrameMemory -> DisplayFrame -> SetFrameMemory -> DisplayFrame, i.e. set and update twice.
 
* The data from SPI interface is first saved into the memory and then updated if the module received the update command.
 
* About the image to be sent: 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 a black pixel.
 
For example:
 
<pre>
 
0xC3:8 pixels □□■■■■□□
 
0x00:8 pixels ■■■■■■■■
 
0xFF:8 pixels □□□□□□□□
 
0x66:8 pixels ■□□■■□□■
 
</pre>
 
-->
 
<div class="tabbertab" title="Resources">
 
; Documentation
 
----
 
{{Commom Instruction of SPI e-paper}}
 
* [[:File:2.13inch_e-Paper_HAT_Schematic.pdf|Schematic]]
 
  
; Demo code
+
{{StudyCard|img=[[File:FAQ01.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#FAQ]]
----
+
|heading = FAQ
* [[:File:2.13inch_e-Paper_HAT-code.7z|Demo code(Purchase before April 26, 2019)]]
+
|content = e-Paper frequently asked questions}}
* [[:File:2.13inch_e-paper_code(V2).7z|Demo code V2(Purchased after April 26, 2019, the V2 logo is attached to the screen.)]]
 
*[https://github.com/waveshare/e-Paper Github]
 
  
;Demo video
+
{{StudyCard|img=[[File:support00.jpg|110px|link=https://www.waveshare.com/wiki/2.13inch_e-Paper_HAT_Manual#Support]]
----
+
|heading = Support
* [https://youtu.be/y5XdNrZ6AtY 2.13inch e-paper Demo video]
+
|content = Technical support
; Datasheets
+
}}
----
+
}}
* [[:File:1.54inch_e-Paper_Datasheet.pdf|1.54inch_e-Paper_Datasheet.pdf]]
 
* [[:File:2.13inch_e-Paper_Datasheet.pdf|2.13inch_e-Paper_Datasheet.pdf]]
 
* [[:File:2.9inch_e-Paper_Datasheet.pdf|2.9inch_e-Paper_Datasheet.pdf]]
 
'''Datasheet for V2 version'''
 
*[https://www.waveshare.com/w/upload/d/d5/2.13inch_e-Paper_Specification.pdf 2.13inch e-Paper Specification]
 
;Related Resources
 
----
 
*[https://forum.arduino.cc/index.php?topic=487007.0 Waveshare e-Paper display with SPI]
 
*[https://github.com/PiSugar/pisugar-case-pihat-cap Pisugar case]
 
</div>
 
<div class="tabbertab" title="FAQ">
 
== FAQ ==
 
<!--{{e-Paper FAQ}}-->
 
{{e-Paper FAQ}}
 
</div>
 
</div>
 
==Support==
 
{{Service00}}
 

Latest revision as of 06:01, 24 March 2023


2.13inch e-Paper HAT 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