Author Topic: Beginner's USB question  (Read 1943 times)

0 Members and 1 Guest are viewing this topic.

Offline josefmtdTopic starter

  • Contributor
  • Posts: 11
  • Country: id
  • YD0ABH
Beginner's USB question
« on: October 05, 2018, 06:29:07 am »
Hello everyone, I am still a beginner in designing boards and recently I created my first board with USB and it didn't go as smooth as I planned.
 
I designed a board with USB and ended up messing up with the USB port pinout. I tried to work around it and soldered a wire directly to the CH340, as attached. In my board, there is a FM radio module, and every time I use the radio to transmit, it creates noise in the USB 5V pin and it can go up to 5.5V, which according to the datasheet is out of the range of the normal operating mode of the CH340.

This also happens when I use my handheld transceiver nearby the USB connection. Is it safe to assume that this is only caused by my poorly made USB cable I soldered directly to the PCB?

Is there any improvement that I can add to my USB port circuitry to reduce impact of RF interference from my radio to the USB connection? What I have tried is adding a 10nF capacitor I have laying around and ended up making the oscillation worse.

The rest of the circuitry works fine, the only issue is the USB loses connection in presence of RF signal nearby.

Thanks for your input
Junior Electronics Engineer
 

Offline Mario87

  • Regular Contributor
  • *
  • Posts: 249
  • Country: gb
Re: Beginner's USB question
« Reply #1 on: October 05, 2018, 11:31:45 am »
What is the frequency of the noise? an RC filter may work to filter it out, or even just some shielding??
 

Offline malagas_on_fire

  • Frequent Contributor
  • **
  • Posts: 591
  • Country: pt
  • Kernel Panic
    • Malagas Lair
Re: Beginner's USB question
« Reply #2 on: October 05, 2018, 12:09:04 pm »
As stated in the previous comment you could use a shielded USB cable such as this for example:

 https://goo.gl/images/txxtx3

They can be found on good quality USB A to micro / mini B cables that have a ferrite bead.
 
If one can make knowledge flow than it will go from negative to positve , for real
 
The following users thanked this post: josefmtd

Offline vidarr

  • Frequent Contributor
  • **
  • Posts: 283
  • Country: br
Re: Beginner's USB question
« Reply #3 on: October 05, 2018, 01:43:09 pm »
A shield and one of these ferrite beads like said above (or something like it, smaller, etc). There are ferrite components you can use in any old electronics you have to recycle.
 

Offline jeroen79

  • Frequent Contributor
  • **
  • Posts: 529
Re: Beginner's USB question
« Reply #4 on: October 06, 2018, 10:13:39 am »
The unshielded wires look quite long.
Can you shorten them a bit?

What went wrong with the USB connector?
I see some traces going to the chip from the connector.

If you layed out the traces wrong then I would remove them and solder in short wires instead.
 

Offline malagas_on_fire

  • Frequent Contributor
  • **
  • Posts: 591
  • Country: pt
  • Kernel Panic
    • Malagas Lair
Re: Beginner's USB question
« Reply #5 on: October 06, 2018, 11:56:47 am »
As stated in the previous comment you could use a shielded USB cable such as this for example:

 https://goo.gl/images/txxtx3

They can be found on good quality USB A to micro / mini B cables that have a ferrite bead.

I add another example of a shielded USB cable.

https://goo.gl/images/JdwcnC

The Sony phones from 2011 ~2013 have USB cables with ferrite beads on each terminals.

If one can make knowledge flow than it will go from negative to positve , for real
 

Offline hsn93

  • Regular Contributor
  • *
  • Posts: 114
  • Country: bh
-------------------------------------
 
The following users thanked this post: josefmtd

Offline josefmtdTopic starter

  • Contributor
  • Posts: 11
  • Country: id
  • YD0ABH
Re: Beginner's USB question
« Reply #7 on: October 08, 2018, 01:22:48 am »
What is the frequency of the noise? an RC filter may work to filter it out, or even just some shielding??

Somewhere around 148MHz, which is consistent with the radio my FM transceiver is transmitting at

The unshielded wires look quite long.
Can you shorten them a bit?

What went wrong with the USB connector?
I see some traces going to the chip from the connector.

If you layed out the traces wrong then I would remove them and solder in short wires instead.

I tried shorting them out a bit, but it didn't help as much as I expected it would be, yes the micro USB layout was wrong, I mistook the D- and D+ line so I had to solder the USB wire directly on the chip.

A shield and one of these ferrite beads like said above (or something like it, smaller, etc). There are ferrite components you can use in any old electronics you have to recycle.
Would adding a SMD ferrite bead between the USB power and the USB TTL IC supply pin help?
As stated in the previous comment you could use a shielded USB cable such as this for example:

 https://goo.gl/images/txxtx3

They can be found on good quality USB A to micro / mini B cables that have a ferrite bead.

I add another example of a shielded USB cable.

https://goo.gl/images/JdwcnC

The Sony phones from 2011 ~2013 have USB cables with ferrite beads on each terminals.


Thanks, I'll be sure to use a decent USB to alleviate this issue, the poorly made USB that I tried making is definitely bad

https://www.ftdichip.com/Support/Documents/AppNotes/AN_146_USB_Hardware_Design_Guidelines_for_FTDI_ICs.pdf

section 2.2
Thanks for this application note!
Junior Electronics Engineer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf