Questions tagged [usb]

Questions relating to the Raspberry Pi USB ports and specific Raspberry Pi USB devices and device interaction.

Filter by
Sorted by
Tagged with
49
votes
10answers
37k views

Can I use Raspberry Pi as a USB peripheral device?

Raspberry Pi has a Micro USB port for power supply. My question is if this port is only for power purposes or can it be used for data as well? I would like to be able to attach my Raspberry Pi as a ...
3
votes
1answer
7k views

How can I set up my G-Mouse USB GPS for use with Raspbian?

Here is the receiver, a G-Mouse USB GPS unit. First thing is to find the tty port it uses. Start by opening a terminal window. Look at the devices, then plug in the GPS unit and look again: I can ...
67
votes
2answers
100k views

How much power can be provided through USB?

I know that my USB powered Hard Drive doesn't work, but what is the minimum power requirement that the Raspberry Pi can fulfil for devices that connect via USB?
41
votes
2answers
137k views

Is setting `max_usb_current=1` to give more power to USB devices a bad idea?

I've been searching around for more information on the /boot/config.txt configuration directive max_usb_current, trying to find out exactly what happens when that is set to 1, but it's hard to find ...
17
votes
1answer
37k views

How can I use an external USB sound-card and set it as default?

I've got an external USB sound-card from C-Media running on my RPi3. I can play some recordings using aplay/arecord by specifying the card index and ALSA plugin. However, many other sound files does ...
16
votes
5answers
48k views

Multiple Display Screens

