Arduino Forum

Using Arduino => General Electronics => Topic started by: melis on Apr 01, 2013, 04:49 pm

Title: Connect PC to arduino via USB
Post by: melis on Apr 01, 2013, 04:49 pm
Hello guys,

I am not so experienced in USB connections and protocols. What I would like to know is how to build a USB host for my arduino Uno( which is made on a breadboard) so I can connect it with a USB cable to a PC? I use an ATMEGA328p. What other things should I must be aware of?
Title: Re: Connect PC to arduino via USB
Post by: CrossRoads on Apr 01, 2013, 05:04 pm
Add one of these, MIKROE-483, to have same functionality as an UNO.
http://www.mouser.com/ProductDetail/mikroElektronika/MIKROE-483/?qs=%2fha2pyFaduhQ%2frcyPs7PmGdeFG1B7qIuGl16liNH8Zb3mCcKALPhoQ%3d%3d
Connect +5, Gnd, DTR thru a 100nF cap to uC reset pin, Tx to Rx, Rx to Tx.
Here's one I used on a board.
(http://www.crossroadsfencing.com/BobuinoRev17/piano_card_assy_small.jpg)
Title: Re: Connect PC to arduino via USB
Post by: CrossRoads on Apr 01, 2013, 05:06 pm
If you want to be a Host, that is able to control USB thumb drives or similar, that's a whole different ball game.
Title: Re: Connect PC to arduino via USB
Post by: melis on Apr 01, 2013, 05:41 pm
I was wondering when I connect this arduino uno with the USB. Does each PC recognise the drivers of it?
Title: Re: Connect PC to arduino via USB
Post by: CrossRoads on Apr 02, 2013, 01:05 am
Yep - install drivers from www.ftdichip.com
Title: Re: Connect PC to arduino via USB
Post by: melis on May 01, 2013, 08:57 pm
Hello again!

I am using a MIKROE-483 USB UART connected to arduino Uno. Also I have connected an Adafruit microsd card shield with a micro sd card. I try to run the CArdInfo example to the arduino and the serial monitor doesn't show anything. Could you please tell me why! Is it a problem to use the MIKROE-483 USB UART as a programmer to arduino?
Title: Re: Connect PC to arduino via USB
Post by: CrossRoads on May 01, 2013, 09:43 pm
Why do you have a MIKROE483 when the Uno already has a USB/Serial chip on it? (the ATmega16U2).
You can use the MIKROE483 connected to the Uno's Rx/Tx/DTR pins if you connect Reset on the 16U2  6-pin header to Gnd to kick it off the Rx/Tx pins.
May need a 0.1u cap from MIKROE-483 to Uno Reset pin for software controlled reset during programming.
Be sure to connect Gnd to Gnd; and 5V to 5V if powering the Uno via the MIKROE483 USB connection.