What have you done with PIC USB?


Closed Thread
Results 1 to 15 of 15
  1. #1
    Join Date
    Jan 2007
    Posts
    70

    Default What have you done with PIC USB?

    Hey everyone! I want invite you to present your PIC USB projects (please!!!!)

    There is a lack of working examples, and I would like to see some. If there is considerable response(please?! even one or two responses?) we can archive and present them as learning tools to avoid the difficulty of this stuff for a beginner!

    All I can present is the USBDemo from mister e... that thing taught me quite a bit.. now i am developing the rest of my project to try and do my first usb project..

    Anyone got anything more substantial to share?


    Thank you!
    Robert

  2. #2
    Join Date
    Jan 2007
    Posts
    70

    Default yeah whatever

    this forum is not getting any better on it's own.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    What do you expect? Working example served on a gold plate and for free or just some idea/existing stuff?
    Last edited by mister_e; - 17th February 2007 at 20:32.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Jan 2007
    Posts
    70

    Default

    well. many projects are not commercial, but then, we did spend some $ on the compiler...

    i suppose i wanted to see at least 1 or 2 projects, of any complexity, which show a working example of usb hid use..

    the example you put together is great, but i would like to see another approach, possibly with a different type of data...


    the usb stuff is interesting to me. having limited time and ability to comprehend the multitude of variables and memory addresses and jargon involved, it helps to see the same information applied in different ways... it is how i teach myself.

    thank you though as i seem to have your attention. your usbdemo program is very usefull to people like me.

    all i have to offer is BS2 stuff... but, hey... i am working on a writeup to use a BS2 to control 3D models in solidworks through solidworks API.... surely that is a neat gift for certain people out there!

    -robert

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    most of what i did are prop to my customer so i can't post any of them here. But let's see what i did with 'till now

    programmable audio patch board:
    300 in, 300 out. saving patch cord and messy patch boards...

    Custom Software dongle protection:
    if the dongle is not installed, the software won't run... yeah i reinvented the wheel...

    programmable power supply
    16 outs (1 AMP), generate fixed or custom AC (+ variable dc offset), DC curves.
    log each output current to the pc.
    over-current protection

    Analog & digital data logger

    car radio decode dongle
    for Blaupunkt, Porsche, Honda, Acura, Kia, BMW, Mercedes, Kenwood, Land-Rover, Audi, Hyundai, Mitsubishi, Toyota, Volkwagen, some GM and Volvo.

    EEProm programmer

    programmable and fix function/tone generator

    multipurpose test and calibration jig

    multi output programmable timer

    and i know i forget some.

    I have tons of other idea to do for my website... i just need some spare time...

    Glad to hear you learned from the USBDemo.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    Something like this?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  7. #7
    Join Date
    Jan 2007
    Posts
    70

    Default

    mister e..

    im not sure what good a list of applications is.. i was just interested in seeing something else done with the usb pics.... hopefully some source and a schematic..

    yes bruce.. something like that..

    what dare i ask is it?

  8. #8
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    It's an unfinished project I started, and never had time to finish. You're welcome to the source code http://www.rentron.com/PicBasic/PIC_USB.htm

    When I get time I'll finish the article. It uses a LAB-XUSB board from MeLabs, DS18B20 temp sensor, and EasyHID.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  9. #9
    Join Date
    Jan 2007
    Posts
    70

    Default

    bruce!

    yeah.. that is great... now if only i was smart enough to convert the vb6 files to .net...

    soon i will start a new thread about that.. i figured out most of the errors.. there is just 1 or 2 left... they may be hard ones though...


    I definiately will contribute something soon.. I made a 'gestural controller' project using tilt switches, a hacked mouse, a BS2, RS232 and VB6.

    i want to get this to be a USB pic and .net and then i will share it. ive slowly been working that direction.. an article\tutorial about the BS2 portion is almost done... should be up in a few days

    Robert

  10. #10
    Join Date
    Jul 2003
    Posts
    2,405

    Default

    Hi Robert,

    I have a friend that's also working on a VB.Net app with EasyHID. If we get something going before you, I'll let you know.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  11. #11
    T.Jackson's Avatar
    T.Jackson Guest

    Wink Something like this?

    Commercial DIY KIT that I designed back in 2005. Real-world interface using RS232 or USB with a converter or chip upgrade to 18f4550 with the inclusion of new firmware and slight PC-board mods. (Have not done this as of yet) Nice Windows-based GUI allows for a lot of experimentation. I do have some regrets with the design - if I had to do it all again I'd definitely do things much different. My second PIC related project, so I'm not kicking myself too hard. It was published in the Silicon Chip magazine back in Nov 2005 and is currently on sale at Dick Smith electronics for $49 !!! RRP: $99, so go grab yourself a bargain everyone! PIC16f877a @ 4MHz

    Specs:
    10 Digital Inputs
    10 Digital Outs
    2 ADC – (0-5) & (0-25)
    2 Onboard Relays
    1 Onboard Buzzer
    1 Channel For Temp
    1 Channel For Resistance

    *Great buy at $49 AUS - parts alone would cost this!

    http://www.dse.com.au/cgi-bin/dse.st...uct/View/K3090

    Best Regards,
    Trent Jackson
    Attached Images Attached Images   

  12. #12
    T.Jackson's Avatar
    T.Jackson Guest

    Exclamation Tall order

    Quote Originally Posted by vacpress View Post
    bruce!

    yeah.. that is great... now if only i was smart enough to convert the vb6 files to .net...

    soon i will start a new thread about that.. i figured out most of the errors.. there is just 1 or 2 left... they may be hard ones though...


    I definiately will contribute something soon.. I made a 'gestural controller' project using tilt switches, a hacked mouse, a BS2, RS232 and VB6.

    i want to get this to be a USB pic and .net and then i will share it. ive slowly been working that direction.. an article\tutorial about the BS2 portion is almost done... should be up in a few days

    Robert
    .net might not be able to handle those API calls. Does .net have support for calls from the gdi32 library, like Bitblt? I heard it doesn’t! I submitted an NES emulator to Planet Source code a while back, written in VB5, got some feedback from someone who attempted to port it to .net Apparently, it didn't turn out too well, resulting in nothing but compile errors. Can't run emulator in IDE - too slow.

    Regards,
    Trent Jackson

  13. #13
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695

    Default

    Hi Trent,

    Search "Unmanaged Code".

    * * *

    .NET Development (General) Technical Articles

    An Overview of Managed/Unmanaged Code Interoperability:
    http://msdn2.microsoft.com/en-us/library/ms973872.aspx

    Best regards,

    Luciano

  14. #14
    Join Date
    Jan 2007
    Posts
    70

    Default

    Trent,

    I havent worked on it in a few week (building a CNC machine right now), but, i do remember getting very close to a working easyHID example in .net.

    The api stuff seemed fine, the problem was a slight change in the syntax of some portion of the code i do not understand!

    someday i may be begging for more help here, with more specifics! in the meantime, just try and convert the USBDemo code to .net.. It ALMOST works!

    -R

    Quote Originally Posted by T.Jackson View Post
    .net might not be able to handle those API calls. Does .net have support for calls from the gdi32 library, like Bitblt? I heard it doesn’t! I submitted an NES emulator to Planet Source code a while back, written in VB5, got some feedback from someone who attempted to port it to .net Apparently, it didn't turn out too well, resulting in nothing but compile errors. Can't run emulator in IDE - too slow.

    Regards,
    Trent Jackson

  15. #15
    T.Jackson's Avatar
    T.Jackson Guest

    Lightbulb

    Quote Originally Posted by vacpress View Post
    Trent,

    I havent worked on it in a few week (building a CNC machine right now), but, i do remember getting very close to a working easyHID example in .net.

    The api stuff seemed fine, the problem was a slight change in the syntax of some portion of the code i do not understand!

    someday i may be begging for more help here, with more specifics! in the meantime, just try and convert the USBDemo code to .net.. It ALMOST works!

    -R
    Hi,

    I don't pretend to know a great deal about .net, not even for a millisecond. I don't have it and have never used it...

    My suggestion: Post the project on Planet Source Code in both the VB and .net Worlds. Good chance you'll get feedback from someone who might be able to help.

    http://www.planet-source-code.com

    Best Regards,
    Trent Jackson

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 : 1

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