Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how do i connect pendrive to microcontroller?

Status
Not open for further replies.

piyush_bhatt

Junior Member level 2
Joined
Apr 9, 2011
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Ahmedabad
Activity points
1,436
hello friends i want to connect my pendrive to microcontroller?

so tell me how can i do this?

thank you
 

Piyush.. why not ask more specific question :)

Which Microcontroller ? Does it have a USB port ? What USB do you want to support- 2.0 or 3.0 ?

If the MC does not have a USB port, use a UART to USB bridge(such as Sil Labs). But then that will add some more cost to your system.
 

for that you need a microcontroller which can act as USB host
 

devil6600, can that be applied on a PIC18F84A ? I'm also looking for ideas about connection of pendrives / flash drives to MC but no luck yet..

I'm going to use the pendrive as a storage for files..

can you give a circuit design on how to do that?

thanks
 

devil6600, can that be applied on a PIC18F84A

No, it can't. Making a USB device is relatively simple, at least compared to writing USB host. USB protocol is totally host-oriented, and host controlls everything. You probably can't rig it inside 16f84 or anything like that.

You need some microcontroller which has USB HOST. Not "USB", "USB HOST" capability. Many MCU from families 24F/H/E, dsPIC33F/E, pic32mx or various ARM-based can do that.
 

devil6600, can that be applied on a PIC18F84A ?
you mean 16f84a? in any case you need usb on-the-go feature to build a device which can read/write pen drives.
if you are looking for cheaper microcontroller with USB OTG try this: PIC24FJ32GB002 its cheaper than pic16f84a
 

use a USB to serial converter, its simple and easily built.
 

use a USB to serial converter, its simple and easily built.
I don't think this can be done that way. Popular converters of that kind act as USB device themselves (CDC class) handling descriptors on their own etc. Of course there are USB host chips other than microcontrollers (FTDI does that) but they are usually far more expensive than mentioned pic24.

Did you already learn UART, SPI, I2C before? If not, you must forget this USB protocol. Learn the basic first.
That is also true. USB is very easy to handle for end user, but that comes for a price. USB developement is very complicated. Basic USB specifitacion has like 1000 pages or so. First learn more basic serial protocols, and then take a shot at usb.
 

I don't think this can be done that way. Popular converters of that kind act as USB device themselves (CDC class) handling descriptors on their own etc.

For simple applications that do not require much sophistication, a USB to serial converter may be an easier option, for such applications it may not be justified to have a full fledged USB handler...There are many products available in the market that use such an approach..

If you read Jan Axelson's book on USB development, the first chapter actually deals with this issue, whether USB is justified for an application or not...

So the correct choice will depend on the application...
 

here is nice idea hope help you

**broken link removed**


to read the whole article for free click here


Untitled

source code

**broken link removed**

regards
Fragrance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top