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?
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: