Questions tagged [usb]

USB is Universal Serial Bus. If your question relates to a specific chip, please mention it in your question.

Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Loose USB port on laptop in the orthogonal direction [on hold]

My Thinkpad T520 laptop has its USB ports a little bit loose: in the perpendicular direction of the insertion of a USB cable: If we touch the cable of an external hard drive for example, the ...
1
vote
1answer
63 views

How to power a device using a USB port instead of AA batteries?

I have a device that uses 3 AA batteries and I would like to power it from a USB port instead. As I understand I will have to use resistors but I have no idea on which ones. I have found the ...
0
votes
1answer
28 views

Disconnecting system load during charging

I'm designing a charging circuit for a single-cell li-ion battery that powers a PCB with high-power LEDs. For safety, I want to disconnect the PCB and the high-power LEDs during charging. Therefore, I ...
0
votes
1answer
37 views

How to charge a USB-C host with ACA alternative?

For old some micro usb devices, you can wire the ID pin so it is connected to the ground pin with a resistance of something like 36.5 kΩ. When the device is in host mode and connected to a device, ...
0
votes
1answer
56 views

FTDI using non-standard baudrate [on hold]

I'm doing some testing on a custom made USB to serial convertor based on FTDI232RQ which operates on 3MHz and MAX130 Transceiver IC. I'm using a program using Linux to send ASCII values and files to ...
0
votes
0answers
51 views

Is VBUS sensing necessary for USB on a self-powered device? [duplicate]

I'm currently designing a self-powered PCB with a STM32L432KCU6 and USB. After having done some research, it seems that it is necessary to connect the VBUS pin for detection purposes. However, is it ...
2
votes
1answer
63 views

Repurposing PWM output for D- of USB

I'm currently designing a self-powered PCB with a STM32L432KCU6 MCU on it. I want to use USB, but D- is already used for a different purpose. According to the datasheet, D- and D+ have to be ...
1
vote
1answer
93 views

How does such an USB step-up 5V-12V work? [on hold]

I just bought a cheap USB 5V to 12V step up converter: Surprisingly, it works very well. There is few place for electronic components (maybe in the USB connector?), how can we do a 5V to 12V ...
0
votes
2answers
50 views

Error -32 while establishing USB connection [on hold]

