Vintage TV Style Photoframe
Covid 19 pandemic has already changed our life a lot. Do you miss the places which you visited, or your family members, friends, and pets? You can play those photos on a homemade digital photoframe beside your laptop. In this instructable, show using 2.2" TFT lcd, Arduino, micro SD card reader, and gesture sensor to build a gesture control digital photo frame. Of course, you can build your own style case if you have 3D printer or CNC.
Supplies
- 2.2" TFT SPI 240X320 LCD *1 https://www.aliexpress.com/w/wholesale-2.2-tft-spi...
- Micro SD card reader *1 https://www.aliexpress.com/item/4000002592780.html...
- Gesture sensor APDS-9960 module *1 https://www.aliexpress.com/item/32808594494.html?s...
- LDO 3.3V Power Module *1 https://www.aliexpress.com/item/1005001844910413.h...
- Arduino pro mini Board *1 https://www.aliexpress.com/item/32821902128.html?...
- (Optional)Customized PCB board *1 - you can create your own pcb board like me, then don't need above arduino pro mini board, LDO 3.3V Power Module, and solder level shifter circuits on universal board.
- Micro SD card *1
- Mini USB connector *1
- Mini USB cable *1
- Tact switch * 1
- Universal PCB Board * 1
- 2.54mm male/female pin headers
- Wires & Soldering iron
Enclosure
- Cases for photoframe are made by CNC.
- Photoframe stand is made by 3D printer
3D files (.stl) can be downloaded from following link:
Hardware Section
- Install 2.2" TFT SPI LCD, Gesture sensor APDS 9960 module, and customized tact switch board on the back side of front case.
- Install control board which includes Arduino pro mini board, SD card reader, and LDO 3.3V power board on base + back case. You can refer to attached files to solder or create your own control board.
Note: The power level of Arduino pro mini board is 5V, and the other devices's power level are 3.3V. Need to add level shifter circuits between them.
- Following are the datasheet for reference:
a). Arduino Pro Mini Board: https://www.arduino.cc/en/pmwiki.php?n=Main/Arduin..
b). Gesture Sensor APDS 9960 Module: https://www.terraelectronica.ru/pdf/show?pdf_file=...
c). SD Card Reader: https://create.arduino.cc/projecthub/electropeak/s...
d). 2.2" TFT SPI LCD: http://www.lcdwiki.com/2.2inch_SPI_Module_ILI9341_...
e). Atmega328 schematic: https://www.arduino.cc/en/uploads/Main/arduino-uno...
Resize Your Photos to 240x320 Resolution & Store in BMP Format
- Using photo tools to resize your photos to 240x320 resolution & save them in BMP foramt. For me, I like to use MS/Paint.
- Save your photos in the order in your micro SD card. Ex. 1.bmp, 2.bmp, 3.bmp,...
- Finally, design your own logo and name it as "logo.bmp" with 240x320/BMP format. It is the first photo which is showed in your personal photoframe.
Software Section
- In order to apply 2.2" TFT SPI LCD/Gesture Sensor APDS 9960, you have to include following libraries.
Adafruit_2.2" SPI Display: https://github.com/adafruit/Adafruit_ILI9340
Gesture Sensor APDS 9960: https://github.com/sparkfun/SparkFun_APDS-9960_Sen...
- Following is my example code. It is not perfect, but it works. If you could make it better, please modify it and share to us. Thanks~