Coder Social home page Coder Social logo

reprapthailand / st7735_sdvideoplayback Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cbm80amiga/st7735_sdvideoplayback

0.0 1.0 0.0 14 KB

Smooth video playback from SD on STM32 and ST7735

License: GNU Lesser General Public License v3.0

C++ 100.00%

st7735_sdvideoplayback's Introduction

ST7735_SDVideoPlayback

Smooth video playback from SD on STM32 and ST7735 1.8" 128x160 using DMA and fast SPI 36Mbps interface

Achieved 34 fps using fast Samsung SD card

YouTube video:

https://youtu.be/o3AqITHf0mo

Connections (header at the top):

LCD pin LCD pin name STM32
#01 LED 3.3V
#02 SCK PA5/SCK
#03 SCA PA7/MOSI
#04 A0/DC PA1 or any digital
#05 RESET PA0 or any digital
#06 CS PA2 or any digital
#07 GND GND
#08 VCC 3.3V
SD pin SD pin name STM32
#01 SD_SCK PA5
#02 SD_MISO PA6
#03 SD_MOSI PA7
#04 SD_CS PA4

Comments:

  • Tested with stm32duino and Arduino IDE 1.6.5
  • SD uses faster STM32 SPI1 interface which supports 36 Mbps
  • Not all SD cards work at 36MBps
  • Slow card at 18Mbps gives 22-23fps
  • Fast card at 18Mbps gives 25-26fps
  • Fast card at 36Mbps gives 33-34fps
  • SdFat library uses DMA mode for SPI transfer
  • Big buffer in RAM is used to speed up SPI/DMA transfer from SD
  • SPI1 is shared between LCD and SD card
  • Demo videos used in the video are taken from my older project and are not optimal (200x120 resolution - only 160x120 part is displayed on LCD)

If you find it useful and you want to buy me a coffee or a beer:

https://www.paypal.me/cbm80amiga

st7735_sdvideoplayback's People

Contributors

cbm80amiga avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.