We are working on a custom board based on STM32F769NI in Ubuntu 16.04 which has an FT232RL chip. We are connecting a micro USB cable from PC to custom board (micro USB port is adjacent to FT232RL chip ...
1
vote
2answers
76 views

Can I use a cheap logic analyzer as a USB to UART TTL cable?

I need a USB to UART (TTL) cable for connecting to an onboard JTAG connector. Since I already own a Sigrok logic analyzer, I figure it might function soley as a USB to UART cable. Is this possible? ...
0
votes
1answer
58 views

Accessing the STM32L412KB Serial Wire Debugger (SWD) Connections (Novice User)

I am attempting to program an STM32L412KB device using ST-Link/V2-1, a Raspberry Pi 3B+ and OpenOCD software. To do this however, I require access to the SWDIO connection and the SWDCLK connection of ...
1
vote
1answer
50 views

PIC16F676 interacting with FT232 hookup

I am hooking up a PIC16F676 to FT232. I already have power hooked and also OSC with 20 MHz and 22pF capacitor. I am still trying to figure out the proper way to hook up the data/serial or something ...
0
votes
3answers
68 views

Should I connect the computer VBUS line to the 5V line of the board?

I am doing a project that needs USB communication with my microcontroller. On the board there is already a 5V power supply. I would like to know if it is correct to ...
0
votes
0answers
42 views

How to run OTG and charge from same port without dumping 5V rail into charge circuit?

Hi Im having a bit of a headache trying to figure this one out. Ive actually got my working prototype but i realised i forgot to figure out how to power OTG devices from the same port that im charging ...
0
votes
1answer
38 views

Custom USB Y cable [duplicate]

I am creating a custom dual female USB Y cable for a hardware modification project in a USB mouse. I have the wiring set up as shown, is it correct? RED, WHITE, BLACK, GREEN, THICK BLACK from female ...
0
votes
3answers
105 views

Make an SD card installed on PCB readable through USB

I work on a circuit that logs data onto an SD card. I want to know how I can read the SD card data directly from my PC using USB. I am thinking of using a type of SPI to USB converter because there ...
0
votes
2answers
76 views

Is it possible to get a Raspberry Pi zero to wake a computer over a USB connection?

I would like to wake up my desktop computer (Mac or PC) from sleeping using a Raspberry Pi Zero. Is it possible to get the Zero to wake a computer over a USB connection? I can wake my Mac up using ...
3
votes
1answer
214 views

How do you determine the orientation of both ends of a USB-C cable from the UFP device?

As the heading states, I would like to semi-passively detect the orientation of both ends of a USB-C connection. I understand that it is possible for the UFP and DFP devices to infer their own plug ...
0
votes
1answer
36 views

usb 3 SS cable type to IP64 panel connector

I am designing an industrial equipment on which a USB 3.0 connection is required (for speed reasons). The electronics being in an IP64 box, I am forced to transfer the USB-C/3.0 connector to a panel ...
0
votes
3answers
72 views

DYI USB Hub - It is possible to just connect ports in parallel?

I want to make device what is similar to KVM switch. I have mouse + keyboard connected to my table PC and I want to use it for my notebook as well. I decided to make USB HUB with 2 USB input (for ...
0
votes
1answer
26 views

USB3/2 hub cascading (reverse hierarchy)

I want to implement multiple USB ports using one USB3.0 and one USB2.0 hub with four ports each. The microprocessor I want to implement these ports for has just a single USB3.0 port left (of which the ...
0
votes
1answer
79 views

USB 2.0 Pogo pins

I have a PCB that has USB OTG on it, and I use it to update my PCB firmware. It is USB 2.0. Now I wanted to do it through pogo pins, and I was thinking of skinning the cable and soldering the data ...
-1
votes
1answer
61 views

USB type c receptacle plug in detection

How does usb device with type-c receptacle detects, that plug (just bare usb type-c plug, without cable, and resistors) is attached? Does USB specification describe this possibility? I know, that my ...
0
votes
1answer
30 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
2answers
69 views

USB and LiPo power supply with charger

I'm having trouble designing a power supply circuit for a small microcontroller-based project. The board I'm building will be powered by a 3.7V LiPo battery most of the time, but it could also be ...
1
vote
0answers
28 views

Why would a USB Mass Storage Class device STALL the IN token during the status stage of a write?

I'm working on a product using the USB0 peripheral (with integral PHY) of an NXP LPC4357 microcontroller to provide a USB Host implementation for Mass Storage Class devices. This works fine for most ...
0
votes
3answers
87 views

Can a microwave motor be powered by usb? [closed]

Firstly, I'm not even a beginner. I'd need extensive training to become a novice!! My problem, I'm trying to build a rotating display for some decorative coins. I initially thought of servo motors and ...
0
votes
2answers
110 views

Can I program an MCU directly from USB if it supports USB? [closed]

If a microcontroller has USB functionality, can I program it directly from a USB port? Can I design the PCB without a USB to serial converter? What are the precautions I should take? The example that ...
2
votes
2answers
472 views

How do we test and determine if a USB cable+connector is version 2, 3.0 or 3.1?

How do we test and determine if a USB cable+connector is version 2, 3.0 or 3.1, without using port, PC and/or having data transfer but instead with basic physics tests e.g. using multimeter?
0
votes
1answer
87 views

Is the Raspberry Pi polarity protected on the USB? [closed]

I am building a Pi into some equipment just to drive a display. Now this is normally powered by a USB lead with the usual 5VDC. So I will have to cut the USB cable and put ferrules on the leads (...
0
votes
0answers
53 views

Soldering DIY USB to Micro USB cable

I'm trying to solder a female USB port to a male micro USB port. I've made sure that all four (GND,D+,D-,VCC) cables are wired up correctly by checking if current flows through them with a multimeter. ...
-1
votes
2answers
65 views

How to connect STM32F103C8t6 to computer when using USART? [closed]

I'm an electrical engineering student and I've just started to learn microcontrollers.I want to know is there any way to connect my board(I uploaded its picture)to computer when I'm using USART ...
0
votes
0answers
73 views

Why is my atmega32u4 not showing up as a USB device

I have an atmega32u4 as part of a PCB that I designed. The atmega32u4 comes with a USB bootloader and so I should just be able to plug it into my USB port and have it show up as a device. It doesn't ...
1
vote
3answers
104 views

Got an electric shock from a USB type C cable plugged to a laptop, how can I find the faulty thing? [closed]

I was about to charge my phone with the USB type C cable that was plugged to my laptop. When I grabbed the cable I got a light electric shock (I think I touched the plastic case that covers the metal ...
1
vote
0answers
90 views

What PCB thickness is this USB connector targeted for?

The following USB Type C connector has lead lengths of 1.6 mm: https://adam-tech.com/downloader.php?p=USB-C31-S-RA-CS1A-BK-SS-TR.pdf What's a good PCB thickness for this connector? Also, why are ...
0
votes
1answer
52 views

How do you make a USB power adapter? [duplicate]

I hope I'm not asking something preposterous but I'd like to understand how 120V USB power adapters work so that I can think about how to put one onto a board that I'd like to have made. The main ...
0
votes
0answers
69 views

Connect AC neutral to USB ground?

I have an AC supply that plugs into the wall and outputs 8.4V with three pins (+, -, and ground). I would like to save wires and use a six-wire connector to hook a Serial Bus and the AC supply into ...
0
votes
1answer
77 views

USB 3.0 hub confusion [closed]

For a while I thought I could distinguish between USB 2.0 and 3.0 (or 3.1 gen 1) standars from the hardware point of view. Now I am confused however, because I have noticed that my USB 3.0 hub has the ...
0
votes
0answers
88 views

RTS5411 vs RTS5411S-GRT

I am working on my own design base on Nvidia Jetson nano. It uses RTS5411S-GRT as a USB hub. As far as I could find I only found RTS5411 datasheet and can purchase RTS5411-GRT or RTS5411, no ...
0
votes
1answer
53 views

How can I attach a USB microphone to a Breakout-board using ADC Ports? [closed]

I am almost a total noobie to electrical engineering and I bought a programmable Drone called "PlutoX" from here. I am currently trying to attach a USB microphone like this: to the so called "X-...
0
votes
0answers
54 views

FTDI Chip Windows Error Message “USB device attached malfunctioned and windows does not recognize.” Design Error?

My PCB has a FT230XS-R USB to UART communicating with an AVR chip. My first prototype board worked perfectly except for the USB problem stated in post title. I triple checked everything. Can NOT find ...
0
votes
1answer
41 views

Can a normal USB C panel mount socket be used to receive USB PD?

I'm building a lamp that has (up to) three wall-mounted units connected to a central control box. Each one gets three low-voltage control signal wires and 12V 3A DC power. I'm figuring that a USB PD ...
0
votes
0answers
38 views

Creating mobile LED projects with LED strips, USB, and an 8xAA battery pack

I'm trying to make some LED clothing. I'm planning on buying some LED strips, which require a 12V power supply. I plan on buying some battery packs for the power source. To link the power source to ...
0
votes
1answer
63 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
49 views

USB bus Differential signals and Pin swapping

USB 1.0 and 2.0 has D+ and D- two differential pins. My understanding is that differential signals are symmetrical so any of the two lines carries an inverted signal of the other line. But in the ...
0
votes
0answers
165 views

Embedded C - USB stack, arm-none-eabi-gcc settings and Matlab interface

I am using LPCOpen (latest realese available for LPC4370) and the usb stack provided within it. I need to build a simple FSM to control the mcu with Matlab and send data from Matlab to the mcu and ...
0
votes
1answer
63 views

Why cannot I use the USB port directly to communicate via PC with STM32F4-DISC

I will keep it short and clean, if it won't be enough please let me know and add more details. When using an Arduino UNO, a serial communication can be achieved by the same USB connection which is ...
4
votes
1answer
437 views

Are USB protocol and connector free or are they patented?

For a hobbyist developing a device, certification is not pleasant. I am wondering if implementing USB in any way is patented or needs a certification? I am concerned about both protocol (USB-2,3) ...
0
votes
4answers
123 views

Can I use the power from a computer to run my board?

I have an industrial PC which has some usb ports, and I want to use that port to get 5V and convert it to the 3.3V (with decoupling caps). But now I need to use that 5V to drive 12 relays on my board. ...
0
votes
2answers
54 views

How to connect PIC32MX470F512L to a micro usb connector?

I've seen some schematics and the D+ and D- of pic seem to be connected directly to the - and + of the micro usb connector. As the micro usb has a power of +5, i'm not that confident that it would be ...