USB host 5V power

Status
Not open for further replies.

PierreMary

New member
Hello,
I try to power a speaker with the teensy's usb host.
But when I connect it nothing happened & with my multimeter I don't find 5V output.

So what is my mistake please ?
 
Hello,
I try to power a speaker with the teensy's usb host.
But when I connect it nothing happened & with my multimeter I don't find 5V output.

So what is my mistake please ?

The power needs to enabled.
The USBHost library does that.
 
Not verified or tested:


For Teensy 3.6 it might be this:
Code:
    // Teensy 3.6 has USB host power controlled by PTE6
    PORTE_PCR6 = PORT_PCR_MUX(1);
    GPIOE_PDDR |= (1<<6);
    GPIOE_PSOR = (1<<6); // turn on USB host power
https://github.com/PaulStoffregen/U...a8f472080c77d05ff24372436673dd2/ehci.cpp#L111

For Teensy 4.1, maybe the four lines following line 208
Code:
    IOMUXC_SW_MUX_CTL_PAD_GPIO_EMC_40 = 5;
    IOMUXC_SW_PAD_CTL_PAD_GPIO_EMC_40 = 0x0008; // slow speed, weak 150 ohm drive
    GPIO8_GDIR |= 1<<26;
    GPIO8_DR_SET = 1<<26;
https://github.com/PaulStoffregen/USBHost_t36/blob/02092fd26a8f472080c77d05ff24372436673dd2/ehci.cpp#L208



 
Status
Not open for further replies.
Back
Top