Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 14 of 14

Thread: Teensy 4.0 broken USB

  1. #1
    Senior Member
    Join Date
    Nov 2020
    Location
    Czech Republic
    Posts
    125

    Teensy 4.0 broken USB

    Hi,
    I have Teensy 4.0 and project where I send data via USB cable to PC. But quite offten I hav problem, if I touch the cable or Teensy in plastic box, then Teensy is starting connecting and disconnecting and I have to move with micro usb connector many times to connect again. Do you have eny experience how to solve it? Maybe use any external usb connector?
    I need very durable connector solution beacuse I use my project in field mesurements and speed of USB in the same time.

    For you information, this is the box:
    Click image for larger version. 

Name:	box.jpg 
Views:	27 
Size:	149.9 KB 
ID:	30252



    Thank you!

  2. #2
    Senior Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    1,248
    Sounds to me that the USB cable is not inserted all the way into the Teensy 4 USB connector. Is the opening in the plastic housing large enough to let the cable through? Can you show us a close-up photo of the Teensy USB connector with the USB cable plugged in?
    Another possibility is that 1 or more pins of the USB connector on the Teensy 4 have a bad contact due to mechanical stress. Or pins from the USB connector to the PCB have come partly loose.

    Paul

  3. #3
    Senior Member
    Join Date
    Nov 2020
    Location
    Czech Republic
    Posts
    125
    Yes, connector is all inserted (tried without box). Seems loose a lot. Tried many cables. I can move the connector left/right very easily and Teensy is connecting / disconnecting. Is there any way how to correct it?
    1) Because this is project for mesuring at construction site, lot of dust, etc. - how to solve heavy duty usb connection to laptop?
    2) Is there another way how to connect to laptop and send about 500kB in less than one second?

    Click image for larger version. 

Name:	connector.jpg 
Views:	16 
Size:	40.5 KB 
ID:	30253

  4. #4
    Senior Member blackketter's Avatar
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    356
    Quote Originally Posted by PaulS View Post
    Or pins from the USB connector to the PCB have come partly loose.
    I'd check those surface mount pads on the USB connector very closely and try reflowing the solder to them.

    If that fixes it, think about reworking your enclosure to use a more robust connector, maybe with something like this:

    Click image for larger version. 

Name:	3258-02.jpg 
Views:	16 
Size:	89.4 KB 
ID:	30254
    https://www.adafruit.com/product/3258

    If that connector breaks, then you can replace it more easily than fixing or replacing the Teensy.

  5. #5
    Senior Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    1,248
    Are the pins in the orange circle still connected OK?

    Click image for larger version. 

Name:	T4 USB pins.jpg 
Views:	17 
Size:	95.6 KB 
ID:	30255



    1) Because this is project for mesuring at construction site, lot of dust, etc. - how to solve heavy duty usb connection to laptop?
    2) Is there another way how to connect to laptop and send about 500kB in less than one second?
    On 1: perhaps this kind of connector?

    Click image for larger version. 

Name:	KW-1497_0-766x511w.jpg 
Views:	13 
Size:	32.7 KB 
ID:	30256

    Micro-USB and heavy duty are not companions...

    On 2: you may want consider a high speed serial connection with an industrial dust/water-proof 3-pin connector?
    3) a metal box may also be wise on a construction site.

    Paul

  6. #6
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,376
    You might find one of these with it's protective cap more robust in those sort of environments. That is as long as the cap is replaced each time.
    Click image for larger version. 

Name:	USB Extension Socket right angle.png 
Views:	15 
Size:	117.0 KB 
ID:	30257

  7. #7
    Senior Member
    Join Date
    Nov 2020
    Location
    Czech Republic
    Posts
    125
    Quote Originally Posted by PaulS View Post
    Are the pins in the orange circle still connected OK?

    Click image for larger version. 

Name:	T4 USB pins.jpg 
Views:	17 
Size:	95.6 KB 
ID:	30255





    On 1: perhaps this kind of connector?

    Click image for larger version. 

Name:	KW-1497_0-766x511w.jpg 
Views:	13 
Size:	32.7 KB 
ID:	30256

    Micro-USB and heavy duty are not companions...

    On 2: you may want consider a high speed serial connection with an industrial dust/water-proof 3-pin connector?
    3) a metal box may also be wise on a construction site.

    Paul
    Pins looks connected ok.

    "high speed serial connection with an industrial dust/water-proof 3-pin connector"

    What is it? I do not know this connection.


    Also I have to solve problems like lot of noise from USB cable. But if I use USB replicator, the noise is low.

  8. #8
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    1,376
    Seems loose a lot. Tried many cables. I can move the connector left/right very easily and Teensy is connecting / disconnecting. Is there any way how to correct it?
    USB connector pushed in many times and probably not carefully. That is probably the source of your bad connections.
    Probably about time to change the connector to a chassis mount one as has been described to you.
    Otherwise the Teensy may well stop connecting to the PC with that worn Socket.

  9. #9
    Senior Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    1,248
    Quote Originally Posted by frohr View Post
    "high speed serial connection with an industrial dust/water-proof 3-pin connector"

    What is it? I do not know this connection.
    E.g. RS-232, RS-422, RS-485, etc. And then select a suitable industrial connector.

    Paul

  10. #10
    Senior Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    1,248
    To 'rescue' the worn USB connector, you may try to press [very gently] the top and bottom metal closer together using pliers.

    Click image for larger version. 

Name:	Untitled.png 
Views:	14 
Size:	285.0 KB 
ID:	30258

    But that's definitely not a permanent solution...

    Paul

  11. #11
    Senior Member
    Join Date
    Nov 2020
    Location
    Czech Republic
    Posts
    125
    Quote Originally Posted by PaulS View Post
    E.g. RS-232, RS-422, RS-485, etc. And then select a suitable industrial connector.

    Paul
    How to connect it to teensy? Thank you

  12. #12
    Senior Member PaulS's Avatar
    Join Date
    Apr 2015
    Location
    Netherlands
    Posts
    1,248
    Quote Originally Posted by frohr View Post
    How to connect it to teensy? Thank you
    Using Teensy 4's hardware serial ports.

    Paul

  13. #13
    Senior Member
    Join Date
    Nov 2020
    Location
    Czech Republic
    Posts
    125
    Is possible use D+ D- GND and 5v to send data? If yes, I can make special USB cable and use something like military connectors.

  14. #14
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    17,433
    Quote Originally Posted by frohr View Post
    Is possible use D+ D- GND and 5v to send data? If yes, I can make special USB cable and use something like military connectors.
    On T_4.0 bottom side pads? That D+ and D- are to USB_Host port. Data could be sent to a Device - but not to a Host using those underside pads.
    Device could be a hard drive or flash drive or other supported device adapter - seems one was wired ethernet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •