a way to control USB power ?

Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Locked
User avatar
vladak
 
Posts: 95
Joined: Thu Jan 06, 2022 7:05 pm

a way to control USB power ?

Post by vladak »

Is there an Adafruit device that can externally control USB power, ideally from Raspberry Pi 4 ? I am thinking about a project to turn on/off a fan that is USB powered, based on temperature data.

Perhaps there is something like a STEMMA QT connected gadget that has USB port and can control USB power ?

Other ideas are welcome too.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: a way to control USB power ?

Post by mikeysklar »

You can toggle power to the USB ports using uhubctrl.

There are more elegant ways to control the fan like using a PWM based 3-pin unit. Pi OS has fan control based on temperature built-in.

There are also more DIY options such as using the EMC2101 i2c PC fan setup:

https://www.adafruit.com/product/4808

User avatar
vladak
 
Posts: 95
Joined: Thu Jan 06, 2022 7:05 pm

Re: a way to control USB power ?

Post by vladak »

mikeysklar wrote: Tue Sep 06, 2022 8:39 pm You can toggle power to the USB ports using uhubctrl.

There are more elegant ways to control the fan like using a PWM based 3-pin unit. Pi OS has fan control based on temperature built-in.

There are also more DIY options such as using the EMC2101 i2c PC fan setup:

https://www.adafruit.com/product/4808
Thanks for the reply. These are fine ideas, esp. the fan control via STEMMA QT connected board.

In the end I went with a classic solution by using TP-link P110 smart plug controlled from Python code (via https://github.com/fishbigger/TapoP100/). The downside is that it control just on/off but not fan speed so in the future I might try the PWM board.

Locked
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/

Return to “Adafruit Raspberry Pi® accessories”