PIC to USB


Closed Thread
Results 1 to 6 of 6

Thread: PIC to USB

  1. #1
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425

    Default PIC to USB

    Hi,

    Has anyone used a PIC to communicate with a USB port in Visual Basic 2005? I know Microchip makes at least four different PIC's that can communicate via USB but I had a different idea. However, if you have done that I am curious how difficult it was to create the code. I was thinking about using the Linx Technologies module SDM-USB-QS-S for this. I was going to try and use a 16F676 to the SDM-USB-QS-S to the USB port. If anyone has done this, please chime in and let me know how this has turned out.

    Thanks,

    Chris

  2. #2
    Join Date
    Feb 2005
    Location
    Essex, UK
    Posts
    154


    Did you find this post helpful? Yes | No

    Default

    I have used the PIC18F2550 / 2455 and the PIC18F4550 and it they are reasonably easy to use.

    If you are obviously using PIC Basic then i strongly recommend you download EasyHID which will generate a base code in PIC Basic and VB for use with this PICs. With this base platform in both languages generated for you, it will assist as a excellent starting block for your project.

    It generates the HID and PID codes also for you for specific USB device recognition.

    EasyHID can be downloaded free at http://www.mecanique.co.uk/products/usb/easyhid.html

    Sending data too and from the PIC is reasonably easy.

    The other option is to use standard RS-232 but then use one of FTDI range of chips to give you that simple USB interface with no additional components.

    Hope this helps,

    Steve

  3. #3
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    Thanks for the reply. I have looked at the Easy HID but I wasn't sure exactly what I need it for. If I know PBP and know VB, do I still need easy HID? I have heard mixed results about it and I wasn't sure if I should still download it. Really, the only part I am not experience in is how to get the data from VB to the USB port. This is an new experience for me and this is where I am most confused.

    Thanks,

    Crhis

  4. #4
    taos's Avatar
    taos Guest


    Did you find this post helpful? Yes | No

    Default

    I think this can be valid too:

    Use a RS232 serial connection with PC (MAX232,etc...) that it's very simple (using comm ports in VB) and buy a RS-232 Serial to USB adapter and you can avoid USB interface with VB and PIC and use traditional serial programming and any PIC.

    http://www.ramelectronics.net/html/usb_serial.htm

    Regards.

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    The Linx chip appears to be based on FTDI technology. (They use FTDI drivers)

    http://www.ftdichip.com/

    Silicon Labs has a less expensive, full speed single chip solution in a 5x5mm MLF package.

    http://www.silabs.com/public/documen...2102_short.pdf

  6. #6
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default

    Thanks for the replies. I was so tired I spelled my first name wrong. I think the most cost effective way is to just use one of the PIC USB chips and go that route. Sooner or later, computers most likely won't have a serial port so I think I would have to start sometime. I have seen some schematics on the internet for a PIC to USB connection with some sample coding. I'll give that a try and see what I come up with.

    Chris

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Reading a slave USB with a pic
    By pcaccia in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 25th October 2008, 12:00
  3. Replies: 15
    Last Post: - 30th October 2007, 19:25
  4. USB communication with pic
    By Shamir in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 14th August 2006, 23:43
  5. USB PIC without USB Connection
    By Tissy in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 26th December 2005, 17:39

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts