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.

3
votes
0answers
1k views

STM32F0 USB device - unexpected Device_Qualifier descriptor request

Edit I may not have asked the correct questions here. Please do not attempt to answer before I edit again to remove this message. Summary I'm developing firmware for a USB device, and I can't get ...
2
votes
0answers
40 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....
2
votes
0answers
77 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 ...
2
votes
0answers
345 views

DIY 4S Li-Ion battery pack

I am in need of some help designing my battery pack. I have a few concerns, mostly around charging. My plans consist of using a microUSB boost converter to bring the voltage to 16.8V for charging. ...
2
votes
0answers
222 views

Transzorb for MCP73831 USB LiIon Charger?

The datasheet of MCP73831 (a small LiIon charger device) recommends a transzorb on the USB power input (VDD) for input over voltage protection. See Section 6.1.1.2. Absolute maximum ratings for VDD ...
2
votes
0answers
2k views

Understand the shielding of a USB device

I have a GPS PCB which has regular USB pinouts (GND, +5V, DATA- and DATA+), but in addition has one stranded wire which is connected to USB type A plug. Marked as "USB connector" on the image: What ...
2
votes
0answers
97 views

Getting more than 0.5W from USB OTG

Has anyone actually measured the maximum amount of power that can be drawn from a smartphone's (say Samsung S4) USB OTG in host mode? I've read people suggest 100mA but can't find if anyone has ...
2
votes
0answers
2k views

Convert a wired headset to a wireless one

new to the board and not caught up with current technology, but I can handle myself when it comes to soldering and small electrical appliances. I have a headset that I really love, but the wire ...
2
votes
0answers
205 views

Send data from FIFO memory module to USB

I have a FIFO module running at 24MHz, producing 1 byte per clock. Then it produces 24MB/s. I need to send this data to PC through USB or Ethernet. How can I achieve this? Doesn't exist some USB ...
2
votes
0answers
4k views

STM32F4 USART USB communication with PC?

I am trying to use STM32 provided example of USART called "HyperLink" which basically runs USART1 on ports PA9 and PA10. The problem is that my computer does not find any new COM ports. Do I need ...
2
votes
0answers
3k views

Interfacing C# application with PIC24FJ256GB106 over USB

i made some kind of a meteo station. I get some temperatures (celsius degrees), UV radiation levels (UV index), solar radiation (W/m\$^2\$) and soil moisture. These values are shown in a C# ...
1
vote
0answers
26 views

Changing between usb power and battery power using P-Channel MOSFETs and a CMOS Invertor

I am trying to switch between USB power and a single cell lipo using two mosfets. Would the circuit below be ideal or is there a more efficient/reliable way to do this? When the USB is connected the ...
1
vote
0answers
25 views

Looking for circuit, reversing polarity of DC motor

Consider I have 2 inputs, A and B. I need help with a circuit that does the following if only A is active (A,B : 1,0), then the motor should run clockwise if only B is active (A,B : 0,1), then the ...
1
vote
0answers
31 views

How to get correct response from UPS HID

I have a UPS HID device and I'm trying to use LibUSB to get data from it. The response expected is in the format below: ...
1
vote
0answers
33 views

USB PD Power Delivery Skip 9V Requirement

Is there any way possible to implement a USB C PD port that only sources 5V and 15V? As I read the spec (USB Power Delivery Specification Rev. 3.0, Version 1.2, June 21, 2018) it seems that I cannot ...
1
vote
0answers
47 views

Adapt existing usb-2 otg device to usb-c but use usb-2 mode

there are number of articles out there, like this one: http://www.ti.com/lit/wp/slly017/slly017.pdf But I'm not super confident in my abilities here so I'm wondering if someone could proof my ...
1
vote
0answers
59 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 ...
1
vote
0answers
63 views

USB CDC device send response of first for second data

I'm working using atmel studio 7.0, the code which i'm using is USB Communication Device Class (CDC) for ATSAMD21. My application is to read the command from the host to the device and perform the ...
1
vote
0answers
43 views

Controlling GL646USB GPIO pins

I have this USB scanner from my dad that was made back in 2002, that apparently uses an old all-in-one GL646USB chip from Genesys to control the stepper motor, CCD sensor and provide some GPIO pins. ...
1
vote
0answers
65 views

LAN9512 keeps disconnecting from RPi Compute Module

Main problem I'm using a RPi CM and I connected a LAN9512 to it. However it keeps disconnecting: ...
1
vote
0answers
172 views

How can I measure the power given to a USB WiFi adapter's antenna in dBm or mW?

I have an Alfa AWUS036ACH USB WiFi adapter, and would like to know how much power is being given to the antennas (in dBm or mW). The Amazon link to it is here: https://www.amazon.com/Long-Range-Dual-...
1
vote
0answers
63 views

USB charging in place 3 Li-Ion batteries spaced evenly in parallel on LED string

I am a total noob in electronics, and so some other answers to this question are already over my head. I am working off the inspiration of this design of an LED hoop: https://philihp.com/blog/2011/diy-...
1
vote
0answers
60 views

How to read all memory from damaged CF?

My CF card has been corrupted. I don't know how is that happened. I just using new card (five months old) on EOS 5D Mark II with installed ...
1
vote
0answers
5k views

STM32 USB/Virtual COM port problems

Last week I successfully could connect my STM32F103C8T6 (aka Blue Pill) with Virtual Com Port. My OS is Windows 10, 64 bit. In the Ports (COM & LPT) section of Device Drivers, COM8 was shown and ...
1
vote
0answers
301 views

CAN Bus Debug MCP25625 CAN to SPI to USB (MCP2210)

I am trying to build a CAN - USB converter using the MCP 25625 chip to convert CAN to SPI first and then receive/send the SPI data on an MCP 2210 chip of SPI interface and consequently convert to USB. ...
1
vote
0answers
3k views

STM32 USB_CDC Firmware to autodetect by Linux

We are developing a custom board to control brushless DC motors. The board has STM32F405RGTx. We are now trying to make USB CDC communication work. We generated the code using STM32CubeMX. ...
1
vote
0answers
135 views

How to force USB device to drain 500mA Current for charging?

I designed an AC-DC converter circuit(220VAC to 5VDC@700mA) to create a smart phone USB charger. The Transformer that I used in my design can supply only 700mA current. I searched the Web and ...
1
vote
0answers
42 views

Active EN Pin When Device is Plugged in

I'm looking to use a TPS61xxx series DC-DC boost converter for a charger, but I only want the converter to be active once the USB cable is plugged into the receptacle. Now from my understanding, some ...
1
vote
0answers
619 views

Micro-USB connector in middle of PCB?

I have a unique situation where I may want to place a Micro-USB connector on a PCB, but not on the board edge. Mechanically, it would make sense if I could place it towards the middle of the board. ...
1
vote
0answers
226 views

Atmel ARM, USB, and an SD Card as a MSD?

I'm currently trying to run the SAM L21 as both a CDC and an MSD over USB. Thankfully there is example code here to get me started. I can move files into the on-board ram just like any other storage ...
1
vote
0answers
1k views

How to troubleshoot serial communication?

I connected my computer to a RM-BR300 controller to read its data, to try and mimic its functionality in the future. I'm using RealTerm and a USB to RS422 converter for the job - here's the result: ...
1
vote
0answers
70 views

USB connections, which is the most common and reliable?

I've found a lot of different ways to connect USB power and D+ D- in EVBoards and other kind of boards. I've summarized this ways in this schematic: (Right click and open image to zoom) As you can ...
1
vote
0answers
101 views

Internal Programmable ROM of CP2102 (USB to UART)

I am using CP2102 device (USB to UART) in my project. It has internal programmable ROM t0 configure product ID. I tried in there tool via USB and it works. Now, I want to programming the ROM via my ...
1
vote
0answers
120 views

USB signal analysis

I have a device that I want to control it has window software that runs it, and a complex interface. I just need a pair of commands, also I know very little about usb device hacking, and signal ...
1
vote
0answers
307 views

FTDI2232d + TM4C1294 configurations

I posted this question before, but I am still struggling with this. I captured a schematic and others in this time so it should be more clear to see what's going on. I was given a custom board ...
1
vote
0answers
159 views

PIC M-Stack “add . to include” confusion

I am experimenting with the open source USB stack called M-Stack for the first time. I decided to start by building the HID mouse sample application, but I had to create my own project configuration ...
1
vote
0answers
1k views

what is the diffrence between hid and cdc usb device?

I was not able to get the difference after much googling.I am a newbie in microcontrollers and doing a project on Temperature controlled fan using LabVIEW and PIC18F4550. I need to know how ...
1
vote
0answers
120 views

How to restrict power output to a USB client?

...or, how not to charge my phone when I'm using it as a GSM modem in USB tether mode? I've asked this on Unix&Linux but it seems there's no simple way to do it in software. The problem: In USB ...
1
vote
0answers
190 views

How to setup a usb Host device

How can i setup a usb host device with pic32MX795 with a pendrive as a device . I have been able to detect the pendrive and enumerate it partially , but cannot create a file on the pendrive . I am ...
1
vote
0answers
81 views

USB Clamping for OV protection

For our current design we require overvoltage protection on USB D+ and D-. I am aware that for USB, the total line capacitance of the line should be less than 10pF. We are planning to use a circuit ...
1
vote
0answers
142 views

Eagle: Circular area under component colliding with traces

I am creating a PCB layout in Eagle and I noticed that when I add in the ground plane, there are two unfilled circular areas under the usb mini type B socket. Does that area need to be empty? I ...
1
vote
0answers
147 views

Not seeing set_address packet using USBTrace

I'm currently exploring the wonderous world of the USB Stack. I'm using a PIC18F2550 and the USB IO example available at www.moty22.co.uk. The code works as expected, but when using USBTrace (or any ...
1
vote
0answers
2k views

PIC32, USB CDC + HID Composite Device fails with Code 10

I've been busy building a CDC + HID composite USB device for the past couple of weeks, and stuck with This device cannot start. (Code 10) error in Windows 7. When looking at the device through ...
1
vote
0answers
313 views

USB hub acting differently towards another hub and device

I have a USB hub that supports individual port-switching. I'm shutting off a port using the libusb library. When there is nothing connected to the port, the power pin drops from 5V to 1.5V and slowly ...
1
vote
0answers
361 views

What is the best way to take multiple near-simultaneous pictures from 6 cameras on a development board?

I thought I could use a powered usb hub, connect the 6 cameras to it, connect the hub to the raspberry pi and capture the images one after the other quickly using the motion package. But I can't find ...
1
vote
0answers
2k views

NTSC -> ADC -> USB. A video digitzer circuit

I'm working on a project that ultimately needs to incorporate an analog video camera input, digitizing it and spitting it out a USB port as an MPEG stream. My general aim is for roughly a VGA ...
0
votes
0answers
8 views

Charging DJI's batteries with USB PD

I want to charge DJI's batteries from USB TypeC PD charger. The charger can provide 60W output on its USB PD port. I'm planning to use an USB PD module (which gets me the 15V output from this PD port,...
0
votes
0answers
15 views

Combining power input and USB data port for a Raspberry Pi Zero (W)

I am attempting to design some peripheral circuit around a Raspberry Pi Zero W for a portable project. It will be powered by a lithium battery. I want to bring out the USB port of the Pi; I also ...
0
votes
0answers
24 views

contactless sensors (hall-effect) for joystick axes, repurposing old joystick (Cypress PSoC, USB-HID)

I've been thinking about making a project where I repurpose the mechanical parts of an old joystick (ch products), including the buttons. Such that I will drive the whole system with Cypress CY8CKIT-...
0
votes
0answers
85 views

stm32 USB composite device

There is a need to implement on stm32 usb composite device. The problem is that all USB devices are the same, will not work in parallel (three smart card readers connected to one UART). That is, you ...