MHeironimus / ArduinoJoystickLibrary

An Arduino library that adds one or more joysticks to the list of HID devices an Arduino Leonardo or Arduino Micro can support.
GNU Lesser General Public License v3.0
2.06k stars 403 forks source link

Joystick stays alive when PC is off #197

Open laubfrosch42 opened 3 years ago

laubfrosch42 commented 3 years ago

Hello, I built a steering tiller for my flight simulation based on this Joystick Library. First, thanks a lot for this very cool piece of work. It is really easy to build your own device based on this library. The joystick works just fine and the level of simulation reached another level.

But if I switch my PC off, the joystick stays alive. It is reacting much slower but still continues to work (I have some LEDs indicating if the steering tiller is centered or not). My other warehouse-of-the-shelf-joysticks do not continue to work (power LEDs go off).

I guess it is because the PC continuous to fuel the Arduino Micro with just enough power to stay alive. Is that a correct assumption? And is there a (coding) way to integrate a power off or sleep mode when the USB voltage is under a certain threshold?

Thanks a lot, Ole steering_tiller

hapklaar commented 1 year ago

I would like to know this as well. Having the device connected also causes the PC to wake from sleep at seemingly random intervals for me.