Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DigitalLivestock/inkframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InkFrame: a Wireless Photo Frame enabled by Pimoroni's Inky Impression and Raspberry Pi Zero 2W written in Python

Hardware Setup

This section presents the involved hardware and assembly instructions.

Recomended/Required Hardware

  • Photo frame: LOMVIKEN 10x15 cm, IKEA [1]
  • E-Ink display: Inky Impression 5.7", Pimoroni [2]
  • Temperature and Humidity Sensor: DHT11 [3]
  • Controller: RPI Zero 2 W, Raspberry Pi [4]
  • MicroSD card: Any

Construction

  1. Follow the instructions provided by Pimoroni for connecting RPI Zero 2 W with display here [5].
  2. Remove the backside of the LOMVIKEN photo frame and cut it with a blade knife to ensure flat contact between the Inky Impression PCB and backside. Ensure the buttons are exposed.
  3. Connect the DHT11 sensor to the breakout header on the Inky Impression, using direct soldering or with flat cables. I used a small cut prototyping board with headers for a neat and modular fit in the narrow space between the frame and breakout. Connect pins in the following order: RPI-PIN#4 -> DHT11-DATA, RPI-3.3V -> DHT11-VCC and RPI-GND -> DHT11-GND.
  4. Prepare MicroSD card and insert into RPI, as instructed again here [5]. I'm using the Raspberry Pi OS 32-bit ported from Debian Bookworm. Ensure a WiFi connection will be established are and SSH is enabled.
  5. Power the system with the AC/DC adapter.

System Configuration

This section presents the instructions for how to install required software and how to configure the linux environment.

  1. Connect to the RPI via SSH. Instructions are given here [5] again.
  2. To the usual sudo apt update and sudo apt upgrade
  3. Install git: sudo apt install git
  4. Continue following the link above to install the Inky Impression required software.
  5. Clone this repository: git clone https://github.com/DigitalLivestock/inkframe.git
  6. Enter directory: cd inkframe
  7. Activate venv: source ~/.virtualenvs/pimoroni/bin/activate
  8. Install dependencies: python -m install -r requirements.txt
  9. Create folder for images: mkdir images
  10. Add images to folder from new terminal session on host PC: scp [image folder path on host PC]pi@[address]:[path to images on pi]
  11. Test inkframe: python main.py
  12. Wait for image to be written on display. Can take some time. Be patient.
  13. Systemd setup using the following instructions [6]. Instead of led-blink.service, use inkframe.service prepared in the inkframe-directory.

Functions

This section goes over the available functions of the system.

Behaviour

  • Inkframe program reloads automatically after boot.
  • Shuffles images in folder at every restart.
  • New image every 30 min. Can be re-configured in src/config.ini
  • Shows tempererature and humidity.
  • Takes input from Inky Impression display buttons.

Buttons

  • Button A: Move to next image.
  • Button B: Re-shuffle images.
  • Button C: Reserved.
  • Button D: Toggle temperature and humidity HUD visibility.

References

About

A wireless photo frame enabled by a Pimoroni's Inky Impression and Raspberry Pi Zero 2 W written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages