Difference between revisions of "9.7inch e-Paper HAT"

From Waveshare Wiki
Jump to: navigation, search
Line 57: Line 57:
  
 
== How to use ==
 
== How to use ==
=== Working with Raspberry Pi ===
+
===Working with Windows PC===
==== Installing libraries required ====
+
*Connect 9.7inch e-paper to IT8951 driver board as below
If you want to connect your E-paper screen to Raspberry Pi, you should install some necessary libraries, or else the [[:File:9.7inch-e-paper-hat-code.7z|Demo (click to download)]] below may work improperly. For more information about how to install the Raspberry Pi libraries, please visit the website: [[Pioneer600#Libraries_Installation_for_RPi|Libraries Installation for RPi]].
+
[[File:9.7inch-e-Paper-HAT-Manual-09.jpg|center|500px]]
 +
*Connect driver board to PC by USB cable
 +
*Download and open test software [[:File:E-LINK-TCON-DEMO.zip | E-LINK-TCON-DEMO]]
 +
*Click connect as below
 +
[[File:9.7inch-e-Paper-HAT-Manual-10.jpg|center|600px]]
 +
*Check option "AutoSet", then click "Open File" to open one picture for display. Browse diagram will be opened, and you should click "OK"
 +
[[File:9.7inch-e-Paper-HAT-Manual-11.jpg|center|600px]]
 +
*Click "display" to refresh the picture
 +
[[File:9.7inch-e-Paper-HAT-Manual-12.jpg|center|600px]]
  
You can find the detailed presentation about the installations of libraries wiringPi, bcm2835 and python.
+
Note: Source code of E-LINK-TCON-DEMO is unavailable unless you signed SLA. if require, please contact with Waveshare Team.
==== Hardware connection ====
 
Here is the connection between Raspberry Pi 3B and E-paper.
 
{|class="wikitable"
 
|-
 
! e-Paper !! Raspberry Pi 3B
 
|-
 
| 3.3V || 3.3V
 
|-
 
| GND || GND
 
|-
 
| DIN || MOSI
 
|-
 
| CLK || SCLK
 
|-
 
| CS || CE0
 
|-
 
| DC || Pin22/GPIO25
 
|-
 
| RST || Pin11/GPIO17
 
|-
 
| BUSY || Pin18/GPIO24
 
|}
 
  
==== Expected result ====
+
===Working with Raspberry Pi===
1) After the libraries required installed, you can copy the relative programs into your Raspberry Pi, and then enter the corresponding file.
+
* Hardware connection
* '''BCM2835:''' Execute the command: <code>make</code>, to compile the code and generate a file <code>epd</code>. Execute the command: <code>sudo ./epd</code>, the program will run.  
+
[[File:9.7inch-e-Paper-HAT-Manual-13.jpg|center|600px]]
* '''WringPi:''' Execute the command: <code>make</code>, to compile the code and generate a file <code>epd</code>. Execute the command: <code>sudo ./epd</code>, the program will run.
+
*Make sure you have switched the sail switch to SPI mode
* '''Python:''' Execute the command: <code>sudo python main.py</code>
+
[[File:9.7inch-e-Paper-HAT-Manual-14.jpg|center|400px]]
2) Image will be displayed on the screen.
+
*Install BCM2835 libraries to your Raspberry Pi, you can download the newest bcm2835 library from its official website http://www.airspayce.com/mikem/bcm2835/
* Note:The refresh rate of this module is slow (about 6s), and it will flicker for several times during refreshing. Please be patient.
+
Copy the library you download to Raspberry Pi and install it withe commands below. You can also following the instruction on its website above
  
=== Working with Arduino ===
+
<pre>
==== Hardware connection ====
+
tar zxvf bcm2835-1.xx.tar.gz
{|class="wikitable"
+
cd bcm2835-1.xx
|-
+
./configure
! e-Paper !! UNO PLUS (3.3V)
+
make
|-
+
sudo make check
| 3.3V || 3V3
+
sudo make install
|-
+
</pre>
| GND || GND
+
* Download [[:File:IT8951.tar.gz | Demo code]] and copy to your Raspberry Pi. Extract and run it with the commands below in your Raspberry Pi
|-
+
<pre>
| DIN || D11
+
tar zxvf IT8951.tar.gz
|-
+
cd IT8951
| CLK || D13
+
make
|-
+
./IT8951 0 0 01.bmp
| CS || D10
+
</pre>
|-
 
| DC || D9
 
|-
 
| RST || D8
 
|-
 
| BUSY || D7
 
|}
 
  
==== Expected result ====
+
This demo code supports display general BMP pictures directly, if you find that your BMP picture cannot be displayed, please open it on Windows PC with Paint software (Windows APP), save as BMP and try again.
# Copy the libraries file of Arduino demo code to the libraries folder which is under the installation directory of Arduino IDE, it's path usually is C:\users\username\documents\arduino\libraries. You can also designate the location on Arduino IDE--> File -->Preferences -->Sketchbook location
 
# Upload the project.
 
# E-paper will display the image.
 
Note:
 
* The refresh rate of this module is slow (about 6s), and it will flicker for several times during refreshing. Please be patient.
 
  
=== Working with the STM32 development board ===
+
The command '';./IT8951 0 0 01.bmp''', the first two parameters is X and Y coordinate of picture's left-top, 01.bmp is the file name of picture
* Here we use STM32F103ZE development board.
+
 
* The demo code is based on HAL, so you can port the demo code to other STM board with STM32CubeMX.
+
===Working with STM32===
* The demo code can be compiled successfully in Keil v5
+
Because IT8951 will cost big size of RAM, some of STM32 cannot support without external SDRAM device. So we here use [https://www.waveshare.com/open429i-c-standard.htm Open429I] as test board, Open429I integrates IS42S16400J (64-MBIT) SDRAM,has full memory to drive the 9.7inch e-paper.
==== Hardware connection ====
+
==Resources==
Connecting to the STM32F103ZE:
+
===Schematic===
{|class="wikitable"
+
*[[:File:E-Paper-IT8951-Driver-HAT-Schematic.pdf | Schematic of IT8951 Driver Board]]
|-
+
*[[:File:9.7inch-e-Paper-Adapter-Schematic.pdf | Schematic of 9.7inch e-Paper Adapter board]]
! e-Paper !! STM32F103ZE
+
===Demo code===
|-
+
*[[:File:IT8951.tar.gz | Demo code for Raspberry Pi]]
| 3.3V || 3V3
+
*[[:File:9.7-IT8951.zip| Demo code for STM32 (Open429I)]]
|-
+
===Software===
| GND || GND
+
*[[:File:E-LINK-TCON-DEMO.zip | E-LINK-TCON-DEMO]]
|-
 
| DIN || PA7 (MOSI)
 
|-
 
| CLK || PA5 (SCK)
 
|-
 
| CS || PA4
 
|-
 
| DC || PA2
 
|-
 
| RST || PA1
 
|-
 
| BUSY || PA3
 
|}
 

Revision as of 11:02, 21 September 2018

9.7inch e-Paper raw Panel
9.7inch-ePaper.JPG

1200×825, 9.7inch E-Ink raw panel without driver board
9.7inch e-paper HAT
9.7inch-e-Paper-HAT.JPG

1200×825, 9.7inch E-Ink display HAT for Raspberry Pi, USB/SPI/I80/I2C interface
{{{name3}}}

{{{name4}}}

{{{name5}}}

Note

9.7inch e-Paper is big size screen, the glass panel and FPC is fragile, please be careful when use it for developing. we recommend you to reinforce the FPC with scotch tape when developing.

There are two version, one is raw panel and another is HAT version. Driver board (IT8951) is required for raw panel, if you are the first time to buy this e-paper, recommend you to choose HAT version which come with the driver board.

Introduction

9.7inch E-Ink display HAT for Raspberry Pi, 1200×825 resolution, 16 gray scale, USB/SPI/I80/I2C interface

More

Features

  • No backlight, keeps displaying last content for a long time even when power down
  • Low power consumption, basically power is only required for refreshing
  • Compatible with Raspberry Pi Zero/Zero W/Zero WH/2B/3B/3B+
  • USB/SPI/I80/I2C interface, for connecting with host boards like Raspberry Pi/Nucleo, etc.
  • Comes with development resources and manual (examples for Raspberry Pi/STM32)

Specifications

  • Operating voltage: 5V
  • Interface: USB/SPI/I80/I2C
  • Outline dimension: 218.8mm × 156.425mm × 1.15mm
  • Display size: 202.8mm × 139.425mm
  • Dot pitch: 0.169 × 0.169
  • Resolution: 1200 × 825
  • Display color: black, white
  • Gray scale: 2-16 (1-4 bit)
  • Full refresh time: <1s
  • Total refresh power: 0.6W(typ.)
  • Total standby power: 0.3W(typ.)
  • Viewing angle: >170°


16-grey-scale2.jpg

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 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.

How to use

Working with Windows PC

  • Connect 9.7inch e-paper to IT8951 driver board as below
9.7inch-e-Paper-HAT-Manual-09.jpg
  • Connect driver board to PC by USB cable
  • Download and open test software E-LINK-TCON-DEMO
  • Click connect as below
9.7inch-e-Paper-HAT-Manual-10.jpg
  • Check option "AutoSet", then click "Open File" to open one picture for display. Browse diagram will be opened, and you should click "OK"
9.7inch-e-Paper-HAT-Manual-11.jpg
  • Click "display" to refresh the picture
9.7inch-e-Paper-HAT-Manual-12.jpg

Note: Source code of E-LINK-TCON-DEMO is unavailable unless you signed SLA. if require, please contact with Waveshare Team.

Working with Raspberry Pi

  • Hardware connection
9.7inch-e-Paper-HAT-Manual-13.jpg
  • Make sure you have switched the sail switch to SPI mode
9.7inch-e-Paper-HAT-Manual-14.jpg

Copy the library you download to Raspberry Pi and install it withe commands below. You can also following the instruction on its website above

tar zxvf bcm2835-1.xx.tar.gz
cd bcm2835-1.xx
./configure
make
sudo make check
sudo make install
  • Download Demo code and copy to your Raspberry Pi. Extract and run it with the commands below in your Raspberry Pi
tar zxvf IT8951.tar.gz
cd IT8951
make
./IT8951 0 0 01.bmp

This demo code supports display general BMP pictures directly, if you find that your BMP picture cannot be displayed, please open it on Windows PC with Paint software (Windows APP), save as BMP and try again.

The command ;./IT8951 0 0 01.bmp', the first two parameters is X and Y coordinate of picture's left-top, 01.bmp is the file name of picture

Working with STM32

Because IT8951 will cost big size of RAM, some of STM32 cannot support without external SDRAM device. So we here use Open429I as test board, Open429I integrates IS42S16400J (64-MBIT) SDRAM,has full memory to drive the 9.7inch e-paper.

Resources

Schematic

Demo code

Software