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

Is usb relay board safe for high powers? [closed]

I'd like to use this usb device: https://www.aliexpress.com/item/32956365824.html?spm=a2g0s.8937460.0.0.64552e0ezng2GS to control 220-240V/AC appliances, drawing around 5A. Specifically, to control ...
0
votes
0answers
101 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 ...
0
votes
1answer
45 views

USB to Serial Disappears from Windows 7 Device Manager when Tx of board connects to Rx of usb-to-serial converter

I have two different usb to serial converters. Both have 5 pins with 3v3, txd, rxd, gnd, 5v. In the past I have used them to connect to raspberry pis and arduinos successfully. I have a board ...
0
votes
1answer
23 views

USB TYPE-C ALT-MODE DisplayPort + USB 2.0, is it supported?

DipslayPort 4 lanes are supported through usb type-c alternate mode. USB power delivery and usb 2.0 is always supported with the displayport alternate mode. Powerdelivery is not crucial however usb ...
0
votes
1answer
55 views

Battery charging over USB-C (using USB-PD?)

I'm designing my first PCB, a wireless Keypad/Macropad with a battery. I'm probably going to be using a 2Ah Li-Ion battery because there will be a lot of LEDs on it and I just want it to last longer ...
0
votes
0answers
47 views

STM32F103 USB-CDC does not work

I am trying to communicate my Maple Mini clone board with PC without using a USART hardware. I've configured MCU with STM32Cube IDE which has STM32CubeMX in it. I've enabled USB hardware, set it to FS,...
0
votes
1answer
56 views

Is a PD controller necessary if VBUS is always >5V?

I'm trying to implement a board that will use USB-C Power Delivery. We want to operate with 20V 5A input. If we know the source will always be at 20V, is it necessary to put a PD controller on the ...
12
votes
4answers
2k views

Is using the CH340G on a commercial product a horrible idea? [closed]

I'm developing a niche product that will be produced at a fairly low volume (low hundreds). I'm using an Atmega uC, and one of the requirements is the ability to be field-flashable by the user. My ...
0
votes
2answers
54 views

USB LPT Converter by FT232R

I am really green and even greener in these topics, but i am trying to create a project which will be converting lpt signal to usb signal via FT232RL. I was searching a lot in internet and i have some ...
0
votes
1answer
47 views

How to recognize an OTG USB port on an embedded device? [closed]

Sorry for the noob question, I'm trying to flash a new firmware on a tv box with rk3066. The datasheet says that the chip has OTG capability but there are 3 usb ports on the board and I can't tell ...
1
vote
2answers
60 views

How to add 0.2V per Ampère that device draws? (Voltage drop compensation)

I have noticed that many mobile phone chargers already do this: For each 1 A of current that the mobile phone draws, the charger's output will be increased by 0.05V or 0.1V or something similar, to ...
1
vote
1answer
33 views

Can we convert two type of USB ports by simply re-mapping the pins?

So there's lots of different port (or plug) out there like USB type-c, micro USB etc. Where I'm curious to convert between those port is it just simply like re-mapping those pins to the correct ...
0
votes
0answers
43 views

Solar Powered Arduino

I am using a USB Booster Converter as shown in the following link https://www.instructables.com/id/SOLAR-POWERED-ARDUINO-WEATHER-STATION/ and I would like arduino to power off during the day and light ...
3
votes
1answer
83 views

Replacing USB power with simple power supply

I've bought a bunch of dlink wifi cameras for my home. These all come with 5V wall wart psus connecting to the camera using what appears to be a simple 2 core cable terminated in a micro USB socket. ...
0
votes
3answers
99 views

USB Type C 3.1 PD to get DC20V output [duplicate]

I have a USB Type C notebook charger. I know it can supply 20V with 2.25A for my notebook. If I have a type-c breakout board, like this: https://www.ebay.com/itm/USB-3-1-Type-C-Female-to-Female-pass-...
1
vote
1answer
58 views

USB 2.0 termination. Single ended vs Differential

