STM32 HAL with CubeMX: Tutorial 43 - WAV Player from USB Disk

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 87

  • @bananago3382
    @bananago3382 3 ปีที่แล้ว +5

    The best tutorial for the stm32 that I found: very clear, step by step and from the scratch. Thumb up!

  • @rodryford98
    @rodryford98 3 ปีที่แล้ว +1

    Mohamed (I hope it's written like this), you are the best dude, thank to you i have fallen in love with stm32 and all of its possibilities. Just thank you

    • @mutexembedded2206
      @mutexembedded2206  3 ปีที่แล้ว +1

      :)
      Got lots of new tutorials for you later this year.

  • @ahmedfarjallah8085
    @ahmedfarjallah8085 4 ปีที่แล้ว +5

    Thank you. these tutorials have been so helpful from me learning the stm32. can you do something with LabVIEW and stm32

  • @MrVladkk
    @MrVladkk 8 หลายเดือนก่อน

    Good afternoon! Thank you for your video and tutorials.

  • @yulianz_
    @yulianz_ 3 ปีที่แล้ว +1

    Thanks a million. That's a great explanation.

  • @burakcakir50
    @burakcakir50 4 ปีที่แล้ว +1

    Thank you for this excellent work :)

  • @MrVentran
    @MrVentran 4 ปีที่แล้ว +2

    Perfect tutorial. Thank you. Do you have a advanced knowledge about RTOS? I looking for a video tutorials.

    • @mutexembedded2206
      @mutexembedded2206  4 ปีที่แล้ว +2

      Hi Mr Lee, I do plan in making OS series at sometime

  • @minou0060
    @minou0060 3 ปีที่แล้ว +1

    Hello,
    I would like to know if it is possible to help me?
    Is it possible to add a variable allowing to vary the reading speed? Like a pitch for example?
    And also to be able to do reverse playback ?
    Thanks for your help.

    • @etiennestehelin3171
      @etiennestehelin3171 2 ปีที่แล้ว

      did you ever get that working? I would like to try the same...

    • @minou0060
      @minou0060 2 ปีที่แล้ว

      @@etiennestehelin3171 No, not yet.

  • @farazkhan9665
    @farazkhan9665 4 ปีที่แล้ว +1

    sir can i save wav file in window pc instead of flash drive.

    • @mutexembedded2206
      @mutexembedded2206  4 ปีที่แล้ว

      Yes, perhaps through USB or UART

    • @farazkhan9665
      @farazkhan9665 4 ปีที่แล้ว

      @@mutexembedded2206 ok sir, But i don't think UART can achieve sufficient baud rate to transfer audio data. so it will be helpful for me if you can guide me for USB. How can PC save file from USB. Thank you.

  • @ahmadfahimi6942
    @ahmadfahimi6942 4 ปีที่แล้ว

    Hello, Engineer Mohammad Yqoob. Thanks for your tutorial files. Please teach USB mass storage. As a card reader

  • @bacem1439
    @bacem1439 3 ปีที่แล้ว

    can i detect object and read a sound name of this object?

  • @yassin5568
    @yassin5568 4 ปีที่แล้ว +1

    Salam Mohammed
    Ramadan Karim
    can you tell me please , how can i change timer period of timer-Interrupt while running the Code(from While-loop)?
    I tried to change the value of the period from the while-loop with this line(TIM2->ARR = 25; ), but the LED blinks (with delay) just for 3-4 clicks und stops .
    can please help me, i will be very gratfull
    thank you

    • @mutexembedded2206
      @mutexembedded2206  4 ปีที่แล้ว

      Using auto reload is the way to change timer period. But need to ensure you are doing it right.

    • @yassin5568
      @yassin5568 4 ปีที่แล้ว

      @@mutexembedded2206 Ah ok, is there any problem by using it ? Thank you Bro

  • @gautrstafr
    @gautrstafr 3 ปีที่แล้ว

    Nice Tutorial! One question, how can I calculate how much RAM is used when reading/streaming the WAV file? I was wondering if you could stream the WAV file and do other stuff at the same time.

    • @mutexembedded2206
      @mutexembedded2206  3 ปีที่แล้ว +1

      RAM usage is the circular buffer size only. Yes you can have CPU does other things too, can use RTOS for multiple threads

    • @gautrstafr
      @gautrstafr 3 ปีที่แล้ว

      @@mutexembedded2206 interesting, is there any way to calculate buffer size? I imagine it's something based on the WAV's properties that you select on the conversion.

  • @sagark2686
    @sagark2686 4 ปีที่แล้ว +1

    Sir,
    Please give a code for recording and play wav file without using audio codec

    • @mutexembedded2206
      @mutexembedded2206  4 ปีที่แล้ว

      You can direct Audio to Analog output instead of I2S

    • @sagark2686
      @sagark2686 4 ปีที่แล้ว

      @@mutexembedded2206
      Sir,I have required to ADC data convert into .wav file

  • @pusatberk4193
    @pusatberk4193 4 ปีที่แล้ว +1

    Thank you !

  • @firas_firas7908
    @firas_firas7908 4 ปีที่แล้ว +1

    استاذ محمد اود التواصل معك لو سمحت الرجاء الرد في اقرب وقت ممكن

    • @mutexembedded2206
      @mutexembedded2206  4 ปีที่แล้ว +1

      مرحبا .. طرش لي ايميلك

    • @firas_firas7908
      @firas_firas7908 4 ปีที่แล้ว

      @@mutexembedded2206 كيفيه التواصل معك عبر ايميلك قمت بالبحث عنه و لم اجدة

  • @iftikharomar5513
    @iftikharomar5513 3 ปีที่แล้ว

    Amazing. Request: Please help do the same using "SD Card Module" instead of "USB".

  • @naasikhendricks1501
    @naasikhendricks1501 4 ปีที่แล้ว +1

    Ramadan Kareem

  • @Mohamed_Ali-24M
    @Mohamed_Ali-24M 4 ปีที่แล้ว

    Please make projects not explain only 😍😍😍

  • @jenskapmeyer2579
    @jenskapmeyer2579 2 ปีที่แล้ว +3

    Great tutorial, thank you! To me it is a miracle how to know about all the settings that have to be made, I never could do this on my own ...

  • @TN_1405
    @TN_1405 3 ปีที่แล้ว +2

    #define MODE_ANALOG 0x00000003U /*!< Analog Mode */
    Description Resource Path Location Type
    expected identifier before numeric constant stm32f4xx_hal_gpio.h /Wav Player/Drivers/STM32F4xx_HAL_Driver/Inc line 267 C/C++ Problem
    what's the problem here?

    • @alati3521
      @alati3521 3 ปีที่แล้ว +2

      I just changed MODE_ANALOG => MODE_ANALOG1, in CS43_MODE enum and it solved the issue. Is it correct Mr Yacoob?
      //1. Mode Select Enum
      typedef enum
      {
      MODE_I2S = 0,
      MODE_ANALOG1,
      }CS43_MODE;

    • @etiennestehelin3171
      @etiennestehelin3171 2 ปีที่แล้ว

      @@alati3521 WOW that worked for me too. Thank you so much for sharing!!!

  • @mohamednacersayahi9001
    @mohamednacersayahi9001 4 ปีที่แล้ว +2

    great job yacoub please more videos with this version of cubemx because is little bit different from the version used on the other videos

  • @zessymansel5504
    @zessymansel5504 2 ปีที่แล้ว +1

    Hi, my audio is not playing although led status is changing properly on pause/resume and start. Mounting/Unmounting led status is also toggling properly. Even i removed my wav file from pendrive it still status led working on pause/resume and start.

    • @KhangLe-ew5ok
      @KhangLe-ew5ok ปีที่แล้ว

      Same thing here :( .Did you resolve that problem?

    • @bayramcolak8674
      @bayramcolak8674 ปีที่แล้ว

      I have that same problem. did you find a solution

  • @roboguide-poradnikipl6715
    @roboguide-poradnikipl6715 4 ปีที่แล้ว +1

    I have a problem with find a 1-2-4Gb flash drives. Can I use a 8 or 16 or 32 Gb flash drive or it is too much?

  • @OversoulD
    @OversoulD 4 ปีที่แล้ว +2

    you Saved my BUTTTT

  • @brijeshkhokhar
    @brijeshkhokhar 4 ปีที่แล้ว +2

    After a very log time. It's good to see you again. Always a great videos !!!

  • @eduardodelarosaferrer2205
    @eduardodelarosaferrer2205 4 ปีที่แล้ว +2

    You are simply the best

  • @sinanyavas5974
    @sinanyavas5974 4 ปีที่แล้ว +1

    33.01 there should be an else on line 168? Or am I wrong. Thanks for sharing btw.

  • @tariqjameel6862
    @tariqjameel6862 วันที่ผ่านมา

    hi ,thanks for great video,i have one issue that my song is being played in fast speed,3 mins song ends in 1.5 minutes ,what can be the possible issue

    • @tariqjameel6862
      @tariqjameel6862 วันที่ผ่านมา

      my issue is resolved by changing wav resolution to 16bits

  • @RiyadhElalami
    @RiyadhElalami 3 ปีที่แล้ว +1

    Mohammed, I LOVE YOU.....

  • @sofienjbali1424
    @sofienjbali1424 4 ปีที่แล้ว +2

    thanks for the tutorial was very helpful for my engineering class project

  • @shankarramdurg2644
    @shankarramdurg2644 ปีที่แล้ว

    can you provide videos for ri2s slave role transmit

  • @mrbeassssst604
    @mrbeassssst604 ปีที่แล้ว

    Any one can help me to complete this project ? i will pay for it

  • @minou0060
    @minou0060 3 ปีที่แล้ว +1

    Hello, is it possible for us to do the same with a STM32F746NG Disco ?
    Thank you.

    • @mutexembedded2206
      @mutexembedded2206  3 ปีที่แล้ว

      yes, you need to change Codec api layer

    • @minou0060
      @minou0060 3 ปีที่แล้ว

      @@mutexembedded2206 How do we do it ?

    • @mutexembedded2206
      @mutexembedded2206  3 ปีที่แล้ว

      @@minou0060 it is not too beautiful at first, you need to use ST example and make library more "Human usable". Then link to my api above. start with board examples for Codec Audio.

  • @romiolover6852
    @romiolover6852 4 ปีที่แล้ว +2

    i gave you a big like even before seeing the video :)

  • @Engineer_Valat
    @Engineer_Valat 4 ปีที่แล้ว +1

    You are The BEST !

  • @egexyz6530
    @egexyz6530 3 ปีที่แล้ว +1

    Hey , can i ask a question

  • @hassanahmad4776
    @hassanahmad4776 4 ปีที่แล้ว +1

    Salam,
    Yaqoob i was watching your ENC28J60 3 year old video. I did not find your last part. is it missing or you haven't made it. Jazakallah.

    • @pusatberk4193
      @pusatberk4193 4 ปีที่แล้ว

      No missing video in this channel. th-cam.com/video/A4c0nJudOI0/w-d-xo.html

    • @mutexembedded2206
      @mutexembedded2206  4 ปีที่แล้ว

      Hi Hasan,
      I stopped working on that, I was at Uni. I am planning to make a better series about STM32 Ethernet

    • @spiralsheepdoll
      @spiralsheepdoll 4 ปีที่แล้ว

      If you look at my notes under the ENC208j60 I managed to get iENC28j60 to work using the arduino libraries and posted the code to github. Even easier now if one is using an eclipse based IDE like SW4Stm32. This has a button called convert project to C++. Then one can directly use the arduino libs with minimal modifications. Better is to use one of the supported PHY chips on a board that supports a PHY.

  • @TheAbhro
    @TheAbhro 4 ปีที่แล้ว +1

    awesome

  • @hassanahmad4776
    @hassanahmad4776 4 ปีที่แล้ว +1

    Appreciate your work. :)

  • @slavago_1
    @slavago_1 2 ปีที่แล้ว

    Hello, thank you for the tutorial ! I would like to know what type of filesystem you have used on a USB-drive, FAT32 or exFAT ?

  • @STM32Tutorials
    @STM32Tutorials ปีที่แล้ว

    Nice!

  • @gautombose4172
    @gautombose4172 4 ปีที่แล้ว

    Can you please do a tutorial for STM32CUBEIDE and 16x2 line LCD Display with Large FONTS.

  • @braintraining2894
    @braintraining2894 10 หลายเดือนก่อน

    Actually , I have a problem , probably you can help me with , I m trying to read wav files as you did with the usb storage , this time I m trying to do it with sd card module that works with spi , the code works fine ...it reads the wav file ...but ...I hear nothing...

    • @braintraining2894
      @braintraining2894 10 หลายเดือนก่อน

      The I2S frequency is 44 KHz as you did , my wav files has 16 bits and 44khz frequency ....

    • @braintraining2894
      @braintraining2894 10 หลายเดือนก่อน

      Y

  • @tomaserjavec6371
    @tomaserjavec6371 3 ปีที่แล้ว +1

    Hi Mohamed, I copy the code exactly as you detail in the video and the first led shows the correct connection of the USB but seems that never enters the second loop where the USB drive is read... do you have this problem in the developing stage? Thanks for the support

    • @mutexembedded2206
      @mutexembedded2206  3 ปีที่แล้ว

      Can you debug and find out where exactly it got stuck.
      Tip: check you USB fread/fwrite functions first to ensure your FatFs is setup correctly in the first place

    • @tomaserjavec6371
      @tomaserjavec6371 3 ปีที่แล้ว

      Hi@@mutexembedded2206 where it got stuck is in the line137 - if(Appli_state==APPLICATION_READY) as the Appli_state never changes from APPLICATION_START to APPLICATION_READY therefore never even use the f_mount function (as not get into that loop). From that line then start the while (1) again.

    • @mutexembedded2206
      @mutexembedded2206  3 ปีที่แล้ว

      @@tomaserjavec6371
      Hi Tomas,
      Send me a cloud link to your project, I will take a look.

    • @tomaserjavec6371
      @tomaserjavec6371 3 ปีที่แล้ว

      @@mutexembedded2206 Hi Mohamed I've been trying and the problem seems to be the VBUS as the PC0 was not activated (I've to do it by myself in CubeMX) now the LED's are correctly working.

    • @tomaserjavec6371
      @tomaserjavec6371 3 ปีที่แล้ว

      The problem now is that I cannot get any audio output from the USB... can you please detail in which buffer is stored the data from USB in order I can check it in the debugging mode?

  • @pusparinia8792
    @pusparinia8792 4 ปีที่แล้ว

    has there ever been a stm32f407 programming tutorial for seven segment?

  • @sofienjbali1424
    @sofienjbali1424 4 ปีที่แล้ว

    Source code is not found can you upload it again

  • @tomaserjavec6371
    @tomaserjavec6371 3 ปีที่แล้ว

    Hi, thank you for the video! Should I have stored in the USB a file called "Iraqi2.wav" in order to correct playing the audio?

    • @RiyadhElalami
      @RiyadhElalami 3 ปีที่แล้ว

      Yes, how did you think it is gonna go if you don't

  • @arabiyasoft6716
    @arabiyasoft6716 4 ปีที่แล้ว

    Thank you for this excellent work :)