What's the simplest way to get USB on a Standalone Arduino?

Hi Everyone,

I am in the process of developing a Smart Security System, and I need a way to interface some sort of a USB to Serial IC that will allow me to re-program the Arduino as needed.

I normally just use a Arduino Board to program all my standalone boards, but this time I need to be able to Direct Connect a USB Cable to the board, and program it that way..

Can someone please shed some light on what the simplest method of doing this would be?

I just want to be able to whip out my laptop, plug in the usb cord, and upload the new sketch!

Click the store tab at the top of the page and look for the USB to serial adaptor board.

No, I dont wanna buy a board for it... I want to integrate it into the PCB I'm designing...

Then buy a chip and included it, or do you want to implement a USB stack into your application?

Yes, I want to buy the chip, but I have no experience with USB Communication.. What chip do I need? There are tons to USB to Serial, FTDI Chips, etc... I'm a bit lost in choosing the right chip..

Any reason to not just look at the schematic for one of the Arduino boards and use what they use?

That's exactly what I did - copied the input side of the Arduino board, used the FT232RL chip to build a project board with a m168 chip mounted. This allows me to program the m168 with new versions of my code without having to remove chip, then install to Arduino board for reprogramming. I still have to remove m168 chip from project board, but it's easy to pop into a ZIF socket rather than use the Arduino itself.

By far the "best" method (I think) is to include ISP pins on the project board, then burn the new hex file to the m168 chip - this method removes the requirement of bootloader on the m168 chip, but is a real hassle finding the hex file after compiling in Arduino IDE. I've done that for a while, then decided to try FT232RL chip on a board with ZIF socket for programming.

Good luck,

Ken H>

Just put female header pins on your standalone board and carry this little beauty with your lap top. Can’t beat the price.

http://www.ebay.com/itm/370532286388?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649

Lefty

I think I figured it out… Can you please check my work?

The schematics are attached…

retrolefty: Just put female header pins on your standalone board and carry this little beauty with your lap top. Can't beat the price. http://www.ebay.com/itm/370532286388?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649 Lefty

That is a good idea Lefty - I ordered one of those a week or so ago and waiting for it to get here. Sure hope it works as well as the FT232RL chip board I built.

Ken H>

KenH:

retrolefty:
Just put female header pins on your standalone board and carry this little beauty with your lap top. Can’t beat the price.
http://www.ebay.com/itm/370532286388?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
Lefty

That is a good idea Lefty - I ordered one of those a week or so ago and waiting for it to get here. Sure hope it works as well as the FT232RL chip board I built.

Ken H>

Great, mine have all worked just fine, I think I’ve got 3 or 4 of them. I like this one because it’s very easy to mod to get the auto-reset function to work for a standalone.

Lefty

Did I do it correctly? I attached the Schematics below…

drbogger: Did I do it correctly? I attached the Schematics below..

Looks good to me.

Go look at the schematics for adafruit's USB boarduino. Very clear setup there. She also has the eagle files available.

If you only need USB for uploading, for the cost of a few resistors and diodes, you can add USB support. Here are some links that show how to use VUSB for a bootloader:

http://www.fischl.de/avrusbboot/ http://www.obdev.at/products/vusb/bootloadhid.html http://www.seeedstudio.com/wiki/index.php?title=Usnoobie_Kit http://frank.circleofcurrent.com/usnoobie/

--- bill