Questions tagged [usb-device]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
25 views

How to calculate the max transfers per frame and the remaining bytes in USB protocol?

Could someone explain the attached table and how the values are calculated? (the table is taken from the official usb 2.0 specification page 42). What I could understand is just the relation between ...
0
votes
1answer
69 views

How does the logic board know the buttons have been depressed on the Philips ACC2330 foot pedal? [closed]

Unlike other input devices like an Xbox controller, that has the buttons physically mounted to the logic board, this foot pedal's logic board has absolutely no apparent connection to the buttons. How ...
0
votes
0answers
23 views

Add usb c pd function to regular usb c device [on hold]

I have multiple devices like usb hubs, ethernet, wireless, hdmi adaptors with usb c thunderbolt connector for my dell xps 15 computer. My power jack is in bad condition, constantly stopping to charge, ...
0
votes
1answer
62 views

Where to wire usb shield output on breakout

Apologies if this is rather obvious but I am very much new to circuitry and most answers I have found are about designing new products. I have a USB Type C female receptacle that I would like to ...
0
votes
1answer
73 views

What would be the difference between the output of a power bank and a laptop usb port? [closed]

I have an encoder which I have been successfully using when powered from my a USB2.0 outlet on my laptop. I need to be able to run it whilst disconnected from the laptop and so tried powering it from ...
0
votes
0answers
29 views

Power management controller with multiple inputs

I have planned a (quite complex) controller for a project based on a Raspberry Pi (web UI, logging, camera framegrabbing/video processing, LTE uplink), i2c sensors (assortment of environment sensors), ...
0
votes
0answers
39 views

STM32F4 USB - Software switch from HOST (MSC class) to DEVICE (CDC class) and viceversa

My application is based on STM32F411VE and, at first, has been configured to work just as a host for usb key devices (please take at look at attached schemes). After some practising I managed to get ...
0
votes
2answers
65 views

Is USB Vendor ID needed to sell custom USB-hub based on IC?

I'm about to make a hobby project - build custom USB hub fitting required physical/package dimensions and port positions. The main IC would be TI TUSB4041I, which is is 4-port 2.0 USB HUB (I don't ...
1
vote
1answer
36 views

What is the difference between Periodic and Non-Periodic Tx/Rx FIFO in USB?

I am trying to understand how the USB module works in the very low level on STM32F4 MCUs (ARM Cortex-M4 core). In the reference manual I read often the terms Periodic and Non-Periodic Rx/Tx FIFO (I am ...
0
votes
1answer
83 views

What's the difference between SAI and I2S?

I'm developing a USB audio device using an STM32F407G-DISC1 evaluation board. For the audio output I was intending to just use the I2S peripheral connected to a DAC. However the only sample code I ...
0
votes
1answer
74 views

How do I build a USB joystick/button encoder board without using an Arduino or Teensy [closed]

I am making a macro keys button box and need something to convert the buttons into keyboard inputs on a PC, such as a shortcut key in a game. Previously I have used an Arduino Pro Micro, although in ...
2
votes
1answer
42 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 ...
1
vote
1answer
61 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
51 views

USB Audio Interface with DSP [closed]

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
89 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
44 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
81 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
34 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
31 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
59 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
63 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
38 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
88 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
53 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
42 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
55 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
73 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
96 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
134 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
209 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
76 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
91 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
112 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
338 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
530 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
54 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
168 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
77 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
99 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
455 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 ...
-1
votes
1answer
91 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
342 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
131 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
186 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
64 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
380 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
471 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 ...