Questions tagged [usb-device]

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

2
votes
1answer
22 views

play-pause music by a foot switch in a website

I want to make a web application that can allow a user to change, play and pause music with foot switch paddle. I can easily do this with a mouse or keyboard but I don't know how to take input from ...
0
votes
0answers
28 views

USB isolate circuit upload firmware with error

Previous i had reference the arduino uno's schematic as my circuit,and it works great and can be uploaded firmware directly by using this USB port but some IPC's noise are pretty large, will affect ...
1
vote
1answer
58 views

Can I use the USB 2.0 and 3.x channels simultaneously in a USB 3.x port?

I am designing an FPGA development board for myself. I want a moderately high speed link (400-500MB/s) to the host PC and I'm considering several options, including an FTDI FT-60x bridge IC. The ...
2
votes
0answers
49 views

USB Audio Interface with DSP

I am looking to build an audio interface that can also use real-time DSP to process audio coming from (most important) and going into the host. After some research, I have been zeroing in on the ...
2
votes
0answers
82 views

Powering down parts of a pcb to conserve power, is it possible? Any caveats?

I'm building a USB 2.0 bus-powered STM32F429-based audio device that is able to run in a stand-alone mode from a phone charger, or running as a USB device when connected to a computer. To comply with ...
0
votes
0answers
38 views

What can i do with a WM8192EU USB module?

I recently came across a wm-8192eu usb module from an old electronic doorbell. It had a socket on the board that it just slid right out of. When i googled the chip it showed a bunch of usb wifi ...
0
votes
1answer
79 views

USB communication keeps disconnecting because of power dip/spike

I've got a question. I've got CNC router that's connected by USB to a desktop computer. We're in an old building, and wiring is not optimal :) I'm not an expert, but I think too many rooms are on the ...
1
vote
1answer
23 views

Do all USB-C compatible devices have USB hubs inside of them?

Since the signals on the USB-C connector are mirrored on each side with the CC pins indicating the plug orientation, does this mean that all USB-C devices have USB hubs so they can use the right D+/D- ...
0
votes
0answers
30 views

Routing extra IO traces across MCU IC without crossing USB lines

I'm currently designing a PCB using an STM32L433CB LQFP48 chip. The design uses the USB connection to communicate with an external PC. USB is configured to Full Speed (internal pull-up on D+ line) and ...
0
votes
0answers
29 views

stm32f072rbt6 PCSC SmartCardReader with multiple slots

I use the CCID driver for STM32F072RB, converted to the Hal library. There was a need to make a multi-slot Smart Card Reader (specifically - there will be 3 slots for smart card). In the process, I ...
1
vote
1answer
14 views

atmega16u2 debugwire and usb device

I am writing some firmware for the atmega16u2 and have noticed that the usb device hardware does not work correctly if debugwire is enabled. The usb device does not enumerate. Disabling debugwire ...
0
votes
1answer
55 views

Is a PD controller necessary if VBUS is always >5V?

I'm trying to implement a board that will use USB-C Power Delivery. We want to operate with 20V 5A input. If we know the source will always be at 20V, is it necessary to put a PD controller on the ...
0
votes
1answer
55 views

Problem to update firmware using bootloader to PIC18F4550

I followed the documentation on the Diolan's web site . I changed the project to be programmed to an PIC18F4550 and not a PIC18F4455 as it was originally written. The compilation succeed and I was ...
1
vote
1answer
34 views

Impedance matching of USB device WITHOUT cable

If I understood correctly, when designing PCB with USB, the 90-ohm differential pair of D+/D- trace if for matching the USB cable differential impedance. Otherwise, there will be a signal reflection ...
0
votes
1answer
78 views

How a USB3 device is detected over a USB2 one?

I've got a hardware platform (setup as host) which it's got a USB2.0/3.0 Micro type B female port.The system is definitely capable to detect and interface USB3 devices (can see in the embedded OS the ...
1
vote
0answers
47 views

Raspberry Pi wake-up and battery power circuit

I am working on a Raspberry Pi (3B plus) project that - at times -needs to operate on battery power, and on external power whenever available. The RPI needs to operate only when a dedicated sensor ...
0
votes
1answer
41 views

Serial Communication Between Android and Attiny85

I am planning to build a sensor module for smartphone using Attiny 85 as its microcontroller. The sensor module will have a USB type A and to connect to the smartphone, OTG is required. Serial ...
0
votes
0answers
48 views

STM32 USB Connection

I have a Nucleo f303re development board with support of ST's own USB Device library. Onboard USB port is for ST-LINK so I don't want to unplug its connections. So I tried to implement another USB ...
0
votes
1answer
65 views

DIY Lead Acid powered USB-C power adapter [closed]

I recently found a great appreciation for the long battery life of my newly acquired mac book pro and was thinking how I can scale that up even more (since I travel and work on site a lot), by ...
0
votes
1answer
80 views

USB 2.0 cable to USB C output [closed]

I've got a Streamdeck that has a USB 2.0 out as a fixed cable. I've bought a USB C 2.0 board that I want to wire up so I don't have a fixed cable anymore. My issue is I don't know what the two black ...
1
vote
2answers
120 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
153 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
59 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
87 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
110 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
318 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
2k 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
330 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
39 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
142 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
73 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
96 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
343 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
78 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
246 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
123 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
148 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
354 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
383 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
187 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
71 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
103 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
57 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
68 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
93 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
86 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 !
4
votes
3answers
712 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 ...