Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [usb-device]

Quesions about the design of USB devices that connect to a USB host, such as a PC.

0
votes
0answers
39 views

How to make an USB controller

Let's say for example I have some push buttons to spare. I want to make a USB device with these buttons, so I can use them inside games to map some actions. Where should I start? Is there a good guide ...
1
vote
2answers
111 views

A few of my cables don't work. Is it because they weren't shielded properly?

I am learning how to build USB cables as a hobby. For my early attempts, I did not attempt to shield the cable, I just skipped the bare shield wiring I've seen in other USB cables. However, ...
1
vote
1answer
115 views

Can I cut off a USB C plug, and replace it with a USB C socket

I need a USB C (female) to USB 3.0 Micro B (male) cable. Unfortunately, I can only find a male - male cable. Is it possible to cut the USB C plug off, and solder the wires to something like this: Or ...
1
vote
1answer
45 views

FT2232 device not accepting address x, error -71

I have designed a board with an USB IC from FTDI (FT2232D). This board is bus-powered (i.e.: gets its power from the USB bus). Nothing else gets the power from the USB bus except this IC and its ...
1
vote
1answer
83 views

USB Strange behavior

I am porting the USB driver from the STM32F4 device to STM32L4 device. It almost works. During the enumeration it sends and receives the information, but the data is not exactly the same as from the "...
1
vote
1answer
102 views

Voltage detected across Micro USB cable shielding

I designed a Keyboard PCB using an ATmega32U4 with the data lines wired up to a Micro-USB B Receptacle. Brand: Molex; part number: 1050170001. The USB ground is directly connected to the Micro-USB B ...
3
votes
1answer
299 views

USB C PD fast power role swap

I'm currently designing a device, which consists of a STM32 microcontroller with USB 2.0 support, USB 2.0 hub and few dimmable leds. STM is connected to the hub, along with few other devices. Hub is ...
5
votes
3answers
1k views

Charging phone battery with a lower voltage, coming from a bike charger?

Since travel by bike a lot, and use my phone very often during those trips, I tried designing a USB phone bikecharger that would use my bike-dynamo that also powers my lamp. Yesterday, I did my ...
0
votes
1answer
106 views

How to switch between usb host and slave mode on a micro usb programatically?

Is it possible to program some chip that can switch between USB host and slave mode over an single micro USB cable talking to an Android device? It would be OK if there was a slight pause between ...
0
votes
1answer
32 views

Can I control a Microchip USB3300 Transceiver with a USB 1.1 host controller IP?

As the title says I want to connect to a USB 3300 transceiver (USB 2.0 revision) using a USB 1.1 host controller IP block. Is this possible or do I need to conform to the USB 2.0 specification as the ...
1
vote
1answer
124 views

USB Device that acts like a printer [closed]

Our client uses some third party software and devices for their internal work. They print 600 pages per shift and now they wanted to eliminate paper usage without changing their existing systems. ...
0
votes
1answer
67 views

USB Power Only - Detect Device Plugged In [closed]

I have a project that I need to complete for work. We have been working on this project for a while, however I have come to a bit of a road block. I'll first lay out the important points. We have a ...
1
vote
2answers
90 views

Does MicroUSB B have 5 seperate lines?

I am working on a project that requires a 5 pin connector but it seems like the USB cable is causing some issues. I am using a microUSB B male-male cord to transfer some power and data. Through ...
1
vote
1answer
201 views

Fpga communicate to pc through usb

I'm currently working on my thesis project on making a secure pendrive. For that I have to design an USB protocol implementation on an FPGA. But I don't know how to physically connect that USB core ...
0
votes
1answer
76 views

Stop USB Device from Passing Power to Machine

Summary: The RC Controller that I'm using for a PC game to practice flying quads is, I suspect, passing power through the line and causing my machine to shut down. What I'd Like To Do: Change ...
0
votes
1answer
173 views

Automatic charging and power switch between USB and LiPo battery

I am designing a board which can be powered over USB and includes the use of a LiPo battery along with its charger circuit. When the USB is connected, it charges the battery as well as powers the ...
0
votes
3answers
118 views

Unrecognized usb3.0 device using non-standard connector

I Have two PCBs,pin out define as follows ,the host pcb is A connector,and the device pcb is B connector. I use the 1.25pitch connectors&USB3.0 cable to connect two boards,but the host board ...
0
votes
1answer
115 views

Can an Arduino Pro Micro act as a USB hid and usb host device at the same time?

I know that the Pro Micro can act as a HID device. As far as I understand the Pro Micro can also act as a USB Host using a usb-host adapter (shield) - right? Now can the pro micro be both a device ...
0
votes
1answer
62 views

Can two usb gaming controllers be wired together to act as one? [closed]

Let's say I have two USB gaming controllers. Those generic ones. Is it possible to make it so they work as one? So if you press Left in Controller one and B on controller 2, they both get sent and ...
0
votes
1answer
298 views

STM32F103 USB CDC [closed]

I have a strange problem with USB CDC mode in STM32F103. I have designed PCB with STM32F103 microcontroller and an accelerometer which streams data through USB to PC. I have used STM32CubeMX wizard. ...
0
votes
2answers
268 views

USB hub circuit

I have a custom made USB hub with 4 USB ports. It gets 5V max 500mA. Below is the datasheet for the hub chip http://minipcsale.ru/images/Minix-Neo-X8-h/GL852G.pdf now my question is If i connect 4 ...
12
votes
6answers
2k views

USB device with 2 ports - how to protect against user plugging in both

I've got a Full speed USB device which I want to provide 2 ports for - one each on opposite ends of the enclosure. This is so the cable can be connected wherever is most convenient. My MCU (atmega32u4)...
2
votes
2answers
164 views

What are the limitations of the USB Composite device

I am looking at coding a USB device that is capable of encapsulating two USB devices. I would like to create a HID keyboard with a single extra USB port. A mass storage device would be connected to ...
-1
votes
2answers
69 views

How to have USB act as a programmable power source? [closed]

I am interested in making a USB device that on 1 end, is a male usb that plugs into a PC like windows. On the other end is something that has a positive and negative terminal (or wire end). I want to ...
0
votes
1answer
94 views

2 Computers 1 USB Device (circuit help) [closed]

I have a project with a custom USB device that pumps out a stream of data every 1.125 seconds to a Raspberry Pi running Windows 10 IoT, and occasionally receives an 8-byte command. The USB device and ...
0
votes
1answer
94 views

In USB 2.0, what's the maximum delay between SETUP and DATA0 packets?

In the setup stage of a USB control transfer, the host sends both the SETUP and the DATA0 packets. Assuming that the device has received the SETUP packet, how long should it wait for the DATA0 packet? ...
0
votes
0answers
40 views

can't figure out why my micronucleus/V-USB setup doesn't work

