Skip to content

Inspired by @cnlohr YouTube video about his 5.65 inch E-paper display. Made it myself with succes, but found the way to manually do all pictures time consuming.

Notifications You must be signed in to change notification settings

oscarpeters/ColorE-ink-converter

Repository files navigation

Waveshare 5.65 Inch Color E-paper display image converter

Linux OSX Windows Python

This program fully automates the process from a .PNG, .JPG, and .Jpeg to a file format which a microcontroller can read and use to show on the E-paper

Alt Text

The image is resized and white stripes are added to get the aspect ratio right. Dithering is added because of the 7 colors which the display can produce. This picture is an example while the original image and the converted image are overlayed and resized to fit on top of eachother.

The Epaper display is 600 x 448 pixels while Lena Test Image is 512 x 512 pixels. Therefore, the white stripes on each end of the dithered picture.

Inspired by CNlohr YouTube video.

Watching his YouTube Video gave me the spirit to make a display like his, but would not spent much time when converting a normal .PNG or .JPG to .RAW to be read by the microcontroller.

Therefore, made this not so handsome Python program to convert the pictures automatically in matter of seconds.

The program is tested on MacOs, Windows, and Linux were the Windows version has some issues when converting dithered picture to a .RAW file.

Maps Usage
Input Put here the Pictures you want to be converted
PNG Converted dithered pictures output
PNG/undithered size matched pictures, debug
SDcard .RAW files to be placed onto an SD-card

Setup:

Install Python libraries

pip install pillow tqdm

Install ImageMagick

Platform How-to
Windows ImageMagick Website
Linux sudo apt install imagemagick
MacOs brew install imagemagick
  • When using MacOs, Homebrew should be installed by:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Additional information: The script is looking if ImageMagick is installed on Linux & MacOs, and will install it if necassary.
It is not necassary to install ImageMagick before using the script. It should be installed manually if the script is failing to install it.

Additional software:

GCC must be installed to make .RAW files.

Windows :

The Python script is looking if GCC is installed and will for Linux & MacOs automatically install it if not installed yet.

SD-card formatting

There are a couple of issues when using some SD-cards from unknown brands, these SD-cards have a different block size which when converting the correct format will not work.

I am using Lexar 633x 32Gb SD-cards which work fine. SD-card must be converted to FAT32 with a MAXIMUM partition size of 35MB.

Credits

The converter program is copied from CNlohr his repo, were I am using it to make the .RAW files.

About

Inspired by @cnlohr YouTube video about his 5.65 inch E-paper display. Made it myself with succes, but found the way to manually do all pictures time consuming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published