Recommendations for exposing USB through enclosure

Background:

My project involves a custom PCB I designed in an enclosure. The custom PCB contains an ATmega328P. I would like the final product to feature a USB connection that routes from outside the enclosure into this board.

Options I'm Considering:

  1. An FTDI / CH / CP board mounted in such a way that the USB port pokes through the enclosure. The trouble is that most of these boards don't seem like they were designed for mounting to a panel. I can 3D print a mounting piece that grips the board and screws into the side of the enclosure, but this feels like a sub-optimal solution.

  2. Adding an FTDI / CH / CP circuit directly onto the custom PCB and connecting an internal USB cable to a USB panel mount. The main downside here is the hassle of recreating the circuit on my custom board (some extra soldering / potential points of failure).

  3. Swap the 328 for an ATmega32U4 to avoid the need for a UART -> USB chip. Then, same play as option 2 with a USB panel mount.

With options 2 and 3, I'm not clear on if having an internal cable is a violation of the USB spec... should I be aiming to mount my main PCB in such a way that the USB connector pokes directly out of the enclosure?

Final Thoughts:

I'm the farthest thing from an expert in this domain, so I'm trying to keep things relatively simple to implement. That said, I'm aiming for something that is robust enough to be used daily.

Are there other options I didn't list out that I should be considering? Has anyone successfully mounted an FTDI chip in an enclosure or is that just not what they're built for?

Thanks in advance for the help!

Waterproof USB . <—- LINK to many

or just surface mounting

You can buy Arduino Micro or make your own. PJRC made the Teensy 2.0 first, where the Micro USB software came from... Open, Compatible, Team.

The AT90USB1286 has 8K RAM. The Teensy++ 2.0 has those.
PJRC haven't made these in years but the files exist.

The Teensy 2.0 has 12 analog pins, the ++ has 8.

Use a TRRS 4 Pole Stereo Male Plug to USB type A.

See on Amazon.

image


The Female jack is on the case.

I've done (A) in a manner of speaking where I epoxied the board (an Adafruit Feather) to the inside of the enclosure, with the USB connector poking out of a milled hole. Enclosure was too small for a USB panel mount connector and this worked fine.

M5Stack Tough

has the USB cable coming out the enclosure through a cable gland. The other end terminates in a small connector. It's an easy solution if you don't mind the dangling cable.

FTDI chips get put in enclosures all the time. It's an easy way to add field debug capability to a product.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.