Warning: session_start(): open(/tmp/sess_7ad6a431bb709524ae0e3ea66af7bd2a, O_RDWR) failed: No space left on device (28) in /var/www/html/inc/init.php on line 265

Warning: session_start(): Failed to read session data: files (path: ) in /var/www/html/inc/init.php on line 265

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/init.php:265) in /var/www/html/inc/auth.php on line 432

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/init.php:265) in /var/www/html/inc/actions.php on line 38
raspberrypi_usb_current [Ben's notes]

Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


raspberrypi_usb_current

Raspberry Pi B+ USB current

You can change the RPI USB current limit. Keep in mind that the PSU also is able to deliver the current, e.g. 2Amp.

All that max_usb_current=1 does is to set GPIO38 high, which in turn turns on a FET, which connects a second 39K resistor in parallel to an existing one, on pin 5 of U13, the AP2553W6 USB power manager, lifting the current limit from 0.6A to double that (1.2A)

https://projects.drogon.net/testing-setting-the-usb-current-limiter-on-the-raspberry-pi-b/

  • Update to latest firmware:
    sudo rpi-update
  • Edit /boot/config.txt
    max_usb_current=1
  • Reboot

Verify

  • Check gpio38, value should be '1'
    sudo bash
    cd  /sys/class/gpio
    echo 38 > /sys/class/gpio/export
    cat /sys/class/gpio/gpio38/value

OR

  • Check:
    # gpio -v
    gpio version: 2.20
    Copyright (c) 2012-2014 Gordon Henderson
    This is free software with ABSOLUTELY NO WARRANTY.
    For details type: gpio -warranty
    
    Raspberry Pi Details:
      Type: Model B+, Revision: 1.2, Memory: 512MB, Maker: Sony
  • Check values, GPIO 38 should be '1':
    # gpio -g read 38
    1
raspberrypi_usb_current.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1