2022-05-23 10:09 AM
Actually, my aim is to get data from a digiducer sensor with STM32F0 via USB port and can't understand how.
2022-05-24 08:48 AM
@amlok.1 "Do you know an MCU that can get this data for my sensor via USB"
Finding an MCU is the easy bit!
You can look on the ST Product Pages; eg,
although, from that, it looks like F0 has only USB Device?
So look at the other families...
Having found an MCU with the hardware facilities, you're then going to have to develop the firmware for communicating with this sensor.
Do you know what USB Class your sensor presents, and how to communicate with it over USB?
Do you really need to use an MCU, or would Raspberry Pi or similar be more appropriate?
Do you really need to use a USB sensor?
2022-05-24 08:51 AM
Why have you selected this particular sensor?
Why does it have to be connected to an MCU? Presumably it's intended for connecting to a computer...
"suggest me a host that can work among the STM MCUs"
There are parametric search facilities on the ST website - see above.
2022-05-24 09:04 AM
@Andrew Neil I didn't select it, it's the existing one that has USB connector only.
why MCU? I'll stock data there in order to send it after by Bluetooth to PC.
2022-05-24 03:44 PM
actually, this is the link of our USB sensor: 333D01-Digiducer-Industrial-Datasheet-(DS-0180_A4).pdf
it's a USB 2.0 full speed with 24 bits and it has the same characteristics as Microphone USB. the same pilot in windows can activate them.
I was searching in the libraries of STM32F4 and found this : STM32Cube USB host library , but it doesn't detail how to get the recording data from the USB device.
is there any help here?
2022-05-24 04:36 PM
You didn't actually give the link!
Google suggests this:
http://www.modalshop.com/filelibrary/333D01-Digiducer-Industrial-Datasheet-(DS-0180_A4).pdf
https://digiducer.com/products/digital-usb-accelerometer
Is that the one?
UM1720 - User manual for the STM32Cube USB host library:
UM1021 - STM32F105/7, STM32F2 and STM32F4 USB on-the-go Host and device library:
https://www.st.com/en/embedded-software/stsw-stm32046.html#documentation
Middleware USB Host MCU Component:
https://github.com/STMicroelectronics/stm32_mw_usb_host
Introduction to USB with STM32:
https://wiki.stmicroelectronics.cn/stm32mcu/wiki/USB_overview
some more STM32 USB Host links in this thread:
2022-05-25 01:52 AM
Thank you so much @Andrew Neil for all the information.
yes, that's exactly the sensor used.