USB Host Shield does not use my mouse

I soldered the USB Host Shield so that there was electricity and he could see my mouse, but it didn't help

I have an Arduino Leonardo R3, I connected a USB Host Shield to it. I have connected my mouse to the USB Host Shield, but the USB Host Shield does not see my mouse. I know that initially the USB Host Shield has no power, that's why I soldered it as in this video USB HOST SHIELD No Power FIX - YouTube USB Host Shield began to give power (I checked via Voltmetr), but he still does not see the mouse

Arduino Leonardo R3
USB Host Shield

OS: Windows 11
Mouse: Logitech G305

I have an option that there is not enough power (Volts), but I doubt it
Logitech G305



Razer NoName???

1 Like

Please post your code and documentation so we can solve the problem.

I don't think I understand, please take the time to explain your problem.

That code writes: "Startup", "OSC did not start".

Are you sure your Logitech G305 is compatible with it?

Screenshot 2023-05-11 155123

I have used other codes as well, let's say Colorant/ArduinoSketches/1Arduino at main · hafyzwithawhy/Colorant · GitHub

I upload this files to my arduino Leonardo + Usb Host shield.
And in theory it should upload and within seconds,
The mouse should be able to move on my screen, but it doesn’t.
My mouse movements are not being registered

In the mustaffxx/usb-host-shield-mouse sketch it has the code:

if (Usb.Init() == -1)
		Serial.println("OSC did not start.");

but in the Usb.cpp file, the function is defined void and has no returns:

/**
 * \brief Initialize USBHost class.
 */
void USBHost::init()
{
	devConfigIndex	= 0;
	bmHubPre		= 0;
}

I think you should try to initiate it like this:

Usb.Init();

[EDIT]: I may be wrong, I searched up "USB library Arduino", and I checked the first one. But I just realised that it is called USBHost instead of USB, so if It is not the library your using than what is?

I use this file, let's have a look at it, okay?

https://github.com/hafyzwithawhy/Colorant/tree/main/ArduinoSketches/1Arduino

Try inserting some Serial.println("ok"); at some places in the code to see if your code reaches those points of the code.

The Setup function works all over. The loop function works all over, even moves the mouse (Mouse.move(delta[0], delta[1], delta[2]); I changed delta[0] to 1 and there was a movement of 1 pixel by X), but the Parse function does not work, so I cannot move the mouse when my mouse is in the USB Host Shield. I don't understand why USB Host Shield doesn't see my mouse.


"OSC did not start" means the Leonardo cannot communicate with the USB controller on the shield. Check for broken or bent pins. Make sure 3.3V is available on the shield. 3.3V powers the MAX3421E chip which is the USB controller. The board may be defective.

Connecting the 3.3V holes with wire is equivalent to soldering the small pads. Since the shield is not working,I would reheat the 3.3V solder joints to make sure they are good. And solder the small pads.

I do not see any solder on the pin you indicate. Try soldering again.

You must undo the soldering of 3.3V near the USB connector.
This shorts 5V to 3.3V which can damage your boards.
The 3.3V pads I am referring are the ones under the wire connecting
the 3.3V holes.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.