why are usb 2.0 differential traces terminated with 45ohms each to ground, instead of being terminated with a 90ohm resistor across the pair? and if it is equivalent, why would we choose one way over ...
0
votes
1answer
57 views

Problem to update firmware using bootloader to PIC18F4550

I followed the documentation on the Diolan's web site . I changed the project to be programmed to an PIC18F4550 and not a PIC18F4455 as it was originally written. The compilation succeed and I was ...
2
votes
1answer
36 views

Wireless SWD interface

Is it possible to have a wireless SWD interface with a simple Data and clock line like the cheap STM32 ST-Link clones. My initial, and flawed, idea was that I would have an ST-link plugged into the ...
0
votes
2answers
67 views

Updating PIC18F4550 through its USB?

I would like to be able to program and update the PIC18F4550 through USB. The PIC18F4550 already has USB, so, I don't need a USB to serial converter. On the microchip forum, I found this reference ...
1
vote
0answers
36 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: ...
0
votes
1answer
54 views

USB Port Amperage

So I have built a Benchtop Power Supply out of an old computer power supply to power and test misc. gadgets I have created. I would like to attach 2 salvaged USB ports from a junked computer to the 5v ...
1
vote
1answer
37 views

Impedance matching of USB device WITHOUT cable

If I understood correctly, when designing PCB with USB, the 90-ohm differential pair of D+/D- trace if for matching the USB cable differential impedance. Otherwise, there will be a signal reflection ...
0
votes
1answer
81 views

How a USB3 device is detected over a USB2 one?

