EASY SLOWMOVIE PLAYER FOR INKY IMPRESSION AND PI ZERO 2W
by HanshadowJRH in Circuits > Raspberry Pi
271 Views, 1 Favorites, 0 Comments
EASY SLOWMOVIE PLAYER FOR INKY IMPRESSION AND PI ZERO 2W
I was interested in making a slow movie player using my 5.7" 7 color Inky Impression display from Pimoroni and a Pi Zero 2W, so I ran the setup from https://github.com/TomWhitwell/SlowMovie. It ran a while, but when finished I discovered the Inky support did not work. I then cobbled together a setup that can be programmed in minutes and is really fun to watch. The E-Paper display gives it a misty look of an old painting. No soldering or complex compiling make this software install in minutes, you will beat your 3D printer! (Maybe start them now!).
Supplies
Pimoroni Inky Impression display (any size) https://shop.pimoroni.com/products/inky-impression-5-7?variant=32298701324371
Pi Zero 2W https://www.adafruit.com/
3D Printer for frame
Get Image
The easiest way is to attach a monitor and keyboard/mouse, although VNC could be used for headless install. A big problem with these small computers is the need to compile and setup many functions. Often hours go by only to end in a crash or error. Thanks to https://github.com/Qengineering/RPi_64-bit_Zero-2-image many hours are saved as they supply an image with OpenCV and Tensor already to go in Bullseye OS.
Just download and write a chip as they explain and boot up.
Install
Once it boots, look in the top right and connect to your internet. Change your password in Preferences - Raspberry Pi Configuration, and DON'T FORGET to enable the I2C interface.
Now the usual - open a terminal and type $ sudo apt-get update. When it is done, do $ sudo apt-get upgrade
Reboot.
Inky / Software
Now open a terminal and type $ sudo pip3 install inky[rpi,example-depends].
Download the moviejpg2.py and put it in /home/pi/Desktop.
Download the test.mp4 and put it in /home/pi/Videos.
Test Run
To test, you can right click on the moviejpg2.py icon and select Thonny. It will load the simple Python program. The delay between frames can be changed, now at time.sleep(60).
Click on the Thonny run button, should display the type of display and start running.
AUTOSTART
If all is well, you can change the .mp4 video to whatever you want.
To make it automatically run at boot, need to open terminal and edit a file-
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
When the editor come up, go to the bottom and add this line-
@lxterminal -e python3 /home/pi/Desktop/moviejpg2.py
Now you can detach monitor/ keyboard/mouse and 'plug and play'.
3D Print
No supports, 30% fill.