Welcome to IoTForums.com Community
Register now to participate in discussions, ask questions and share your knowledge on internet of things and automation! Feel free to sign up today.
Register Now

Arduino Ameba Arduino: [RTL8722CSM] [RTL8722DM] Display Images on E-Paper

iot_crab

Just Hatched
Aug 16, 2021
9
3
11
Singapore
Materials
  • Ameba x 1
  • Waveshare 2.9inch e-Paper HAT (D) x 1
Example
In this example, we use the Ameba RTL8722 module connects to a Waveshare 2.9inch e-Paper module to display a few QR codes. The display uses the flexible substrate as a base plate, with an interface and a reference system design. The 2.9” active area contains 296×128 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 the official
Please, Log in or Register to view URLs content!
to know more information about this module. Front view of the e-Paper Module:
1


RTL8722 wiring diagram:
1
1


Firstly, you need to prepare a picture/photo in the format of 296×128 pixels. We can easily find a photo resizing tool online, for example, the
Please, Log in or Register to view URLs content!
. Following the instructions on the website, then download the generated image in JPG format. Secondly, we use the
Please, Log in or Register to view URLs content!
tool to transfer the downloaded 296×128 image into hexadecimal codes. You can visit this
Please, Log in or Register to view URLs content!
link to get detailed instructions. Then we move to the coding part for this example. First, make sure the correct Ameba development board is selected in Arduino IDE: “Tools” -> “Board” -> “RTL8722CSM/RTL8722DM”. Then open the “DisplayQR” example in “File” -> “Examples” -> “AmebaEink” -> “EinkDisplayImage “:
1


Upon successfully upload the sample code and press the reset button, you need to wait for around 1~2 seconds for the e-Paper module to fresh its screen. Then the screen will start to display an image for 5 seconds first, then 3 different QR codes will be displayed every 5 seconds (showing in the screenshot below, y may scan the QR codes and find out more information if you wish to). Lastly, a gif in which forms of 3 frames will be displayed for a few seconds.
1


Code Reference
[1] We use Good Display GDEH029A1 2.9 Inch / 296×128 Resolution / Partial Refresh Arduino Sample Code to get the e-Paper successfully Display:
Please, Log in or Register to view URLs content!

[2] Provide the link to how to generate a QR code on the E-paper module:
Please, Log in or Register to view URLs content!


If you would like to know more about the BW16 development board, please refer to the websites below:
  1. Introduction of RTL8720DN on Instructable:
    Please, Log in or Register to view URLs content!
  2. Load Arduino image into BW16:
    Please, Log in or Register to view URLs content!
  3. RTL8720DN (BW16) IMG2 SIGN Invalid Solution:
    Please, Log in or Register to view URLs content!
  4. B&T “RTL8720D AT Command User Manual”:
    Please, Log in or Register to view URLs content!
  5. FTDI Driver Download from here:
    Please, Log in or Register to view URLs content!
 

Log in

or Log in using