USB Host Shield Library

Working libraries, libraries being ported and related hardware
Post Reply
arpruss
Posts: 282
Joined: Sat Sep 30, 2017 3:34 am

USB Host Shield Library

Post by arpruss » Fri Sep 28, 2018 1:33 pm

Has anyone tried the USB Host Shield Library ( https://www.arduinolibraries.info/libra ... ibrary-2-0 ) with the $4 MAX3421E USB host shields from Aliexpress and one of the pills?

stevestrong
Posts: 3053
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: USB Host Shield Library

Post by stevestrong » Fri Sep 28, 2018 1:55 pm

No, but I just ordered one shield, who knows, maybe I will use it in the future.

ag123
Posts: 1322
Joined: Thu Jul 21, 2016 4:24 pm

Re: USB Host Shield Library

Post by ag123 » Fri Sep 28, 2018 2:28 pm

i've actually bought one of these, wanting to do usb2.0 high speed on the stm32f407 but have not really tried it out yet
https://www.aliexpress.com/wholesale?ca ... xt=usb3300
presumbly with this and a stm32f407ve we could push for a usb2.0 high speed transfer rate of 200 mbps 35MB per secs

User avatar
madias
Posts: 1198
Joined: Mon Apr 27, 2015 11:26 am
Location: Vienna, Austria

Re: USB Host Shield Library

Post by madias » Fri Sep 28, 2018 3:47 pm

ag123 wrote:
Fri Sep 28, 2018 2:28 pm
i've actually bought one of these, wanting to do usb2.0 high speed on the stm32f407 but have not really tried it out yet
https://www.aliexpress.com/wholesale?ca ... xt=usb3300
presumbly with this and a stm32f407ve we could push for a usb2.0 high speed transfer rate of 200 mbps 35MB per secs
Doesn't the STM32F407VEx supports USB 2.0 HS?
USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip full-speed PHY and ULPI
https://www.st.com/en/microcontrollers/stm32f407ve.html

stevestrong
Posts: 3053
Joined: Mon Oct 19, 2015 12:06 am
Location: Munich, Germany
Contact:

Re: USB Host Shield Library

Post by stevestrong » Fri Sep 28, 2018 3:47 pm

@ag123, you mean such a module? https://www.aliexpress.com/item/USB3300 ... 12893.html
Hm, I could not find any library for that.

arpruss
Posts: 282
Joined: Sat Sep 30, 2017 3:34 am

Re: USB Host Shield Library

Post by arpruss » Sat Sep 29, 2018 2:06 am


ag123
Posts: 1322
Joined: Thu Jul 21, 2016 4:24 pm

Re: USB Host Shield Library

Post by ag123 » Sat Sep 29, 2018 3:05 am

stevestrong wrote:
Fri Sep 28, 2018 3:47 pm
@ag123, you mean such a module? https://www.aliexpress.com/item/USB3300 ... 12893.html
Hm, I could not find any library for that.
yup, oops my link is broken, i'm not too sure if ulpi phy should 'work out of the box', i.e. that we connect the ulpi pins and use it like a normal usb port
the attractive part about using a usb 2.0 high speed phy are many, usb mass storage may potentially go up to 35MB per sec, the possibility to stream the ADC and GPIO at 200 mbps to the host, etc e.g. make a 100 msps logic analyzer, but i'm not sure if the f407 gpio and buses can reach those speeds
but i think it isn't all that easy, the usb 2.0 high speed electrical requirements are more stringent vs full speed and runs at only 400mv for the signalling at much higher frequencies which means cables, capacitances, resistances etc would matter a lot
madias wrote:
Fri Sep 28, 2018 3:47 pm
ag123 wrote:
Fri Sep 28, 2018 2:28 pm
i've actually bought one of these, wanting to do usb2.0 high speed on the stm32f407 but have not really tried it out yet
https://www.aliexpress.com/wholesale?ca ... xt=usb3300
presumbly with this and a stm32f407ve we could push for a usb2.0 high speed transfer rate of 200 mbps 35MB per secs
Doesn't the STM32F407VEx supports USB 2.0 HS?
USB 2.0 high-speed/full-speed device/host/OTG controller with dedicated DMA, on-chip full-speed PHY and ULPI
https://www.st.com/en/microcontrollers/stm32f407ve.html
i think stm mean to say that the PHY is full speed while if you need high speed you would need to get a ULPI PHY
hence usb 3300 from microchip is one of the more cost effective option. i think the chip itself can be bought for around usd 1-2 on aliexpress etc, i bought the rather pricy module as i'd otherwise have to make a pcb get a 25mhz crystal etc for it etc

Post Reply