Electronic – What’s the best way to add USB support to a project

usb

It just so happened that I need to add a usb communication for my next project that I am working on.What's the best/cheapest way to do this.

Should I be using a microcontroller with USB support like maybe the ATMEGA32U2 or use a ftdi chip,or maybe something else.

I have never really worked with USB before,so any help would be nice.

Best Answer

I am going to assume "best" way is easiest.

You may want to check first if you can find a library with proper USB APIs for a specific MCU or for a chip. Many vendors provide software support. Simply put, do not go for one unless they offer API support. Its a painfull process to build the protocol from scratch and it shouldn't be. Easiest would be if you have USB built into chip. Its cheap and comparatively easy to program than having to accommodate two ICS, increasing cost, effort in soldering etc.