The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
2answers
48 views

Transistor for USB Hub power control

I'm trying to add power control to a USB hub based on the Terminus Tech FE1.1s hub chip. From the datasheet, I know the chip supports ganged power control, so all ports share a single switch. That's ...
0
votes
0answers
24 views

USB Dropping Out (Custom PCB with Kinetis)

We have a Kinetis K66 based engine management system which uses USB to connect to the tuning computer. We know the software is OK because on other models of car, there are no issues with comms, but, ...
0
votes
1answer
63 views

Inrush current with capacitors connected to USB in parallel

I did a project that connected to the PC USB. When the PC is being shut down the Vcc (5 volts) is halted. But I need the voltage source to stay for extra milliseconds after the voltage halt. For that ...
0
votes
0answers
16 views

Errors when enumerating USB of STM32WB55 MCU

I am trying to make a PoC USB device using STM32WB55RGV6 (using their dev kit p-nucleo-wb55 board&dongle). I started with just following STM's example code for USB HID device (using mouse profile)....
-1
votes
0answers
28 views

Switching 5v with Arduino

I need to control the state of an El Wire light tube with a USB power supply connector with an Arduino Nano or Uno. I want to avoid relays because of the loud click sound. As I'm pretty bad at reading ...
0
votes
0answers
23 views

Can I safely power an iPad from a USB hub connected to its lightning port? [closed]

I have an iPad with a dongle connected to its lightning port. The dongle provides a USB A port, an audio output, and a lightning input for charging. I have a powered USB hub connected to the USB A ...
1
vote
3answers
58 views

decoupling capacitor's inrush current effect on usb filtering

I am confused about 2 different articles about decoupling capacitors and usb filtering. First one: https://www.autodesk.com/products/eagle/blog/what-are-decoupling-capacitors/ this says i should use ...
2
votes
3answers
2k views

How to make a PCB based on ATtiny easily updatable by end users?

I've made a prototype PCB containing an ATTINY 4313: Each time I want to change the program, I upload it with an Arduino used with the "Arduino as ISP" sketch. If one day I sell such a module to ...
0
votes
1answer
55 views

How to read USB mouse data using STM32f103C OTG USB functionality? [closed]

I wanted to build a project where is a screen displaying a pointer, and I wanted this pointer location to be determined by a USB mouse, so I used the ARM 32bit based STM32f103C microcontroller which ...
0
votes
0answers
19 views

USB 3.0 VS MIPI CSI-2 camera interface on Embedded Linux system. Which one is better from both hardware and software perspective?

I have a Sony FCB series camera (1920x1080) and looking for a better interface protocol to connect it with processors like NXP, TI or any similar embedded processor. The camera has a LVDS out port ...
1
vote
2answers
102 views

RS-485 to USB converters (cable conversion)

I am working on a project that involves a Solar Charge Controller. The device ships with an Ethernet RS-485 communication interface as well as a RS-485 to USB cable, which is said to be able to ...
1
vote
2answers
145 views

Can the USB interface be used in real-time works

USB works similar to the Master and Slave architecture. There is an Host which is manage the bus as like a Master. There can be various "devices" which is managed by host like slaves. I wonder that ...
0
votes
0answers
29 views

Charge USB-C device using magnetic connectors and 5V power supply (Nintendo Switch Pro Controllers)

I am attempting to build a charging dock for 4 Nintendo Switch Pro Controllers using magnetic connectors. I want the controllers to have "permanent" USB-C magnetic connectors in them for a fast (dis)...
1
vote
1answer
58 views

AC to DC 12V 2A USB adapter

I have an external hard drive that I travel with to back up photos. It has a large (and quite heavy) AC/DC adapter that outputs 12V and 2A DC. I'd like to be able to leave that home and carry a small ...
0
votes
0answers
41 views

Using a BeagleBone board as a serial terminal server

I am trying to use a BeagleBone Green Wireless board as a serial terminal server. That is, connect USB-UART cables to the USB ports to control other serial devices when I log into it over the ...
0
votes
1answer
60 views

Can I use USB to power a flashlight that runs on 3*AAA or 1*18650 battery? [closed]

I am thinking of buying this UV flashlight. It runs on either 1 18650 battery (4.2v) or 3 AAA batteries (4.5v). Since the flashlight can already take 4.5v, will it be safe to run on 5v USB? I found ...
1
vote
1answer
72 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
30 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
43 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
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
68 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
146 views

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

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
54 views

Error -32 while establishing USB connection [closed]

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
80 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
60 views

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

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
54 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
76 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
43 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
39 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
112 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
79 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
220 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
37 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
74 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
31 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
81 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
62 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
32 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
75 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
88 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
115 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
481 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
88 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
66 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
83 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
107 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
97 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 ...