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]

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

0
votes
3answers
60 views

Control GPIO pins using USB

What is the easiest way to make a device that can control GPIO pins using USB? Can I make a device similar to this on my own without any special hardware?
-3
votes
0answers
30 views

Converting wireless controller to wired one

I bought one controller (PS3 QuickAct) from flea market guessing that it is bluetooth one, but turns out it requires USB receiver. I opened the controller and it have an transmitter module attached ...
-3
votes
0answers
16 views

How to connect the male Usb end to micro usb(male) end of a mini powrer bank

I have Portable Power Bank Magnetic Interface Phone Charger with micro usb. This is good for my phone. But My smart watch has a charger with one end having a magnetic dock to be connected to watch and ...
-2
votes
1answer
69 views

Converting wireless mouse

I saw this question in one of the electronics sites, and many answered him that converting wireless mouse will zap the PC (USB ports) . The question was:(( I am trying to convert a wireless mouse to a ...
0
votes
0answers
34 views

How Would you Communicate using single RS232 COM Port, 2 USB ports and 1 USB 3 port, with 20+ components [on hold]

I need to send/receive analog signals 0-5V to/from 20+ components so I can control them using a Java Swing App I am writing. (transducers, solenoids, actuators that type of stuff). I have the ...
1
vote
1answer
77 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
0answers
76 views

Android usb communication - How to set a non-standard baud rate for read and write data? [on hold]

I would like to know if in adroid it is possible to have baud rates different from the default ones for usb communication with a pcb / arduino board, I would like to send a frame with a particular ...
1
vote
0answers
45 views

How to disconnect 3.7V battery when USB is connected (boost)

I am developing a circuit which enables me to charge a lithium battery and boost the output voltage up to 5V for a microcontroller. My boost converter is the MT3608, and the charging circuit is the ...
0
votes
0answers
41 views

What would be the recommended way of making a USB meter/controller [closed]

I would like to make a “USB monitoring device” with one USB power input and two USB power outputs. The needed features are: voltage metering current metering sense an output being used individual ...
0
votes
1answer
65 views

Supplying TTL Signal via USB

I have two pieces of hardware I'd like to interface with via USB. The first are 2002 Series Actuated Valves and the second is a Mass-Flo Controller for regulating gas exchange. To my (admittedly ...
6
votes
4answers
2k views

Can I use USB data pins as a power source?

I'm trying to build a circuit as seen below, where a sequencer controls the flashing of some LED sections, and an SPDT switch controls power to either the left or the right section of LEDs. However, ...
0
votes
1answer
31 views

wire to board connector for USB 3.0

I have an unusual connector, I know this cause I can't seem to locate a connector that will connect to it. I know what it does but can't find a source to build my wire cable I need. I can find the ...
0
votes
0answers
21 views

Using USB to IDE converter from external hard disk with DVD drive [migrated]

My current laptop no longer has an optical drive. Since I have a spare IDE DVD drive and a 500 GB Western Digital Bookcase external HD sitting around, I thought of ripping the USB to IDE converter ...
1
vote
1answer
54 views

MSP getting powered up from GPIO

On a demo board I have, USB 5V rail is connected via a resistor divider to one of the GPIO's of MSP. MSP itself is powered from PCIE 3v3AUX rail. In one of the cases when the board is not connected ...
3
votes
0answers
77 views

How do USB to serial adapters work?

I'd like to know how a USB to serial adapter (such as the FTDI FT232RL chip) works. The way I think it does is the following: Picture a system composed of a MCU, a USB to serial adapter and the PC ...
0
votes
1answer
39 views

Current limit a bus-powered usb 3.1 hub

I'm currently designing a bus-powered usb 3.1 hub. It will use a USB-C for UFP and 3 USB-A downstream. The hub will only be acting as a sink. As of my understanding, since it may be connected to USB ...
1
vote
2answers
79 views

How to efficiently trigger QC and convert it to constant 5V and a peak of 5A?

Introduction For a university project I started working on RGB LED Shutter glasses, which are based on the idea of a kickstarter by Macetech. However, these glasses miss some features I was looking ...
0
votes
1answer
82 views

Send data from PC to USB [closed]

I want to send data from PC to microcontroller via USB and vice versa with Communication Class. I have used USB to Serial applications like Putty or RealTerm but they work only for COM Port and not ...
0
votes
0answers
45 views

What are these solderless (IDC) USB connectors called?

I was salvaging the connectors from a fraying micro usb cable (that came with an LG G4 phone) and found that the connectors have a unique construction (see image below, Source: https://www.alibaba.com/...
0
votes
0answers
44 views

Making a power supply for a 5V USB

I am making a battery bank for portable LED projects. The battery bank has a 5V 12A (60W) DC to DC converter DDR-60L-5. I would like to add some extra (nice to have) USB Female plugs to this battery ...
0
votes
0answers
27 views

jerky USB keyboard signal

I have made this contraption in order to quickly switch one keyboard between a PC and a laptop: The keyboard hooks into USB_A and it gets routed to either J1 or J2 depending on the position of a 3PDT ...
0
votes
1answer
35 views

Thunderbolt 3 connecting to USB 3.1

I know that Thunderbolt 3 uses the USB Type-C port, and I know that you can plug a USB cable into a Thunderbolt port and it will function as USB or Thunderbolt depending on the peripheral. However, ...
1
vote
1answer
96 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 ...
0
votes
0answers
37 views

RPi USB to Serial testing

I have a system like this: RPi -> FTDI(USB UART IC) -> RS485 transceiver -> RS485 TO USB board -> PC I'm having some trouble testing RS485 communication between the RPi and the PC. I'm using a simple ...
0
votes
1answer
39 views

Linux Drivers for FT232R [closed]

Background I am trying to build a USB Bridge circuit as part of a larger project. What I mean by that is, I wish to control a parallel out circuit based on information transmitted by the host ...
0
votes
1answer
52 views

Will cutting data line of USB port can supply the right amount of current it is attached to?

I want to use a USB cable and an AC to DC adapter as a supply to my electronics project. I plan to connect the USB cable to the USB port on the AC to DC adapter then I will cut the other end of the ...
2
votes
0answers
32 views

USB Type-C DRP Integrated Switch/Interface Chip

I would like to experiment with a power bank design with a single usb type-c port. The port should have dual role, source current for charging other devices as well as sink current for charging itself....
0
votes
0answers
52 views

STM32CubeMX USB error “Unknown USB Device(Descriptor Request Failed)”

My STM32 project has an issue about VCP on a CubeMX generated project. When the USB cable is plugged in, the windows10 can't recognise it and in the device manager panel, it says "Unknown USB Device(...
3
votes
1answer
263 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 ...
-2
votes
4answers
161 views

What is USB port on oscilloscope is for ? Can I power my Arduino from it? [closed]

I have a DS1102e oscilloscope (by Rigol,) picture attached below. I'm new to oscilloscopes and watched plenty of tutorials on how to use them, but I couldn't find the answer to my question. I need ...
1
vote
3answers
41 views

STM32 USB CDC: packet loss with active PC usage

I got a strange error in the USB CDC on the STM32F2. I use HAL implementation of the driver. The size of the buffer transferred in USBD_CDC_SetTxBuffer () is 4096 bytes. On the PC side, I accept the ...
0
votes
2answers
71 views

Low idle power consumption for USB PSU

I'm trying to find out how "good" 5V power adapters can be with respect to power consumption if: there's no attached power consumer, and/or the consumer takes very little power, such as an ESP32 in ...
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
62 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
38 views

USB 2.0 current supply [closed]

USB2.0 supports 0.5A for a downstream port. This means that the controller or hub can support a 0.5Amp USB load.I am not referring to the speed now. Suppose I have a load that runs on USB 2.0 speed ...
0
votes
1answer
49 views

Quick charge negotiation device [duplicate]

I'd like some advice on how I can negotiate a Qualcomm Quick Charger up to a certain voltage. I have a "dumb" appliance which usually uses its own transformer/"wall wart" at 12V 1A. I also have a USB ...
2
votes
2answers
51 views

USB 3.1 Gen 1 Transfer Speed Through Hub

If I have a USB Host Controller that supports USB 3.1 Gen 1 plugged into a hub, and 2 storage devices connected to the downstream ports, if I transfer data from one storage device to the other through ...
1
vote
1answer
97 views

Treadmill causes nearby electronics glitch

I don't know if it is right place to ask, if not correct/guide me. I recently have built treadmill workstation, where I could walk and work (rather than just sitting). But as soon as I turn on ...
2
votes
0answers
70 views

Embedded design with USB 3.1

I am trying to design a system that will transfer data between two storage devices on a PCB, preferably using USB 3.1 as speed is a major concern in this design. However, my understanding is that I ...
0
votes
1answer
71 views

Repurposing FT232 UART pins as parallel out

Background I am trying to build a USB Bridge circuit as part of a larger project. What I mean by that is, I wish to control a parallel out circuit based on information transmitted by the host ...
0
votes
1answer
58 views

Parameter is incorrect error with usb 2.0 but not with usb 3.0 with C# serial program

I've been struggling to understand an error that is happening. I've got a simple program that sends/receives bytes over serial, and up until yesterday I figured was working 100%. Basically, the issue ...
1
vote
3answers
108 views

Direct connection of UART serial port to USB type-C

in my project I have a USB type-C 3.1 2nd Generation (24 pins), which should provide 5V to a charge battery/battery system. In addition, there is a uC powered at 3,3V where the maximum voltage on GPIO ...
1
vote
0answers
55 views

PL-2303TA TTL UART data corruption

For a lot of projects, I use a fairly common USB to serial dongle called "Prolific USB to Serial" which uses a PL-2303 TA chip to allow USB to 3V TTL serial (i.e. this kind on Alibaba). I actually ...
0
votes
0answers
66 views

USB fail to pass ESD test even with TVS diode protection

I have read some articles about USB ESD protection and followed the suggestion to add TVS Diode Array USB6B1 in my design. However, my design is still failed to pass the ESD test and I don't know ...
0
votes
1answer
51 views

USB descriptor error on WIndows 10 - An invalid parameter was passed to a service or function

I have a USB 2.0 peripheral device based on an STM32 development board with hand-crafted code in C. This device works when connected to a Windows 7 computer but fails when connected to a Windows 10 ...
0
votes
2answers
87 views

Sharing a USB keyboard between two PCs on a button flip

The PCB for the task would comprise of a USB connector, two sets of 4 PTH for the two USB cables (one set towards PC 1, the other towards PC 2), shared GND and TX and a DPDT switch for separating the ...
0
votes
1answer
24 views

Resuability of TVS Diodes which are injected by some surge

I'm using some TVS diodes for USB protection. Even if their shields are connected to directly for source GND, I soldered some diodes for electrostatic issues. I searched this site and Korean wikis, ...
1
vote
1answer
76 views

Interpreting USB-C land pattern

I'm replacing USB Micro and USB B connectors on my PCBs for USB-C connectors, but only using USB 2.0. So I'm looking for a connector that isn't too complex to layout or hard to solder. I found this ...
2
votes
2answers
331 views

Component identification, between USB-C switch IC and connector

As the title really, can you identify this component? It's on a line connecting a USB-C switch IC (PI3USB30532) to the USB-C connector and I believe the line is for Display port functionality. How ...
2
votes
0answers
78 views

Way to power a monitor that requires 12 V 2.5 amps with a PC USB port [closed]

I am looking to see if there is a way to power a monitor like this: (https://www.amazon.com/gp/product/B07774L6TT/ref=ask_ql_qh_dp_hza) over one (or two) of the PC's USB ports, so theoretically it ...