I want to build a mini multimedia system based on the raspberry pi B+, which has 2 display screens: The main screen (like a 42" LED TV), which plays the main video in Full HD. HDMI RCA/AV/Composite ...
38
votes
4answers
70k views

SSH to RPi without a network connection?

Is it possible to SSH in to an RPi without a network connection? I could imagine that you could do it using a LAN cable from the computer to the RPi or maybe using a USB cable. I do actually have ...
45
votes
6answers
20k views

Boot from USB hard disk?

Is there a way to boot from an external hard drive connected to the device through the USB port (as opposed to booting from the SD card)?
2
votes
1answer
919 views

How to switch the current draw to 1.2A instead of 600mA?

On the website of raspberry pi 2 I read that the current draw for usb ports can be switched from 600mA to 1.2A. I searched around and I couldn't find anything that shows how to do that, I went to ...
2
votes
1answer
4k views

Raspberry Pi Current & Voltage Sensors (10A rating and ~40V respectively)

I've been searching through multiple forums, and gone to different links online trying to find a "cheap" solution to my question. I am currently trying to monitor the current and voltage of an ...
35
votes
3answers
12k views

Disable LAN9512

The LAN9512 is the hardware device which controls Ethernet and USB ports. This chip consumes almost 200mA, and it will be very useful to disable it to save energy when I don't need USB or Ethernet. ...
33
votes
2answers
107k views

USB card as my default Audio Device

I purchased a small USB sound card. My Pi recognizes the device: $ lsusb Bus 001 Device 004: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio Controller If I run alsamixer and set the audio to USB ...
34
votes
2answers
6k views

Building Wireless Drivers for Edimax Wireless USB: EW-7811UN

I've been trying on and off for days to build the module for my USB wireless device. It is an Edimax EW-7811UN I've found several resources on building modules for Debian, but none for Arch. ...
14
votes
4answers
10k views

Turning on and off a 3G (or any USB) port?

I have a project which will require using a Raspberry Pi in a low power environment, but it will also require a 3G connection. I have not done any tests, yet, but I am under the assumption (and ...
5
votes
1answer
880 views

How to make a splitter cable for the USB2 OTG port on the RPi 4B?

According to the answer to Where is the USB2 OTG port on the RPi 4 Model B located? the Raspberry Pi 4B has a "hidden" OTG port in the USB-C power connector. I found at Very simple OTG on pi4 and at 4 ...
13
votes
2answers
13k views

Can you transfer data through the microUSB?

The Raspberry Pi A & B are powered through the microUSB port. If the Raspberry Pi is plugged into a computer instead of a power transformer, could you send data through that connection? I know ...
12
votes
4answers
17k views

Why do the USB ports and Ethernet port share the same controller?

It is my understanding that the USB ports on the Pi share the same controller as the Ethernet port. This means if one was to use the Pi as a NAS, data transfer over the network would be restricted, ...
20
votes
3answers
4k views

Can the Pi Zero act as an USB peripheral device?

Can the currently announced new member of the Pi family - the Pi Zero - act as an USB peripheral device? Obviously the schematics are not yet available and the blog entry linked above does not go too ...
16
votes
2answers
8k views

Pi as a USB client

I am looking for a way to have the Pi act as a USB client and masquerade as a flash drive. I have seen lots of suggestions, however most of them are old (1+ years) by now and vague/incomplete - I ...
7
votes
3answers
26k views

How to connect SIM800 GSM ADD-ON to RaspberryPi 3

I am confused about how to connect SIM800 GSM module to RaspBerry PI 3. I connect the module to RaspBerry PI using the GPIO pins. What happends now? Are those GPIO pins automatically connected to ...
11
votes
5answers
17k views

How can I wire this SD card reader to RaspberryPi?

I need to add a second SD card reader to my Raspberry Pi for the project www.samplerbox.org (the RPi will be embedded in a box, so I need a user-SD-card reader). Here is what I would like to use: ...
8
votes
5answers
7k views

Disabling USB ports

I'm using the RPI to create a program, but I need to disable the USB ports so that the end user cannot plug in a keyboard or mouse and mess with the device. Is this possible, and if so how is it done?...
1
vote
1answer
335 views

Identify which microphone is on which audio card using arecord

I'm using a Raspberry PI and on it I plugged two same USB microphones. I would like to be able to identify which USB microphone is on which audio card when I list devices with arecord: arecord --list-...
12
votes
2answers
11k views

Is there a way to automatically activate a script when a USB device connects?

I have a USB device (POV camera) that collects a lot of data a fills up its storage regularly. The goal is to write a script that: Listens for the device to connect via USB Mounts it as a storage ...
16
votes
8answers
44k views

Can I power Raspberry Pi using the mini USB to USB cable connected to a computer?

My question is quite simple. I'm asking if I can use the power cable you get along with it as a USB power supply. Instead of plugging it to a power socket, can I use the USB to connect directly to my ...
30
votes
8answers
11k views

USB Cables… Why are some of them bad for Raspberry Pi?

Yesterday I bought another Raspberry Pi, and installed Rasplex on it. While using Rasplex, I got this colored square on the top-right corner, indicating that the power supplied to my Raspberry Pi is ...
9
votes
3answers
18k views

Auto mount USB stick on plug-in without UUID

So, I'm making a media center. I need the Pi to auto mount ANY USB stick I plug in. No mater what filesystem (vfat,NTFS,ext). I searched everywhere, and couldn't find anything that works. Well, ...
7
votes
5answers
7k views

Where is the USB2 OTG port on the RPi 4 Model B located?

According to this answer the Raspberry Pi 4 Model B has a total of five USB ports (two USB3 host, two USB2 host, one USB2 OTG). Where is the fifth USB2 OTG port located and how can I use it? Can I ...
3
votes
1answer
7k views

Connect Pi-Zero via USB RNDIS Gadget to Ubuntu 17.04

I'm trying to ssh to a Pi Zero via USB link. While this works as expected from my MacBook with OSX 10.10, I'm not able to ssh or ping the raspberry From a Linux Host over USB. What I did: On the ...
11
votes
2answers
20k views

Using USB as a slave [duplicate]

is it possible to have the Rpi act as a USB slave/device. I would like to be able to connect its usb to the USB of a standard computer, have the host machine recognize the RPI as a USB disk and then ...
5
votes
2answers
939 views

Cheap COTS transceivers that work with Raspberry Pi?

I'm looking for a way to get an app running on a laptop to communicate with an app running on a Raspberry Pi. This is a home/hobby project, so looking for inexpensive COTS hardware and open source ...
5
votes
4answers
31k views

Headless Pi Zero SSH access over USB

How can I SSH to a headless Raspberry PI Zero (no GPIO pins, no WiFi) over a USB cable, connecting to a Mac using a shell window from Mac's Terminal program?
4
votes
2answers
7k views

Resetting usb device from terminal

I am using a USB IR Toy v2 and using this excellent https://github.com/crleblanc/PyIrToy python library to get it working after failing to get things going with LIRC. However, while it works once, ...
4
votes
1answer
1k views

How to add a usb slave port to a raspberry pi

Is there a way, with a small board add-on, a simple cable incorporating some specialized chip, to add a usb slave port to a RPi, to let it be used as a device?
2
votes
3answers
6k views

Power USB device over Raspberry Pi GPIO Pin

For an embedded system I need to be able to switch certain USB devices on a RPi on and off without physically disconnecting them. The whole setup will be in an enclosed casing. My idea now was to ...
2
votes
1answer
4k views

How is the USB power regulated on +/2/3 models?

This question and my very tentative (dubious even to me) speculation that the cause might be the main polyfuse on the 5V regulated supply common to all (?) Raspberry Pi's left me wondering about how ...
7
votes
2answers
22k views

How do I make my Raspberry Pi act as a wireless USB controller?

I am trying to control my Canon 550D with the EOS Utility (on my Mac). In theory, this is what I am looking for: The RPi plugs into the 550D and is connected to a LAN. My Mac is on the same LAN, and ...
15
votes
8answers
53k views

Connect a GPU into Raspberry pi

I want to connect a GPU GT640 to a Raspberry pi model B. I know there is not a direct connection and the tranfer data are very differents but. Is there any chance to connect this devices in order to ...
10
votes
2answers
23k views

Why does USB port enumeration change?

I'm using a Huawei GMS/UMTS USB modem with Gnokii and Gammu. The modem was in the lower port on Pi. With dmesg | grep tty it would show up on /dev/ttyUSB0 and /dev/ttyUSB1. (2 USB devices on 1 stick ...
28
votes
2answers
4k views

Can I use a USB webcam?

Is it possible to use a standard USB webcam with the RPi, or is there a specific peripheral that should be used? I would like to use RPi's to stream images from webcams to the net.
19
votes
2answers
45k views

What kernel parameters are available for fixing USB problems

There's a lot of problems with USB stack on Rapsberry Pi and developers are working hard to fix as many of them as possible. They introduce some kernel modules options (like dwc_otg.fiq_fix_enable) ...
15
votes
4answers
48k views

Live audio stream using FFMPEG

I try to stream live audio using ffmpeg and external USB microphone. I followed this nearly tutorial I had to adapt some steps but finally, I achieved to receive the stream my laptop using this ...
12
votes
1answer
7k views

Pi Zero as HID: How to control PC Mouse from Pi Zero through USB?

I'm asking this because I haven't found anything clear about this subject after searching for days. So, I'm sorry if the question already exists. I'm working in a project, just for fun, where I want ...
6
votes
5answers
15k views

SSH from Android to rPI using USB?

Is it possible to connect a rooted Android device to a RPI via USB and then SSH into the RPI from the Android device over the USB connection? If so is there any documents or tutorials out there that ...
11
votes
5answers
43k views

How do I reset a USB device using a script?

I have a USB GSM modem that does not alwasys work property (Huawei E367u-2) Sometimes it gets reset (USB device disconnect/reconnect in logs) and when it comes back up, it's has different ttyUSB ...
7
votes
2answers
11k views

Streaming Audio and Video from a remote Raspberry Pi to my computer

I've been working a couple of days on this issue. I need to set a stream up that streams audio and video (doesn't matter if I need to open separate connections for it, as long as it works) from the ...
16
votes
2answers
16k views

Can I make a full USB keyboard with Makey Makey + Raspberry Pi

I recently bought the Makey Makey (based on Arduino Leonardo / ATMega32u4), hoping to construct a full USB steampunk-style keyboard from some metal parts. Before it arrived I re-read the details and ...
1
vote
5answers
15k views

SSH the Pi from computer with a USB cable only

I remember that when starting with Pi a few years ago (see this 2.5 year old question), it was impossible to SSH the Pi (without screen / keyboard / mouse) from computer with a USB cable only. One had ...
10
votes
1answer
2k views

Does WiFi on the Pi 3 reduce the Ethernet bottleneck when using USB device?

We all know that on Raspberry Pi 2 and previous models, the USB and Ethernet bandwidth is shared, so when we transfer data over Ethernet to a USB device and vice-versa we are limited by this fact. ...
9
votes
1answer
12k views

How to use Raspberry Pi 3 as a USB gadget

How can I use Raspberry Pi 3 as a USB gadget. Is there any way? How can I enable the USB gadget mode on Raspberry Pi?