Тёмный
No video :(

SD Media Player, File Browser and Viewer with STM32 and ST7735 LCD 

cbm80amiga
Подписаться 10 тыс.
Просмотров 30 тыс.
50% 1

Features:
- SD file browser with one button
- Short click for next file/switch stat mode
- Long click to show file or exit the viewer
- Semi-transparent progress bar
- Long file names (up to 22 characters fit on the screen) and file size displayed
- RAW 160x128 video files supported @ 41fps
- BMP pictures in 24-bit and 8/4-bit with palette
- basic text files viewer
JPEG support: • STM32 SD Media Player ...
Parts:
- cheap "bluepill" STM32 ($1.50)
- 160x128 ST7735 LCD ($2.60)
- SD card
Comments:
- SD uses faster STM32 SPI1 interface which supports 36 Mbps
- SPI1 is shared between LCD and SD card
- Not all SD cards work at 36Mbps
- Fast card at 36Mbps gives 41fps for 160x128 video
- SdFat library uses DMA for SPI transfer
- Big buffer in RAM is used to speed up SPI/DMA transfer
- Requires SdFat, Arduino_ST7735_STM and RREFont libraries and stm32duino
- If you don't want to play with IDEs bin ready to flash is available too
- Use ffmpeg to convert any video, example syntax:
"ffmpeg.exe -i "food.mp4" -an -filter:v:0 "crop=900:720:190:0" -s 160x128 -f rawvideo -pix_fmt rgb565le -y food160.raw"
More ST7735+STM32 videos:
• Smooth video playback ...
Project code:
github.com/cbm...
If you find it useful and you want to buy me a coffee or a beer:
www.paypal.me/...

Опубликовано:

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 84   
@lancearn7332
@lancearn7332 3 года назад
I am late to this channel, but so glad to have you. This is exactly what I have been looking for and will definitely be on my build list. A two button design in mind, one to move and one to select. Thanks for sharing..
@kroome8
@kroome8 4 года назад
great DIY's , nice... thank you for sharing!!!
@mateuspinesi
@mateuspinesi 4 года назад
Very impressive, great work!
@LaurenzEdelman
@LaurenzEdelman 4 года назад
Wow, this is amazing work!
@Rouverius
@Rouverius 4 года назад
Seriously impressive. Just subbed because of this project.
@jobit_joseph
@jobit_joseph 4 года назад
Great work. Thanks for sharing the code.
@iHayri1
@iHayri1 4 года назад
This is getting better and better :-) I wonder if the STM32 could do this with the ST7789 display. I made a PCB with the 328 and the ST7789 and would not mind creating one with the STM32. My offer still stands to send you a PCB with display as a present, just waiting on the PCB's to arrive.
@cbm80amiga
@cbm80amiga 4 года назад
Hi Hayri. I remember about your offer, but honestly saying I wouldn't take advantage of it so didn't bother you with sending. I purchased more of ST7735 because they are better for me. ST7789 is too small for my eyes :) And ST7735 has built-in SD socket so saves some time and effort. ST7789 has almost 3x more pixels so 3x slower refresh can be expected. All of my projects whould work in 240x240 resolution after only some minor modifications so you can try :) ST7789 comes from cheap smart watch and is really good for this application. I have such project done but I had no time to prepare video yet.
@iHayri1
@iHayri1 4 года назад
@@cbm80amiga Thank you for your reply and I understand your position. I am using your ST7789_Fast library and it is great, thanks for providing it. I used the display on my new COLOR CAN GAUGE mini which I will show later today. Still working on the code to add more features to it. Looking forward to see your project when you are ready, take care.
@unnisathyadas4598
@unnisathyadas4598 3 года назад
@@cbm80amiga bro can you do it for black pill STM32F4?
@davebeckham5429
@davebeckham5429 4 года назад
Excellent. Keep up the good work. Thanks for sharing.
@avr_stm_pro2955
@avr_stm_pro2955 3 года назад
Super
@TheDJCAMERO2012
@TheDJCAMERO2012 3 месяца назад
I have purchased the parts and wired the design but what are the steps to uploading the programing to the stm32? Could you post this video or steps. I have a personal cosplay project this would work perfectly for.
@Ahmadnaweed786
@Ahmadnaweed786 4 года назад
Nice ! I just want to ask you one question. How do you draw one animated object over an animated background? Because I have searched for it alot and never found a guide or a tutorial on how to do it except just demos.
@cbm80amiga
@cbm80amiga 4 года назад
Look at the code of my projects. In case of MCUs you need to use some RAM as a buffer and draw small part of the screen there then copy it via SPI to LCD
@Ahmadnaweed786
@Ahmadnaweed786 4 года назад
@@cbm80amiga although it's not that easy but I will try
@g992_r
@g992_r 4 года назад
Раз ты из польши, рискну спросить на русском, не работаешь ли ты с stm32 и st7735 не в arduinoIde? хотелось бы эти библиотеки увидеть для keil/cubeide
@bitman4204
@bitman4204 3 года назад
wow, it's a very impressive project
@franciscocolli6671
@franciscocolli6671 4 года назад
Nice, i was looking for a channel with stm32 content. i found yours and its the best!! Do you have in mind doing tutorials?
@jjjjjj2355
@jjjjjj2355 3 года назад
Eres el mejor nuevo sub.
@tech1706
@tech1706 2 месяца назад
How do I convert video to raw format??
@hi-vb9yw
@hi-vb9yw 3 года назад
Is it possible to learn that power
@rajeshmurthy3083
@rajeshmurthy3083 4 года назад
I am relatively new to this, just wanted to know how do you convert a video (mp4) shot with a mobile phone camera to raw format compatible with this?
@cbm80amiga
@cbm80amiga 4 года назад
Use ffmpeg
@andreidaniel9499
@andreidaniel9499 4 года назад
Oh my God , thst is beautiful. If only I didn't know how much work that takes . Can you please tell me what spi clock you re using ?
@cbm80amiga
@cbm80amiga 4 года назад
Look at the description for more details :)
@hi-vb9yw
@hi-vb9yw 3 года назад
Is there a way to use 5 button as a joysctick button (can u name the joysctick button if only works with it)
@svsvsvvbb
@svsvsvvbb 4 года назад
Witam, po kompilacji widzę nieścisłości: *przy wyświetlaniu pliku tekstowego obcinany jest ostatni znak *podczas otworzenia pliku jpg procesor zawiesza się *odtwarzane jest poprawnie wideo, obraz przechodzi z dołu do góry cały czas jak w starych telewizorach ale odtwarza się. Jakieś sugestie w rozwiązaniu problemów? Sprawdzałem z innymi kartami oraz mnożnikami SPI 36, 18, 9 ale bez efektu...
@mehdisoheili8965
@mehdisoheili8965 4 года назад
god job man!
@raylisistemmuhendisligi2721
@raylisistemmuhendisligi2721 4 года назад
Hi! Nice work ..This is amazing for me..Can you share with keil project about this videos..
@Latvian3Dman
@Latvian3Dman 4 года назад
Cool thing! :)
@dmitr8194
@dmitr8194 2 года назад
Great!
@NerdsMakers
@NerdsMakers 4 года назад
have you ever experimented with round TFT LCDs?
@dsparagraph
@dsparagraph 4 года назад
Greats work! Can it play music? Сan it works on the ESP8266 or ESP32?
@franciscocolli6671
@franciscocolli6671 4 года назад
Exellent work!! Could you make a stm32 car GUI? including audio and menus
@sibunadrol3639
@sibunadrol3639 3 года назад
I have tried everything, Got all the libraries installed, everything, wired up everything, nothing works. The .ino does not compile, it just has error after error about sdfat and wire.h Seeing as no one else has gotten this project to work, I really think this is some sort of joke on people.
@nsskye30
@nsskye30 4 года назад
great. good jop!! 👍
@bighamster2311
@bighamster2311 4 года назад
It is very cool. What do you think about writing a complete program for a device so that it can be made and used?
@cbm80amiga
@cbm80amiga 4 года назад
What do you mean by complete program? Current code is actually finished, it supports 3 file types. If anyone doesn't want to play with IDE and compilation I even prepared bin ready to flash.
@bighamster2311
@bighamster2311 4 года назад
@@cbm80amiga I understand, I mean all subsequent projects.
@somebody6590
@somebody6590 Месяц назад
Hi, great video sir! But can you help me out with this line? 'Arduino_ST7735 = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS);' it has some problem. Would be very grateful if you can
@cbm80amiga
@cbm80amiga Месяц назад
Use ide 1.6.5 then it should compile
@leandrogoethals6599
@leandrogoethals6599 3 года назад
if u make tuturial ill buy u coffee
@karanrao6818
@karanrao6818 4 года назад
error compiling for generic f1 board. Please help
@cbm80amiga
@cbm80amiga 4 года назад
Use Arduino IDE 1.6.5 and Roger's stm32duino
@fellowmean5
@fellowmean5 4 года назад
Hi,the project is amazing.But i have 1 question: Can i watch and listen video? Can you add Please audio support ,and 3.5 mm jack to connect headphones?
@cbm80amiga
@cbm80amiga 4 года назад
I'm not going to add audio but it is possible to do. You have the source code available, feel free to modify it.
@fellowmean5
@fellowmean5 4 года назад
@@cbm80amiga Thanks
@bodzio_stawski187
@bodzio_stawski187 4 года назад
Hello, how to connect SD card (pinout) to STM32 and to the display at the same time?:)
@vsolntsev
@vsolntsev 4 года назад
you may connect SD: CS, SCK, MISO, MOSI to PB12-PB15 accordingly
@fellowmean5
@fellowmean5 4 года назад
hi,thanks for project,but I have a problem,when I trying to compile sketch the Arduino ide type me this: ST7735_SDMediaPlayer:108: error: invalid conversion from 'int' to 'SPIClass*' [-fpermissive] In file included from ST7735_SDMediaPlayer.ino:102:0: C:\Users\fellowmean5\Documents\Arduino\libraries\SdFat-master\src/SdFat.h:319:12: error: initializing argument 1 of 'SdFat::SdFat(SPIClass*)' [-fpermissive] explicit SdFat(SPIClass* spiPort) { ^ invalid conversion from 'int' to 'SPIClass*' [-fpermissive] And when I trying to upload using stm32 flash tool,i have only white screen.Can you please help me.Thanks
@cbm80amiga
@cbm80amiga 4 года назад
Make sure you use Roger's stm32duino and compatible libraries. I used Arduino IDE 1.6.5. Other versions can be not compatible.
@fellowmean5
@fellowmean5 4 года назад
cbm80amiga thanks
@fellowmean5
@fellowmean5 4 года назад
cbm80amiga yes,i have rogers,and also I have an arduino 1.6.5 r5,and I have installed the sdfat library from your github,but it doesn’t working.Can you help me please?Or can you please make a video instruction how to install stm to arduino ide and how to load scetch
@cigarnuuskii
@cigarnuuskii 4 года назад
Can you do a tutorial
@bjordin9460
@bjordin9460 4 года назад
Sir, I have a problem. on the 7735 lcd there is a File System initialization failed notification (backgorud magenta color) --> sd.fsBegin how to solve it, sir..
@cbm80amiga
@cbm80amiga 4 года назад
Try to use 18MHz SPI speed for SD card. If doesn't help change SD card. Maybe you don't use FAT32 format.
@bjordin9460
@bjordin9460 4 года назад
@@cbm80amiga I always use the FAT32 format, sir .. then what format should I change to this SDcard?
@cbm80amiga
@cbm80amiga 4 года назад
@@bjordin9460 FAT32 is ok
@BerndSchmitt-Martinique
@BerndSchmitt-Martinique 3 года назад
You are always one mile ahead of the rest.
@JO-do8xh
@JO-do8xh 2 года назад
Very nice. I would like to recreate it, but I get the following error while compiling: ST7735_SDMediaPlayer:79:1: error: 'Arduino_ST7735' does not name a type; did you mean 'Arduino_h'? in this Line: Arduino_ST7735 = Arduino_ST7735(TFT_DC, TFT_RST, TFT_CS);
@somebody6590
@somebody6590 Месяц назад
Having the same error, nothing is able to solve it, chatgpt, copilot nothing. By chance were you able to?
@JO-do8xh
@JO-do8xh Месяц назад
@@somebody6590 Nein, ich bin leider auch nicht weitergekommen und habe aufgegeben.
@somebody6590
@somebody6590 Месяц назад
@@JO-do8xh oh, I see. No problem, but I just put the same problem in the comments section of this video itself and the uploader replied that it only compiles in 1.16.5 version of Arduino ide. I hope it helps you out and best of luck if you decide to try it again!
@paulkirchhof9546
@paulkirchhof9546 3 года назад
Great, did you know transferring this to an ESP32?
@cbm80amiga
@cbm80amiga 3 года назад
Sorry, I don't have such plans
@ConsequenceCode
@ConsequenceCode 3 года назад
Hello, I tried the same project, for code I went to the link provided by you in the description I clicked and download and I opened in Arduino IDE when I compiled I have so many problems even I installed every library used in the program but also I have compiling errors please you can help me
@cbm80amiga
@cbm80amiga 3 года назад
I used Arduino IDE 1.6.5 and Roger's STM32duino. Newer versions are probably incompatible. All my libs are at my GitHub. I used Sdfat library with STM32 support too.
@ConsequenceCode
@ConsequenceCode 3 года назад
@@cbm80amiga thanks for replying me
@bitfexl
@bitfexl 3 года назад
dont even bother trying. its fake
@cbm80amiga
@cbm80amiga 3 года назад
@@bitfexl You got me, under the table there is regular PC powering this LCD :)
@sibunadrol3639
@sibunadrol3639 3 года назад
@@cbm80amiga It just does not work. I have tried multiple versions of SDfat, etc. Nothing works, keeps giving SDfat errors about no .vwd
@bacem1439
@bacem1439 3 года назад
code for card stm32 pls
@cbm80amiga
@cbm80amiga 3 года назад
The code is available in the description
@bacem1439
@bacem1439 3 года назад
@@cbm80amiga this for arduino! i would like for stm32f4
@jhonnyx161
@jhonnyx161 3 года назад
how you created raw video?
@cbm80amiga
@cbm80amiga 3 года назад
Use ffmpeg
@jhonnyx161
@jhonnyx161 3 года назад
@@cbm80amiga what is the exact string to convert avi to raw
@cbm80amiga
@cbm80amiga 3 года назад
@@jhonnyx161 It's mentioned in the description :)
@rainnyfromdwin4352
@rainnyfromdwin4352 Год назад
We would like to send you free samples and pay you for videos as sponsor.
@DanielM-bo9wy
@DanielM-bo9wy 4 года назад
Pana projekty z STM32 bardzo mi się podobają. Niestety nie udało mi się ich uruchomić - zapewne pobrałem niewłaściwe biblioteki. Kompilacja w środowisku Arduino 1.8.8 kończy się błędem (jakiś konflikt SPI). Mając na karku 70 ma się też trudności z angielskim itp. Próby rozwiązania problemu zajmą mi zapewne mnóstwo czasu, a tego już nie mam za wiele. Gdyby możliwa była pomoc z Pana strony .... Na wszelki wypadek podam swój adres daniel_m@vp.pl
@cbm80amiga
@cbm80amiga 4 года назад
Ciagle korzystam z IDE 1.6.5 oraz stm32duino (Rogera). Nie przesiadam sie na nowe IDE, bo mam zbyt wiele projektow i chce zeby sie poprawnie kompilowaly. Ale mozna rownolegle zainstalowac sobie dowolne inne IDE i powinno zadzialac. Sam mam jeszcze jakies starozytne 1.0.5, bo czesc starych projektow wymagala starych bibliotek. Nie podoba mi sie w jakim to idzie kierunku. Wprowadzane jest zbyt duzo rewolucyjnych zmian zamiast trzymac sie zgodnosci z zalozonym na poczatku standardem.
Далее
STM32 + LCD TFT = Display Any Data
17:28
Просмотров 13 тыс.
Streaming Video From an SD Card on the ESP32.
5:48
Просмотров 26 тыс.
Analog Watch/Clock with STM32 RTC and ST7789 IPS LCD
3:34
It's time for change, it's time for Linux.
10:53
Просмотров 216 тыс.
ST7735 1.8" TFT Display and STM32 || HAL
8:38
Просмотров 39 тыс.
The Microspheres Hiding in your Phone's Screen
11:09
Просмотров 786 тыс.
3D Filled Vector Graphics on STM32 and ST7735
4:32
Просмотров 10 тыс.
Home Assistant Control Panel For My Wall
11:19
Просмотров 243 тыс.