1

Today i followed this instructable http://www.instructables.com/id/USB-Mini-Fan-1 .

I thought it would be cool to just stop the power on a certain usb port to stop the fan.Can i do that from code?

opc0de
  • 11,557
  • 14
  • 94
  • 187
  • possible duplicate of [Windows - Power off an usb device in software](http://stackoverflow.com/questions/404097/windows-power-off-an-usb-device-in-software) – Warren P Feb 02 '12 at 15:25
  • Not possible. Also, duplicate, voted to close. Add an Atmel AVR, Arduino USB, or other similar microcontroller, and a small power control circuit and you can make a smart USB mini-fan, though, and then you can control it from software. – Warren P Feb 02 '12 at 15:25
  • Delphi? Can Delphi make coffee for me too? – OnTheFly Feb 02 '12 at 15:52
  • 2
    @user539484 If something can be done in user mode in other languages for shure it can be done in delphi, if it needs a device driver you can write it in C++ and interact with it from delphi application. I don't know what why are you so ironic . – opc0de Feb 02 '12 at 16:14
  • @opc0de because it is easier to be 'smart' than giving a solution – RBA Feb 02 '12 at 20:53
  • You could do some research about USB (pretty well known subject!) before starting desperate seeking for **teh codez**. @RBA, i've seen your now deleted "solution", it is better to be smart, definitely. – OnTheFly Feb 02 '12 at 21:08
  • 3
    @user539484 - being arrogant and ironic does not help anybody. my answer was deleted. I don't see any answer from you, only that you want Delhi to make you a coffee. – RBA Feb 02 '12 at 21:33

1 Answers1

0

One possible solution is to extend the DIY USB Fan with a USB circuit board implementing the switch ON/OFF logic with all the adaptations effort it takes.

Edit:

Visiting your profile (Romania), I presume that you are a bit comfortable with french and suggest you the following link:

menjaraz
  • 7,551
  • 4
  • 41
  • 81
  • i already have an arduino board i could easily make a hack but the idea was to output something low cost.I guess this is the only way to do it.Thanks. – opc0de Feb 02 '12 at 16:17