Questions tagged [usb]
USB is Universal Serial Bus. If your question relates to a specific chip, please mention it in your question.
3,589
questions
1
vote
1
answer
131
views
Using pull down resistor?
I have made an application with 3 Omron IR LED Photo sensors. This sensor can't be bought anymore, but here is the datasheet.
I used a transformer 230 AC - 24 AC. Due to induction? the sensor output ...
2
votes
1
answer
579
views
What USB-C Footprint is this?
I have to replace a USB-C connector. After desoldering I found a rather uncommon footprint. Has anyone seen this footprint before and knows where to find a new connector of this type?
Thank you!
-1
votes
1
answer
118
views
2 LEDs on 1 SPDT switch
I'm a beginner who saw a video from YT channel DIY Perks about hooking up a 3w LED to a phone and decided to try it, changing it a little bit.
The basic idea is getting power from a phone using a USB ...
29
votes
6
answers
9k
views
Why don't we have a circular USB port? [closed]
From what I understand, USB has 4 lines just like an audio port. So why can't we have a USB port which is circular? I feel it can be more convenient to plug in and also would have a smaller form ...
2
votes
2
answers
419
views
Is it possible to carry RS232 signals over a USB cable?
Is it possible to carry RS232 signals (115200 baud rate) over a USB cable? I don't want to use FTDI's RS232-USB converters. I just want to carry TXD, RXD and GND signals over a USB cable. Are my ...
0
votes
2
answers
330
views
What is the inverse of an FTDI FT232R? [closed]
I have an existing device that takes the UART data from the internal CPU and uses an FT232R to present that UART as a USB device. It was designed to be easy to connect to a PC since most have FTDI ...
1
vote
0
answers
59
views
Gamepad changes descriptors if it's connected to an OTG port vs normal USB host port, but how does it know?
I have an MSI Force GC20 gamepad. It has several different "modes" which can be selected which basically allow it to reset and offer different USB descriptors. For example, it can be several ...
0
votes
1
answer
61
views
Is it possible to have a 2-in-1 USB device that is a Flash Drive and Power Bank? [closed]
I spent over an hour with no luck looking for a device that would provide flash storage and provide charging power to another device at the same time. I would think this would be possible as you can ...
1
vote
0
answers
102
views
My usb ports outputs different voltages
I have made circuit that runs on USB. however, when i plugged into front panel of my pc or raspberry pi, it only gets around 3.3v, but when i plugged it into back of my pc, it gets 5v as intended. ...
2
votes
1
answer
536
views
STM32, mass storage device. how to properly erase memory sectors?
I want to organize a USB stick based on STM32F105RBT + AT45DB041.
Problem: after reconnecting the device to a PC, windows7 asks to format the disk.
Problem identification algorithm:
Connect to PC
...
0
votes
2
answers
2k
views
Is there a downside of using PCB printed USB connector?
Typical USB Type A receptacle is as shown in this image from Molex 48037-1000, which can be mounted on PCB.
I have seen some products with USB connectors printed directly on the PCB edge like this ...
4
votes
1
answer
831
views
STUSB4500: Unable to negotiate USB-C PD voltage higher than 5V
for my project, I have decided to use STUSB4500 for negotiating 20V for powering external remotely controlled LED lighting.
My circuit design comes from the minimum implementation in the datasheet, ...
3
votes
0
answers
984
views
USB C default voltage output 5V? [duplicate]
I have a USB C powerbank and require it to power a "dumb" circuit, i.e. just a USB C connector with, for example some LEDs on it. There is no microcontroller.
I used a voltmeter and a USB C ...
3
votes
1
answer
530
views
How do I short D+/D- pads on usb type c connector?
I am working on a design which utilizes a USB type c connector. My question is what is the proper way of connecting the duplicate D+/D- pads? and do you recommend a specific trace width/ via size?
You ...
0
votes
1
answer
173
views
Programming CC3200 Microcontroller and Separate Flash Without a Development Board
I have an "Alfie" device which has wifi and USB, but I never
use this device, so would like to change its function.
It uses the CC3200 microcontroller (which has a little ROM)
and a separate ...
1
vote
0
answers
214
views
with a bq24190 charging IC how can I feed the usb bus when in host mode (OTG)
I'm fairly new to this and I am trying to build a board around a stm32f750z8 and I'm on the USB OTG/charging part.
The board will have only one USB port in OTG mode,...
9
votes
1
answer
2k
views
Is this MOSFET upside down?
I'm looking at existing circuits and trying to understand them so I can design my own. Also to improve my electronics knowledge, for some reason MOSFETs have never quite sunk in for me.
I came across ...
1
vote
2
answers
284
views
Read USB data to arduino [closed]
If I take a USB cable connect it with my cellphone from 1 half and in the other end I connect VCC and GND to VCC and GND pins of the arduino and the D+ and D- pins to digital pins and use a ...
0
votes
1
answer
659
views
Why did my Arduino Uno give me a shock?
My Arduino Uno R3 gives me an electric shock upon touching one of its pins when my legs are on the ground.
The shock is not that trivial since if the pin is related to some LED the LED lights up which ...
0
votes
1
answer
107
views
How exactly does a computer know what device is connected on the USB port? [closed]
I am working on a mini that uses USB.
This is probably something that I can get in the huge USB docs but if I can get a brief response I'll be happy. So since almost all devices interface with the ...
2
votes
1
answer
534
views
Reading EEPROM memory (Winbond W25M02GV) with FT4222H USB bridge
I would like to read an EEPROM Memory (SPI Flash Winbond) using an FTDI USB/SPI bridge (FT4222H).
I developed a c++ application that connects to the FTDI and reads data from the memory(and using the ...
0
votes
1
answer
95
views
What is this socket's name
I need the socket that looks in the picture. It is like female USB but not with metal case, only inside of female USB. I am looking for black part I will print with 3d printer white part. And is there ...
1
vote
0
answers
36
views
Delayed Switching Between USB Peripherals
I have two USB sensor pads that cannot be connected simultaneously to the computer. Currently I am using a USB hub with individual on/off switches for each port. To change pads the user MUST turn off ...
2
votes
1
answer
1k
views
What is the difference between a USB port and a USB receptacle?
The Wikipedia article USB hardware states:
Standard connectors
The type-A plug. This plug has an elongated rectangular cross-section, inserts into a type-A receptacle on a downstream port
on a USB ...
0
votes
0
answers
242
views
Connecting a smartphone android camera while charging the phone
I am hoping for advice. I have a android camera (the same as in this video: https://www.youtube.com/watch?v=AvWIp5vtsEU) and want to connect it to a Sony phone to see if I can use it as a streaming ...
0
votes
1
answer
44
views
Switching USB plug between 2 devices
I wonder if it possible - If I were to use a 8PDT switch, to switch the 8 wires of a USB3 cable between 2 output ports from 1 input, would this be sufficient? Or are there issues I may run in to that ...
0
votes
3
answers
4k
views
How to charge a 4S 18650 (16.8 V) battery pack with a 5 V USB input source?
I'm planning on building a 4s 18650 (16.8 V) lithium-ion battery pack with a 4S BMS with balance function to replace an old built-in NiMH battery pack.
I would like to charge the new lithium battery ...
3
votes
3
answers
1k
views
Alternatives to FT232H for USB to SPI communcation
For my current use case, I am using FT232H as a general purpose device that changes my USB packets into SPI information as an SPI controller for my SPI peripheral. My SPI peripheral can support upto ...
2
votes
3
answers
515
views
AC overvoltage protection for bike dynamo (alternator)
I built my own MOSFET active rectifier and DC/DC stepdown for a bike dynamo hub and wanted to use it for charging a mobile phone.
The circuit is working, but there is one thing which needs to be ...
1
vote
1
answer
336
views
Which USB 2.0 chip to interface PC with FPGA?
I'm planning to build a software defined radio.
I'm looking for some chip to get out data from FPGA, and sending it inside. I need to use parallel interface. I read about an FT4232, but these don't ...
0
votes
1
answer
193
views
Connecting PIC32 through FT312D to Android tablet
I need to connect my PIC32 to an Allview Android tablet over USB so that the tablet will charge from my PIC board and also be able to communicate at the same time.
I can connect the PIC32 to a FT312D ...
0
votes
1
answer
74
views
Connecting a PIC32MZ with an Android tablet via USB
I have an Allview tablet running Android I want to connect to my board using USB. An application on the Android tablet would control the micro which in turn would control a bunch of relays and read ...
2
votes
0
answers
372
views
Poor man's oscilloscope - more simple
In our lab we have NI cards and work with -10 to 10V. Oscilloscopes are rare and some mobile and quick-and-dirty solution would be fine for debugging. Therefore the 'poor man's oscilloscopes' that ...
1
vote
1
answer
945
views
Standard SCPI Error codes?
I'm writing code that sends SCPI commands to various instruments (power supplies, o'scopes, data acquisition, etc.)
The TDK Lambda power supply is returning the code "C01" which means "...
2
votes
3
answers
833
views
Deciding between USB and UART for interfacing with a Qt application
I'm planning on writing GUI application using Qt in C++ that would interface with the microcontroller. In other words, it would be taking user input and displaying something received from the MCU.
...
0
votes
0
answers
184
views
Panel mount micro USB extension cables: how do they work?
I need to expose the usb port on an arduino pro micro to the outside of a project box. I've been looking for some sort of panel mount extension cable, and all I've been able to find are ones that look ...
2
votes
2
answers
203
views
How is USB-C able to be used for DisplayPort, Headphone jacks, OTG etc?
My smartphone has a USB-C which can be used with several adapters to drive displays via DisplayPort, headphones via 3.5mm jack, and connect to other devices via master OTG or slave mass storage.
My PC ...
2
votes
3
answers
14k
views
How do I wire up an aftermarket USB Type-C connector so that it works?
I recently broke the male port of my USB-C laptop charger. I already got a new one, but I would like to fix and repurpose the old one to be the power for my Raspberry Pi 4 instead of throwing it out.
...
0
votes
1
answer
159
views
Is this a standard cable? (USB Type A + unknown)
I have a cable that I cannot match with any device. My question is whether this is a standard cable, or rather a proprietary invention.
On one side there is a standard USB Type A male connector.
The ...
1
vote
0
answers
2k
views
How to uplad program into Arduino Nano Clone with CH340?
I've started to build a Arduino Nano with CH340g using this schematic:
Which use the CH340 chip :
With one difference, I've use SPI pin to program the MCU.
I've uploaded OptiBoot to Atmega328 and ...
2
votes
2
answers
1k
views
Altium Designer - Net has only one pin | Pin out of grid | Floating Label | Differential Pair
I would like to ask a few questions about designing PCB boards on Altium Designer.
I am currently designing a STM32 board, but having a few issues with the schematic design.
Upon reading some post ...
0
votes
1
answer
170
views
USB3.0 high speed data lines routing
I've done a PCB design where I've got a USB3.0 interface using non-standard connectors.
The interface got a hub with 4 USB3.0 data lines and after a intensive tests only one channel runs into ...
2
votes
1
answer
278
views
Omitting USB 2.0 pins on a USB 3.1 connection
I am in a situation where my project requires the use of a slip ring so wires can freely rotate. I will be limited to the number of wires that can run through it, which is a total of 12.
I have a USB ...
1
vote
0
answers
172
views
can someone help me build a usb jig to force android device into recovery
Years ago i bricked a phone trying to install a ROM not designed for that phone. As a result the phone went into a bootloop and would not go into recovery mode. Researching the problem i found a ...
3
votes
2
answers
343
views
Can a bad USB-C PD charger puff up a battery?
I have a notebook which supports USB-C PD charging. I've been using 3 chargers that I have. The battery that came with the notebook (original) puffed up after about 1 year of usage, but I didn't seem ...
2
votes
1
answer
486
views
How to build an usb c to micro usb cable? [closed]
I bougth a new phone, it came with usb type c charger, i mean there's a usb c port on the charger and a usb c to usb c cable. I had a wireless charging base wich i want to use with my new phone, this ...
1
vote
0
answers
3k
views
reading data stream from usb bulk endpoint using libusb
I’m writing a program to read and write data to a usb device. Right now I don’t have the device so I’m using a loop board just to write the software. When I’ll get the actual device I will need to ...
0
votes
1
answer
196
views
Why isn't software USB/TTL on ATmega328p working?
I've tried to implement an AVR-CDC project. I found this website which is recommended by V-USB (I know it is pretty old project.)
I drew this schematic:
I've built a PCB basef on it and then I've ...
0
votes
0
answers
64
views
Auto Switching USB ports when in use
I'm looking at adding multiple USB C ports to a PCB design that all perform the same function (power and data in device most). How can I switch to a port automatically when in use and disable the ...
0
votes
1
answer
590
views
How to make an Arduino (ATMEGA16U4) like, software USB to serial on Atmega8u?
I've start to build a project base on Atmega328 and I need to connect to it(via USB for availability of the USB port) for debugging (I prefer to debug it with serial communication), and I don't want ...