WAVEPLAYER using STM32 || I2S AUDIO || CS43L22 || F4 DISCOVERY

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • Purchase the Products shown in this video from :: controllerstec...
    ________________________________________________________________________________________
    To download the code, goto controllerstec...
    Check out more VIDEO on USB with STM32 • STM32 USB
    ________________________________________________________________________________________
    ****** SUPPORT US BY DONATING*****
    paypal.me/cont...
    ******Join the Membership******
    / @controllerstech
    Join the Discord Server / discord
    Join the Telegram Group t.me/controlle...
    Follow me on Instagram / controllerstech
    For more info, visit www.controller...

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

  • @simonescaravati7218
    @simonescaravati7218 6 หลายเดือนก่อน

    I know it's an old video and my question is OT... BUT: How did you set the STM32CubeIDE theme like that dark mode??? it's the only eclipse dark mode that i've seen really working fine!! btw great video as always man

    • @ControllersTech
      @ControllersTech  6 หลายเดือนก่อน +1

      Go to eclipse marketplace and download "darkest dark" theme.

    • @simonescaravati7218
      @simonescaravati7218 6 หลายเดือนก่อน

      @@ControllersTechi'm pretty sure that yours looks better, but i'll give it a try, thanks

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

    Thanks for the video, «muy explicativo»

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

    Great video. A lot more processing than I need, but it will help me learn what I need to do. I am building a sound card for a pinball machine. The pinball machine sends my processor a byte indicating what sound it wants played. The sounds are all on the sd card in small files names 001.wav, 002.wav, etc. All files are the exact format - 44k sample, 16 bit. mono. If the pinball machine sends a 0x01 byte, the player plays 001.wav. If the pinball machine sends a new request while a sound is playing, it stops the previous sound and starts the new one. That's it - that's the entire application. Should be fairly easy. Unfortunately, I am not really a programmer and I have done all my previous work in the Arduino IDE which does a lot of the work for you. But, I can't fine any libraries for I2S on STM32F411, so that's why I am looking at the Cube IDE.

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

    I'm stuck at the hello world part of it... can you recommend a 101?

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

    Hi
    You are using the discovery f4, and the microcontroller is 407vg, but in your tutorial you select 411ve
    Ia that true ?

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

      I am using 411ve. But i have checked the 407vg schematics and they are both same in terms of audio drivers. So this should work with 407vg also

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

      @@ControllersTech hi, I'm also using discof407vg and i have some issue in clock configuration...!
      actually i can't set frequencies just like the video...!
      can you check it please...??!

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

      what you mean you can't set ?
      run the mcu at 168 MHz and the rest will set up on it's own

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

      good day, I also use the stm32f407 and I did everything that I recommend but nothing I can not play any audio can you help me please

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

    Could do some tutorial about SAI?

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

    Sir I use Keil and it gives me "the code size of this image exceeds the maximum" error.What should I do?

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

      Free version of keil ?

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

      @@ControllersTech yes.

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

      Free version has size limit. You can't run this..

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

      @@ControllersTech what can I do?Should I use another IDE but Keil?

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

      You can use cubeIDE or use paid version of keil
      There are others like IAR, truestudio. The choice is yours.. I would recommend cubeIDE though as it's officially provided by ST

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

    Hello,
    Is it possible to import libraries of devices writen for arduino to use them for the STM32 under Hal environnement? it seems they are writen in C++.
    I have looked a bit into embed environnement for stm32 and it seems there is a lot of libraries as well. Those might be interesting to convert and use for STM32 with hal libraries.
    Is it possible to do it?

    • @ControllersTech
      @ControllersTech  3 ปีที่แล้ว +4

      We wish.. life would be so easier that way 🙂

  • @ВладГлущенко-з3г
    @ВладГлущенко-з3г 3 ปีที่แล้ว +1

    Thank you! So, can we filtering signal (e.g. FIR filter) using this codec or somehow else . Before output

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

    Your'resuperb !!

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

    Thank You 🤗

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

    Really appreciate these videos!

  • @ESEben10
    @ESEben10 7 หลายเดือนก่อน

    Trying to implement this same example on F7 , but without any success, although the examples are very similar. Do you have any video covering the audio example on F7 boards? I can't find any useful material concerning this. Thank you for the clear tutorial.

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

    Hi @ControllersTech, i am facing issue with the sound. It's like saturated and it's not my file that is played. Have you any ideas ?

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

    can you please add video for audio codec WM8994ECS/R used for stm32f746G series discovery board

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

    I did everything same system works properly and wtihout error but i can hear voice from stm by the way i am using stmf407-disc i need your idea.Thank you for your attention

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

    thank you

  • @jesusmanuelllaiquiflorez3124
    @jesusmanuelllaiquiflorez3124 11 หลายเดือนก่อน

    Hello again, I would like to inquire if you have conducted tests with the MAX98357?

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

    Please , Can you do a similar example on stm3240-eval board ?

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

    thank you for the video...! your videos are really helpful...

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

    Thanks for the video, I'm having an error on this line of code " if (ld_word(fs->win + BS_55AA) != 0xAA55) return 3; /* Check boot record signature (always placed here even if the sector size is >512) */"
    This returns FR_NO_FILESYSTEM as if no FAT volume is found. Mine is formatted into FAT32 with cluster size of 4kB. Are there any things I should be careful about like size of the USB stick or something like that ?

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

      I found the fix to this, it was due to my USB stick using the GPT partition type instead of the MBR one that is needed

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

    Excellent video, I followed all the steps but for some reason, my STM32F407 Discovery is not recognizing the USB, I'm using a 16 Gb USB 2.0. the LD7 is not turning on and in debugger, the code is not recognizing the USB. What could be the reason?
    I solved! for some reason my USB micro port wasn't providing a voltage output to feed the USB, so, I solder a 5v power supply to the USB and worked! but... why the USB micro port of my stm 32f407 discovery is not providing the voltage outputfor feed the USB?
    I'm leaving this comment in case that someone else suffer the same issue

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

      You need to enable the power supply. It is controlled by a particular pin. Check schematics to see which pin controls it. I have explained it in the video.

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

    I can do this on STM32F746ZG Nucleo? I have an external audio amp and speaker, audio file stored on board.

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

      This one is written exclusively for cs43l22 audio codec like i have mentioned in the video

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

      @@ControllersTech What should I research to learn to do this with my board and items?

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

    Hello, excellent video, I would like to see if you have tried playing from an SD memory.
    Could I use the same logic that you used in this project?
    Greetings from Cusco, Peru.

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

      Yes of course. I once made a project with sdcard and used the same logic. It works fine

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

    Please make a tutorial video on STM32 DCMI

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

    Seriously interesting

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

    How can I change the code to relay mp3 files?

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

      You need to use external codec. As this one only supports WAV files

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

    Can I use this with uda1334a?

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

      Most probably not.. check the codec parameters. if they are similar, ypu can try

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

    This has any github link to know notes

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

      what notes ?
      the link in the description leads to the article.. if that's what you are looking for

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

    sorry but i failed at error: 'RCC_PLLI2SInitTypeDef {aka struct }' has no member named 'PLLI2SM'; did you mean 'PLLI2SN'?

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

      Which mcu ?

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

      @@ControllersTech i used stm32f407vg

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

      you can for me a facebook to talk a bout that problem

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

      No Facebook here.. contact me on telegram..

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

    Hi, do you using any ST-LINK device to upload the program? Or you made any videa about it? I cannot program debug my stm bc of missing ST-LINK. Thanks in advance

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

      The st link is inbuilt in the discovery and nucleo boards. What board are u using ?

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

      @@ControllersTech Im using the stm32f103c8t6 if this is what you mean

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

      1. Yes you need to purchase a ST link for f103c8.
      2. This video won't work on your mcu. F103c8 does not support USB host.
      3. F4 discovery is mentioned in the video title.

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

      @@ControllersTech Oh sorry i commented on a wrong video, I was making the HID mouse with the stm32 but thanks for info

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

      @@ControllersTech Any recommendation for STLINK?

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

    Can you make sound recorder with i2s sound wav file to save on usb or sd card with sdio or spi on stm32 discovery. it can be very helpful

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

      Yeah I'll work on it.

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

      @@ControllersTech thank you very much also will it come stm32 ethernet server client example on next video?

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

      Don't have the board with ethernet. So not anytime soon..

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

    I'm getting duplication of the MspInit/DeInit functions for i2s & i2c, listed in 'i2c.c'/'i2s.c' and 'stm32f4xx_hal_msp.c', I'm using the F411 Disco & STM32CubeIDE 1.5.1

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

      Wait I'll recheck the code and update you. Maybe ST have modified few things again..

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

    Oh Dude. Thanks I have done it. It works, although a get so many problems in syntax (AUDIO.C - rccclkinit.PLLI2S.PLLI2SM = 8; - UNKNOWN).
    Trial error is exhausting. But, it's fun.
    THANK YOU :)

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

      I think that error comes in f407. But as i mentioned, you just need to comment it out

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

      @@ControllersTech Yeah, I used STM32F407VG. Anyway., I am doing my FIR project using Band Pass Filter to detect audio from knocking coconut. My final purpose is to detect ripe coconut.
      Could you suggest me?