I've got a hardware platform (setup as host) which it's got a USB2.0/3.0 Micro type B female port.The system is definitely capable to detect and interface USB3 devices (can see in the embedded OS the ...
0
votes
1answer
45 views

ATTiny167 USB Programming

On Aliexpress I am finding many cheap development boards with ATtiny167 and a USB connector. From what I can gather these boards permit USB programming through USB emulation. Can anybody point me to ...
0
votes
0answers
57 views

Programming ESP32 Microcontroller with FTDI's FT231XS USB Chip

Purchased FTDI's FT231XS from DigiKey I can see data from the ESP32 microcontroller but when I try to write to it, esptool just says connecting and nothing happens. I can use a usb to serial cable to ...
0
votes
0answers
38 views

PIC32 - USB protection

I have the schematic below. It works fine and has done so for a few months. However, today, it seems the PIC USB module has died when I powered off/on the board. Is there more input protection ...
0
votes
2answers
51 views

How can I center a servo using the FT311D?

I've got a servo which requires a 50Hz signal (which can be achieved with a 20ms period) and a 1ms-2ms dutycycle. This is your standard hobby servo. 1ms dutycyle makes it go left (0 degrees) 1.5ms ...
0
votes
0answers
44 views

CORTEX-M LPCOPEN USB-VCOM basics - proper way to build a simple FSM

I'm working on a project involving the LPC4370 mcu (LPC link 2 eval board) and Matlab. I need my embedded code to be user-reconfigurable from matlab: the user sends a command, the mcu replies. I'm ...
0
votes
0answers
38 views

Default behavior of a USB device in the presence of 5v [duplicate]

This is a follow on from this question Given a home made USB charger that simply provides 5 volts across the GND and VCC pins of a USB port, what should the default behavior be of any mobile device (...
0
votes
0answers
56 views

Minimum current to charge a 5v device? [duplicate]

I'm trying to use a DC-DC converter to charge a mobile phone. This is the converter....TRACO 12v-5v converter The converter is relatively low power, (5w) and can supply a maximum of 1amp. Testing ...
0
votes
0answers
19 views

Smart Charger (Tenergy TB-6AC) UART/USB interface

I have an old smart charger (Tenergy TB-6AC) which boasts the ability to interface with my computer. Upon further research, I have found that the software is no longer supported and no where to be ...
0
votes
2answers
94 views

How to design an STM32 board with UART over a USB connection?

Sorry if this seems a stupid question but I'm designing a custom PCB based on the STM32F303RE microcontroller and am slightly confused as to how the UART should be connected in the hardware in order ...
0
votes
3answers
78 views

Transmission from atmega32 to PC using max232 not working

Transmission from atmega32 to PC using max232 not working. When I checked the data from the Tx pin (in the realterm software) of atmega32 it was fine. But there was no output data from max232, when I ...
0
votes
1answer
60 views

USB VCC powered relay

Sorry for the dumb question, but my electronic skills are even lower than basic level. I need to switch on a relay when PC turns on. I made a simple scheme on the run, but I'm afraid it isn't good ...
1
vote
0answers
34 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 ...
0
votes
1answer
37 views

Designing QuickCharge device

I want to make an ultimate powerbank for my biking trips. This involves accepting a dynamo input and slow charging the battery pack with its ~3W and also cramming as much energy as possible as fast as ...
1
vote
0answers
48 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
2answers
58 views

replace USB A plug with micro-B

I have a tablet case with a keyboard in it. It came with a large USB type A plug and a large Y-adapter to USB micro-B. It has always worked. The tablet has a micro-B type connector and it works fine. ...
0
votes
1answer
84 views

USB 2.0 cable to USB C output [closed]

I've got a Streamdeck that has a USB 2.0 out as a fixed cable. I've bought a USB C 2.0 board that I want to wire up so I don't have a fixed cable anymore. My issue is I don't know what the two black ...
0
votes
1answer
36 views

Access Trinket m0 USB through GPIO pins [closed]

I want to solder a USB A connector to my Trinket m0 instead of using an adaptor cable to plug into my PC. Can I access Trinket m0 USB through GPIO pins? I have looked at the description of the ...
0
votes
0answers
26 views

Does BQ24195 charger detect USB modes DCP, CDP, and SDP by itself?

I use a BQ24195 chip as a charger. The datasheet is available here: http://www.ti.com/lit/ds/symlink/bq24195.pdf I need to identify if the USB is connected and if it is connected, in which of the ...
0
votes
3answers
67 views

IP Camera and USB data transmission over Ethernet Cable

Currently I am working on a project that requires connection of the Arduino and IP Camera over single Ethernet cable to a laptop and additionally supply power to a robot. The goal is to stream Video ...
0
votes
0answers
27 views

How to convert device that uses OTG to communicate with Android device to Bluetooth?

We currently have a piece of hardware that uses an OTG cable to communicate with an Android application. We are currently using USB Host to communicate with the Android device, but we hope to offer a ...
0
votes
1answer
43 views

Shield wire in Micro USB extension lead appears to be ground

I am currently working on a Bluetooth project which needs micro USB for charging a battery. My original plan was to use a female surface-mount micro USB socket and connect its +5v and ground pins to ...
0
votes
1answer
117 views

Wiring a 7 pin laptop webcam? [closed]

I'm trying to connect an old laptop webcam I bought for $0.93 on eBay to an Arduino Uno microcontroller. Since I currently don't know what all the pins on the webcam are used for, I'm trying to ...
1
vote
1answer
39 views

USB D+ D- not present

So I am designing my first pcb and using an AT32ucb µc. It says in the data sheet it supports usb interface but on the pin-out listings and functions I can only find usb-id and usb-VBOF. So what am ...
0
votes
0answers
39 views

No data being displayed from ADC0804 in program using FT232RL

I'm attempting to read analogue voltage from a potentiometer by converting it into digital using ADC0804 and then passing the data onto y pc using FT232RL. As it stands the ADC0804 circuit is working ...
6
votes
4answers
2k views

Can a USB port passively 'listen only'?

I have a small dedicated controller built around an Arduino that accepts commands from a PC over USB (serial). The communication is one-way -- the controller never sends data back to the PC. Now I ...
0
votes
1answer
35 views

USB internal control to on/off a pc fan molex circuit

I am new to electronic circuits so I might not have the correct nomenclature for some items. Description: I have 3 high power 12V PC fans (NON PWM) connected to a hub that draw power from MOLEX ...
0
votes
2answers
76 views

Glue gun glue as usb port filler

My front dual USB port is broken on my old PC, ie it consists of a gaping hole with distorted pins inside (on the inside, it's still plugged on the motherboard, in fact, it's welded on it). I have ...