I built a small attiny85-based board using vusb and essentially the schematic of the discontinued Sparkfun "AVR Stick" (at least on the usb/uC side; see https://www.sparkfun.com/datasheets/Widgets/AVR-...
0
votes
1answer
65 views

Same serial command, different serial replies

I have a device (a traffic counter) that communicate with my computer throught Serial Port. To extract data from this device, I use a specific software. I'm also using a Serial Port Monitor to check ...
0
votes
2answers
91 views

USB type-B sockets vs USB Mini-B sockets [closed]

Most Programmers hardware equipped with USB type-B connectors for connecting to PC. USB Mini-B connectors are much less used in device programmers. Have the USB type-B connectors any advantages or ...
0
votes
1answer
73 views

USB 2.0 full speed audio class max sampling frequency?

what is the maximum achivable sampling frequency when using USB 2.0 full speed isochronous audio transfer and stereo 24bit format (recording only) ? when no compression is used !
5
votes
3answers
691 views

How to test for USB dropouts on STM32F?

I've got a devices that is really strange, it drops USB periodically. By periodically I mean on a weekly (or biweekly) basis. By dropping out I mean windows loses the handle to the driver. Dropouts a ...
0
votes
1answer
97 views

AT90USB162 not detected in windows

I have an AT90USB162, have it set up like this: I'm trying to program the chip using Atmel FLIP, but I can't because it's not detected. What could be the problem and how can I fix it?
0
votes
1answer
606 views

One-time fuse for disconnecting/breaking signal path

I am looking for an IC solution, ideally, but alternatively also could use a tiny circuit that would allow to accomplish the following feature: Trigger an event by MCU that will fuse-out/disconnect ...
1
vote
1answer
125 views

LAN9500A Ethernet Adapter

I'm designing a USB-to-Ethernet adapter (actually a prototype of a piece of a larger board). As those following my questions will know, I've had some ups and downs getting the USB part working, but ...
0
votes
1answer
85 views

Is there any way a usb device can identify the usb host operating system? [closed]

Is there any way for the USB device to know if it is connected to a Windows or to a Mac without the installation of a third party software? Maybe there is a way to "ask" a question via USB and figure ...
2
votes
2answers
1k views

How to make a DIY Flash Drive?

There have been previous versions of this question that were closed since "there is no reason to create a one-off actual thumb drive", however, I have a very specific idea for a USB flash drive in ...
1
vote
1answer
48 views

How to limit current on parallel outputs from a power supply?

So I am trying to make a USB power dock for multiple devices. I have a 5v 20A power supply. If I connect 10 USB ports in parallel, is there a way to cap their current to 5v 2A? I don't want to fry my ...
0
votes
1answer
132 views

What USB-2 cabling hardware do I need to connect two Windows 10 computers together? [closed]

I want to run a .NET app in each of the two computers, so that they send and receive data through USB-2. What kind of cable adapter will do this? BACKGROUND: I need to build a GUI on Windows that ...
0
votes
0answers
36 views

Random generating USB bcdDevice field

I'm working on an embedded project involving USB 2.0 and STM32F3 MCU. I need to generated the bcdDevice field for the device descriptor and the serial number string (which can be arbitrarly long). I ...
0
votes
2answers
210 views

USB 5V 2.1A Charger Destroys Device [closed]

I have a USB powered device with an internal Li-Ion battery that has overheated and died. After looking for similar events online I found that charging on a 2.1A charger can damage or destroy the ...
0
votes
2answers
84 views

Soldering USB cable to the bottom of USB connector

I have a USB device with a type A jack connector (see photo). I am integrating this device as a part of another device and due to requirements for ruggedness I would like to have a fully soldered USB ...
0
votes
1answer
41 views

Large LED Array powered via USB

I am working on building a keyboard at the moment and I have run into an issue. I need to power 79 led backlights on the keyboard but I have no idea how to do this given that the power is coming via ...
0
votes
1answer
263 views

USB Bus Powered with LDO device example

I'm planning to use the FT232R in my USB device. The device consists of the FT232R and a dsPIC33EP64MC202 (Basically speaking, the FT232 and a microcontroller only). On the FT232R's datasheet, at the ...
0
votes
3answers
1k views

What is the difference between usb root hub and usb host controller?

From the oracle wiki (usb controller): The USB host controller has an embedded hub called the root hub. The ports that are visible at the system's back panel are the ports of the root hub. ...
1
vote
3answers
133 views

Doubt about USB bus powered device

I want to improve my project to be more robust, because it needs to be available 24 hours a day. Initially, my design had one microcontroller and a USB (FT232R) interface. The FT232 is 5V powered and ...
0
votes
2answers
61 views

RS232 Bridge cable stopping after some time

Im trying to reverse engineer a very old DOS program that connects with a machine using RS232, for this i setup a typical in the middle connection like this: From Computer A to PC A connection im ...
0
votes
1answer
1k views

STM32L4 USB Device with VBUS Sensing

I'm trying to get the CubeMX generated sample CDC application working on STM32l475VG IoT board. By following a document from ST Community, I was able to get the clock configuration right and the CDC ...
0
votes
1answer
49 views

Micro-USB Octopus

I've been searching around for a splitter-type / octopus device that will let me charge many (8) devices over micro-usb from a single outlet. My assumption has been (but correct me if I'm wrong) that ...
1
vote
1answer
198 views

USB 2 data over Cat5 cable

I'm looking to extend two USB 2 devices with one 5 meter long cable. From what I've read, one can run USB 2 fine over Cat5e cable (as long as it's <5m). My question is whether it really matters if ...
0
votes
1answer
170 views

Unexpectedly drawing power over serial tx/rx? What to do?

I have this TTL-to-USB-serial device (supposedly from WINGONEER, who doesn't seem to have any documentation on how to use it): https://www.amazon.com/gp/product/B06XY18XLL I'm using it to hook up ...