ARDUINO SD COLOR OLED PICTURE FRAME
The Arduino reads bitmap file on the SD card and displays it on the color OLED module. The firmware works for SD
and SDHC cards. SD card interface is with SPI bus, the OLED interface is
USART as SPI in ATMEGA328.
OLED Module uses driver SSD1331, 0.95", 96 x 64 pixels. https://www.ebay.co.uk/itm/282379866279?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2060353.m2749.l2649
Micro SD card
is connected via micro SD module.
TO SET UP THE SD CARD:
Format the card with FAT32.
Resize image file.
Name the files "1.bmp", "2.bmp", etc.
Save the file as 24 bits bmp.
Convert bmp files to 16 bits (5:6:5) using https://online-converting.com/image/convert2bmp/
Add the file to the root folder
of the card (don't use a directory).
ARDUINO SD TFT PICTURE FRAME
The Arduino reads bitmap file on the SD card and displays it on the TFT module. The firmware works for SD
and SDHC cards. SD card interface is with SPI bus, the TFT interface is
USART as SPI in ATMEGA328.
LCD TFT Module uses driver ST7735, 1.8", 128 x 160 pixels. SD card
can be connected via 1K resistors or using micro SD module.
TO SET UP THE SD CARD:
Format the card with FAT32.
Create image file using MS Paint or another program, file size is 61KB, image size
160 pixels high by 128 pixels wide.
Name the files "1.bmp", "2.bmp", etc.
Save the file as 24 bits bmp.
Add the file to the root folder
of the card (don't use a directory).
SD CARD TFT PICTURE FRAME
The PIC16F690 reads bitmap files on the SD card and displays it on the TFT module. The firmware works for SD/SDHC cards. SD card interface the PIC with hardware SPI of the PIC, TFT interfaced with software (bit banging) SPI.
The software reads the files on the SD card and loads each evry 10 seconds, like a slide show. The SD is read one byte at a time and write it to the TFT until 61,494 bytes are read.
The pic firmware can read only bitmap file of 24 bits bmp type. The file has to be size of 160 pixels width and 128 pixels high. The firmware removes the bitmap header (54 bytes) and then streams the rest of the file to the TFT. Every 3 bytes are the 24 bits color for one pixel.
LCD TFT Module uses driver ST7735, 1.8", 128 x 160 pixels.
TO SET UP THE SD CARD:
Format the card with FAT32.
Create image files using MS Paint or another program, file size is 61KB, image size 128 pixels high by 160 pixels wide.
Name the files 1.bmp, 2.bmp etc.
Save the files as 24 bits bmp.
Add the files to the root directory
of the card (don't use folders).
SD CARD + PETIT FAT BMP DISPLAY
Updated on 6/2/2015
The PIC16F876A programmed with PETIT FAT reads bitmap file on the SD card and displays it on the TFT module. The firmware works for SD cards only because you can format FAT16 on max 2GB card. SD card interface the PIC in SPI mode.
Petit FAT file system reads one file only. It is configured to FAT16, FAT32 can be added. This pic doesn't have enough RAM for Write File option. Read more at http://elm-chan.org/fsw/ff/00index_p.html
LCD TFT Module used is 8 bits drive. It includes SD card socket and 3.3V regulator. Inputs to the TFT driver are level shifted from 5V to 3.3V by buffers, inputs to the SD card are driven by resistors to reduce the drive to 3.3V .
The pic firmware can read only bitmap file of 24 bits bmp type. The file has to be size of 240 pixels width and 320 pixels high. The firmware removes the bitmap header (54 bytes) and then streams the rest of the file to the TFT. Every 3 bytes are the 24 bits color for one pixel. The bitmap format reads and displays the pixels of the image starting from bottom left.
Small color coded squares on the screen indicate errors: yellow for SD error, blue for file system error and green for file errors.
TO SET UP THE SD CARD:
Format the card with FAT16.
Create image file using MS Paint or another program, file size is 226KB, image size 320 pixels high by 240 pixels wide.
Name the file "pic.bmp".
Save the file as 24 bits bmp.
Add the file to the root folder
of the card (don't use a directory).
FAT 32 PICTURE FRAME
This project uses the same circuit with different firmware for PIC16F876A. It doesn't include Petit FAT. The program displays BMP pictures from the SD/SDHC card formatted FAT32. The code has functions that find the root directory, read the files location from the Root Directory and streams the data to the TFT. The code displays the files in rotation. The software can read only FAT32 and only from the root directory. The file name and size isn't read.
To setup the SD/SDHC card: format the card with FAT32, add files to root folder without directories. Each picture file size is 226KB, image size 320 pixels high by 240 pixels wide, saved as 24 bits bitmap. Files names have to be 8.3 type, 8 characters max. File can be created using MS Paint.
More about FAT32 in this document: https://staff.washington.edu/dittrich/misc/fatgen103.pdf
Good free specifications for SD can be found in SanDisk PDF: http://alumni.cs.ucr.edu/~amitra/sdcard/ProdManualSDCardv1.9.pdf
You are free to use the circuit diagram and software with no
limitations.



Circuit Description
See also Technical Tips
Micro SD Module http://www.ebay.co.uk/itm/Micro-SD-Card-Reader-SPI-for-Arduino-Raspberry-Pi-UK-Seller-/322502815052?hash=item4b16aa6d4c:g:z9EAAOSwONBZCQQ5
LCD TFT Module uses driver ST7735, 1.8", 128 x 160 pixels. https://www.ebay.co.uk/itm/141999175585?hash=item210fcf77a1:g:My0AAOSwBLlVZCpN

Circuit Description
See also Technical Tips
RD input of 3.3V is taken from the TFT module.
The module supply is 5V. The LCD driver I have is ILI9341.
|