1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

USB GPIO Interface - The Easy Way !

Discussion in 'Microcontrollers' started by TiagoSilva, Apr 24, 2008.

  1. TiagoSilva

    TiagoSilva Member

    Joined:
    Feb 15, 2004
    Messages:
    207
    Likes:
    1
    Location:
    Portugal, Lisbon
    Hi, i'm in need of an idea of how to make an USB GPIO Interface board, is there any ic with that function ? or does anyone knows an simple way of doing that ? It doesn't need to have many I/Os but it needs to be by USB...
    Or where can i find an simple schematic to do that ?

    The main ideia is to make an simple GPIO Board that is connected to the PC by USB Interface.

    Well,
    i hope anyone can help me...
    thanks.
     
  2. arhi

    arhi Member

    Joined:
    Apr 17, 2008
    Messages:
    887
    Likes:
    12
    Location:
    Belgrade, .rs
    I'm using this:
    http://www.ftdichip.com/Products/FT2232C.htm

    I believe that's what you need .. on the one side you have USB, on the other side you have serial port or bitbang
     
  3. fenderman

    fenderman Member

    Joined:
    Apr 21, 2008
    Messages:
    48
    Likes:
    1
    Hi,
    As arhi suggests, I am already using the FTDI devices, I use the DLP-USB245M-G modules, details can be found at http://www.ftdichip.com/Products/EvaluationKits/DIPModules.htm
    This device is already build onto a small PCB and you can use the VCP (Virtual Comm Port) drivers suplied by them to interface directly to a PC, and they are cheap and very easy to implement.
    Roy
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. LabRat

    LabRat New Member

    Joined:
    Apr 2, 2008
    Messages:
    89
    Likes:
    1
    Location:
    Ottawa

    Aren't these a bit expensive? Wouldn't something like the Microchip PIC's with USB support be more cost effective? (Or have I missed something in the requirements that would rule these out?)
    See 18F2550 for example (28 pin device)
     
  6. arhi

    arhi Member

    Joined:
    Apr 17, 2008
    Messages:
    887
    Likes:
    12
    Location:
    Belgrade, .rs
    DLP packages (board with FT chip + pic + some other things) maybe is but FT's are 2-4GBP price range (4-8US$) for 1 FT chip .. I do not see how is that expensive.

    here is the price for FT2232D (I use that one mostly - it has 2 ports, can be configured as serial or parallel.. easy to use .. i love it)
    http://apple.clickandbuild.com/cnb/shop/ftdichip?op=catalogue-products-null&prodCategoryID=8
     
  7. blueroomelectronics

    blueroomelectronics Well-Known Member

    Joined:
    Jan 21, 2007
    Messages:
    12,536
    Likes:
    170
    Location:
    Toronto, Canada
    The FTDI245R is preprogrammed as a USB to parallel device, although not as flexible as a microcontroller solution like the 18F2550. Because it's SOIC it won't be as easy to prototype as a DIP package like the 18F2550 either.
     
  8. LabRat

    LabRat New Member

    Joined:
    Apr 2, 2008
    Messages:
    89
    Likes:
    1
    Location:
    Ottawa
    Ok.. I followed the link and found "DIP" boards priced (in UK) for 19 pounds. (Not sure how to make that funky UK money sign). Which is circa $40.00 over here. Quite a large difference in price. :eek:
     
  9. arhi

    arhi Member

    Joined:
    Apr 17, 2008
    Messages:
    887
    Likes:
    12
    Location:
    Belgrade, .rs
    It is absolutely true that soic is not that easy to experiment with, that is why I personally use one dip module (bought it together with CCC C compiler for ~100EUR) for testing, and I order only chips for the final product .. it is less flexible then pic but it is definetely the "easiest" way to interface your board to PC via usb .. not to mention that driver works great..

    anyhow, lot of 18Fwxyz work nice with USB .. the FT**** is the easy way - not necessary the best way
     
  10. 3v0

    3v0 Coop Build Coordinator Forum Supporter

    Joined:
    Jul 14, 2006
    Messages:
    9,404
    Likes:
    227
    Location:
    OKLAHOMA USA
    Look up a little project called the USB bitwacker.
    http://greta.dhs.org/UBW/index.html

    Also http://www.thegnar.org/bitwhacker/bitwhacker.html
    for linux/C info.

    Sparkfun sells it as a kit but can wire it up point to point if needed.
     
  11. ella

    ella New Member

    Joined:
    May 3, 2009
    Messages:
    28
    Likes:
    0

Share This Page