USB I/O devices with STM32F4 MCU / STM324xG-EVAL Boards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 12:35 AM
I was wondering if it is possible to connect a USB microphone using USB-OTG to an STM324xG-EVAL board and then read the data coming in from that microphone? I looked through the examples that STM has for the USB-HOST class and it seems like most of the projects/examples done in the past are catered towards output devices so I was wondering if it is possible to read data from an input device and if so how that is possible?
Appreciate the help!
- Labels:
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 4:31 AM
Yes, as you've seen, it can act as host and you can connect a device to it and read data. The examples demonstrate how this is possible. There is also some documentation on the USBH library, not much though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 4:01 PM
I did see the examples in the STM firmware that shows how to use the board with audio host as an audio standalone. But that has to do with outputting data to the speakers from the board. I did not see any examples on using a microphone or something else to read data into the board. If you know where these examples you mention are could you please link it. It would be very helpful! Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-11 4:13 PM - edited ‎2024-04-11 4:13 PM
Would you like to use MEMS microphones instead of USB? ST makes them and has eval. boards and examples.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-12 9:23 PM
Unfortunately I am required to use a USB microphone for the application that I am trying to build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-13 12:48 AM
So you picked the most difficult USB host - audio host - with only one example by STM , that only can enumerate a headphone set. (almost useless...)
The only audio host, i found and could get running (on H743 and H563-nucleo) is with Azure rtos , see :
I needed about 2 weeks, to get it running . So - good luck !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-04-13 1:24 AM
Or you can place between some IC that support USB Audio for example XMOS or TI
