Pi photo frame

This tutorial is based around the 2.8” touch screen from adafruit.

The full details of building and setting up the touch screen can be found on the adafruit website here 

The photo frame is powered by FBI (Frame Buffer ImageViewer) which can be installed using:

sudo apt-get install fbi

Rather than copying photos onto the Raspberry Pi I wanted to display photos from an attached USB memory stick. 

Before you can attach and mount your USB stick check that you have a usb folder in /mnt

mkdir -p /mnt/usb

On your mac or PC format your USB stick as FAT32.
Make a folder called Slideshow
Copy your photos into that folder as JPGs

If you are new to using USB from the command line you will need to insert the USB stick and then mount it.

sudo mount -t vfat /dev/sda1 /mnt/usb

You can simply check that your USB stick is attached by

cd /mnt/usb
ls


This should display the contents of the USB drive.

We are now ready to start the slideshow.

sudo fbi -a -t 5 /dev/fb1 -noverbose /mnt/usb/Slideshow/*.jpg

To exit the slideshow simply press escape.

additional information

-a scales the photos to fit the screen (both scale up and scale down)
-t 5 sets a duration of 5 seconds for each photo
-noverbose turns off on-screen message
-u will display the photos in a random order

The man pages for FBI can be found here

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.