E-Paper - 7.5-inch e-Book with MicroSD card

Materials

  • AmebaPro2 [ AMB82 MINI ] x1
  • Waveshare E-Paper [7.5-inch E-Ink display HAT] x1
  • Button x1
  • MicroSD card x1
  • 330 Ohm resistor x1

Introduction

In this example, we will be connecting Ameba Pro2 board to Waveshare 7.5-inch e-Paper module to be used as an e-Book. The 7.5” active area contains 800 x 480 pixels and has 1-bit white/black full display capabilities. An integrated circuit contains gate buffer, source buffer, interface, timing control logic, oscillator, etc. are supplied with each panel. You may refer to [7.5inch-e-paper-specification] (https://www.waveshare.com/w/upload/6/60/7.5inch_e-Paper_V2_Specification.pdf) for more information about this e-Paper module.

Procedure

AMB82 MINI wiring diagram:

Do note that Display Config should be set to B and Interface Config should be set to 0.

1

1

Next, download the Eink zip library, AmebaEink.zip, at https://github.com/ambiot/ambpro2_arduino/tree/dev/Arduino_zip_libraries
Then install the AmebaEink.zip by navigating to “Sketch” -> “Include Library” -> “Add .ZIP Library…”.

After AmebaEink.zip is installed, Open the “Eink_7in5_Ebook” example by selecting “File” -> “Examples” -> “AmebaEink” -> “EPD_7in5” -> “Eink_7in5_Ebook”.

1

Next, insert the MicroSD card into your computer and create a new text file named “User_Ebook.txt”. Then, save the content that you would like to display in the text file (Note: do only include words). The content of “User_Ebook.txt” shown below is for illustration purposes only.

1

1

Alternatively, if you prefer another filename for your text file, you can modify the highlighted code snippet in the sketch with the new filename.

1

Once the file is created, insert the MicroSD card into the onboard SD card reader on AMB82 MINI. Upload the code and press the reset button once the uploading is done. When the reset button is pressed, the e-Paper display will refresh and display a cover page.

1

By pressing the button, the content in the selected text file saved in MicroSD card will be read and displayed onto the e-Paper display. The content will be split into pages.

To proceed to the next page, press the button once more. The page number will be shown at the bottom right-hand corner as the page changes. You will see the following in either portrait or landscape mode based on your orientation choice after button is pressed:

1

1

You can modify the highlighted code snippet to change the font size or orientation of the displayed text.

Supported font size: 16, 20, 24
Supported orientation: 0 degree – 0 (landscape), 90 degree – 1 (portrait), 180 degree- 2 (landscape), 270 degree – 3 (portrait)

1

Code Reference

[1] We use waveshare 7.5-inch e-Paper display module/ 800×480 Resolution driver code to get e-Paper successfully display:
https://github.com/waveshare/e-Paper/tree/master/Arduino/epd7in5_V2
[2] EPD libraries can be obtained from:
https://github.com/waveshare/e-Paper
[3] Text Wrap function was written reference to:
https://www.cprogramming.com/snippets/source-code/word-wrap-in-c
Please confirm that QQ communication software is installed