background image

4.2inch e-Paper Module User Manual 

   

 

V2.0 

 

 

1

  / 

25

 

4.2inch e-Paper Module 

User Manual 

 

 

Version 

Data 

Description 

V1.0 

2017.05.17 

Factory 

V2.0 

2018.12.05 

Notes 

Notes

 

 

Please read this manual before you use the e-Paper. Damage caused by wrong 

operations is not within the scope of the warranty 

 

This manual shows you how to use the e-paper with the demo codes we provide. 

 

The e-paper described in this manual is Module/HAT version. (Raw panel should 

work with driver board) 

 

All specification supplied herein are subject to change without notice at any time. 

 

 

Содержание 4.2inch e-Paper Module

Страница 1: ...his manual before you use the e Paper Damage caused by wrong operations is not within the scope of the warranty This manual shows you how to use the e paper with the demo codes we provide The e paper...

Страница 2: ...rfaces 8 Working Principle 9 4 wire SPI 9 Demo codes 11 Download 11 Raspberry Pi 12 Hardware connection 12 Copy examples to Raspberry Pi 12 Libraries Installation 13 Running demo codes 15 Expected res...

Страница 3: ...4 2inch e Paper Module User Manual V2 0 3 25 Running example 19 Expected result 19 Codes Description 20 Version 20 C codes 20 Python codes 23 Image Data Array 25...

Страница 4: ...ule HAT version Raw panel should work with driver board if you are the first time to use Waveshare e Paper we recommend you the Module HAT version or purchase a driver board separately Module HAT vers...

Страница 5: ...eeps in high voltage status for long time which will damage e Paper and cannot be fixed 4 We suggest you update e Paper once every 24 hours or at least 10 days1 to update again Otherwise ghost of the...

Страница 6: ...king voltage of your board is 5V Module HAT version can support 5V voltage if the Module you buy is the new version which has been integrated convert circuit 10 The FPC of the panel is fragile please...

Страница 7: ...shelf label industrial instrument and so on We provide demo codes for you Arduino Raspberry Pi and STM32 SPECIFICATION Operating Voltage 3 3V 5V3 Working Temperature 0 50 C Interface 3 wire SPI 4 wire...

Страница 8: ...on 0 017mW Viewing angle 170 INTERFACES VCC 3 3V 5V GND GND DIN SPI MOSI pin CLK SPI SCK pin CS SPI chip selection low active DC Data Command Selection High Data Low Command RST Reset Low active BUSY...

Страница 9: ...c 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 a...

Страница 10: ...ck at idle state When CPOL 0 the level is Low However CPOL has little effect to the transmission 2 CPHA determines whether data is collected at the first clock edge or at the second clock edge of seri...

Страница 11: ...load the demo code from wiki Extract it and you can get these folders Arduino7 Demo code for Arduino UNO RaspberryPi Demo codes for Raspberry Pi BCM2835 wiringPi and python STM32 Demo code for STM32 c...

Страница 12: ...aspberry Pi bcm2835 wiringPi python2 and python3 HARDWARE CONNECTION e Paper Raspberry Pi BCM2835 No Board No 3 3V 3 3V 3 3V GND GND GND DIN MOSI 19 CLK SCLK 23 CS CE0 24 DC 25 22 RST 17 11 BUSY 24 18...

Страница 13: ...ory 4 Copy the RaspberryPi folder to home pi and change its execute permission sudo cp r boot RaspberryPi sudo chmod 777 R RaspberryPi LIBRARIES INSTALLATION To use demo codes libraries should be inst...

Страница 14: ...m2835 1 52 you should complete the command to sudo tar zxvf bcm2835 1 52 tar gz WIRINGPI LIBRARY Open Terminal and install wiringPi with commands below sudo apt get install git sudo git clone git git...

Страница 15: ...get the error while installing Pillow ImportError libopenjp2 so 7 cannot open shared object file No such file or directory Please install libopenjp2 7 dev with the command sudo apt get install libope...

Страница 16: ...sudo python main py running Running python3 example cd RaspberryPi python3 enter example directory sudo python3 main py running EXPECTED RESULT After running example 1 The screen is refresh to white 2...

Страница 17: ...orresponding wiki HARDWARE CONNECTION If you use other Arduino board instead of Arduino UNO you should check if its interfaces are compatible with UNO e Paper Arduino UNO 3 3V 5V 3V3 5V GND GND DIN D1...

Страница 18: ...4 2inch e Paper Module User Manual V2 0 18 25 EXPECTED RESULT 1 e Paper is refreshed to white 2 Draw circles and lines text is displayed...

Страница 19: ...ary HARDWARE CONNECTION e Paper Open103Z 3 3V 3V3 GND GND DIN PA7 CLK PA5 CS PA4 DC PA2 RST PA1 BUSY PA3 RUNNING EXAMPLE 1 Open STM32 project with keil V5 2 Compile and download the demo code to STM32...

Страница 20: ...update display function 4 fix bug that e Paper cannot enter sleep mode C CODES Take bcm2835 codes as example 1 Initialize pins and SPI interface DEV_ModuleInit 2 Initialize e Paper and clear it 3 Crea...

Страница 21: ...ctImage Select image Paint_Clear WHITE Set image color to white GUI_ReadBmp read bmp for certain path Parameter 1 the address of BMP picture locates Parameter 2 and 3 is the display position x and y o...

Страница 22: ...int parameter 3 are color parameter 4 are size parameter 5 are style Paint_DrawLine Drawing line parameter 1 and 2 are begin position of line parameter 3 and 4 are end position of line parameter 5 is...

Страница 23: ...ameter 4 is font size parameter 5 and 6 are background and font colors Paint_DrawString_CN Display Chinese characters Paint_DrawNum Display number parameter 1 and 2 are position parameter is number in...

Страница 24: ...4 2inch e Paper Module User Manual V2 0 24 25 3 Drawing with python imageDraw library 4 Read picture and display 5 Sleep mode sleep mode is recommended to add after refreshing...

Страница 25: ...ure to supported resolution according to e paper 3 Use Image2Lcd exe software to convert picture to C array c file Open the picture in Image2Lcd exe configure Output file type C array c Scan mode Hori...

Отзывы: