Tuesday, September 13, 2011

PIC 18F4550 USB IO (Input / Output) Board with Analog


USB Interface Board Using PIC18F4550






USB IO Board Schematic


Assembling

Pin out
Download PC software, Schematic


Download Source Code


gitHub_Repo



PC Software:-


PIC hardware Board:-


Installing :-
Found New hardware


51 comments:

  1. Hi, Im am struggling to compiler the source code in MPlab 8.87 using Hi-Tech C compiler 9.8. What compiler was the original code compiled with? Thanks

    ReplyDelete
  2. hi..im beginner about this..i try follow your connection circuit, and i try burned your source code, but nothing happen..what is my problem?please..

    ReplyDelete
  3. crystal frequency is 20Mhz as mentioned in the schematic it self

    ReplyDelete
  4. do you have sch and brd file for eagle cad

    ReplyDelete
    Replies
    1. i don't have any sch or brd file. why do you need that its just simple circuit i have assembled it on a bread board. you can do it on general purpose PCB.

      Delete
  5. Greetings from PAKISTAN!!!

    Dear Mr. Gaurav Chaudhary,

    This is one of the best Website / Forum

    Thank and best Regards

    M. Akbar Durrani



    ReplyDelete
    Replies
    1. I have just discovered this site and I am interested in PIC18F4550. I have been teaching PIC 16F84 Assembly and now like to develop a couple of projects based on PIC18F4550.

      Please post details related to PIC 16F4550(Crystal 20MHz) connect to (16x2}LCD with USB. I am confident that you would certainly post a positive reply. Your expert advise / guidance in regard would be appreciated.

      Delete
  6. This comment has been removed by the author.

    ReplyDelete
  7. Hello, at first, thank you for nice inspiration, nice work:) Please, I am learning how to work with 18f2550 now. I think I can make .hex file, I also think I can make some aplication in VB. Now i decided to do the next step and make some circuit to connect through USB. I want to make aplication for measuring Voltage on 6 inputs. I want to make it with my own code, and i dont understand where you get the driver. Please can you tell me how to make it? Thank you very much!

    ReplyDelete
    Replies
    1. the firmware in this project implements HID class USB device so it doesn't need any drivers . HID USB devices are driver less .

      Delete
    2. thank you for your answer. But what is actally installing?

      Delete
  8. Hello, me again:) Please, can you describe me how the voltage measuring works in your application? I want to have small application to measure only voltage, but i cannot cut off the part with digital input output. I am trying to cut it "softly", but every time after building the application the analog part doesnt work. It would help me a lot, thank you for your cooperation..

    ReplyDelete
  9. hi, I am new to pic and tried your circuit for learning purposes. I am having trouble with my computer recognizing USB device. I am not sure what I might be doing wrong. I have loaded PIC18F USB IO board.hex using pickit2 programmer. I have checked the schematic several times to make sure it is correct. Would you have any suggestion as to what I should check? My computer is using Windows7 with 64 bit as OS. Thank you

    ReplyDelete
  10. Never mind. I got it working. I must have checked the circuit 10 times before finding missing pin between Vusb and .47uF cap. Thanks for the code and circuit.

    ReplyDelete
  11. Hi Gaurav,

    You have mentioned that you have used the HID framework for this project. I hope you might have used the sample source code from microchip for CCS compiler and have edited. I believe the code had the HID framework. Can you tell me which are the functions you have altered in the code so that I would try the same.

    Thanks,
    Ash Indiano

    ReplyDelete
  12. i am afraid this demonstration does not use sample provided by Microchip. in fact Microchip does not provide USB demonstrations with CCS compilers they mainly use C18 compiler , now C18 is also off the self , now they moved to XC8. although XC8 have tremendous bugs. but good thing is that this implementation does use Microchip USB stack by Microchip Technology.

    ReplyDelete
  13. I am Sorry i meant to say C18 compiler.. in that case can you help me with the functions you have altered or made use of from the USB stack

    ReplyDelete
  14. Gaurav few questions I had. What is the baud rate set to ? Which file sets that. Is there a way to extract the raw data in computer which comes as digital bits ?

    ReplyDelete
  15. there is no RS232 Communication involved so there no need to set any baud rate. it USB.

    yep you can see raw data in please take a look in the pc software source code you will find it there.

    ReplyDelete
  16. Guys, i didn't find the pic source. Where is it? Because i'd like to see how you did it. Thank you!

    p.s.: If you have an other simple project, please, send me: iusley.sl@hotmail.com

    ReplyDelete
    Replies
    1. the source code link is present up there please take a look

      Delete
  17. Replies
    1. which source code PC or the PIC firmware ?

      what kind of error??

      Delete
  18. Hi, the vb source code has an error like: "is ambiguous in the name space", could uor anybody send it to me or re-upload it, my e-mail: ibramson@hotmail.com, thnaks

    ReplyDelete
  19. Dear Gaurav,
    This is very good project. I need some help from you. I need some API and DLL files to communicate this USBIO device through labview. Could you please share some DLL files. I would like to control this device through Ni LabVIEW. Please help me. I'm looking forward your reply.

    Thanks
    Karthick.

    ReplyDelete
  20. hi your post is very nice i will follow your post but my usb not recognized how to solve ?

    ReplyDelete
  21. Hi I am new in micro controller. Please help me.

    ReplyDelete
  22. you use vb6 or vb2008 or vb2010 thank you.

    ReplyDelete
  23. Dear Sir this circuit was working fine.......... But I want to add gsm & gprs modem (Sim 300) for Remote monetoring and controlling purpose Is it possible or not I don't have a knowldge of Surce code changeing Please help me As soon as possible Email Id : kanthtpriya@gmail.com

    ReplyDelete
    Replies
    1. source code is freely available ,link is up there ...

      Delete
    2. But i don't know how to change source code Please help me

      Delete
  24. Hi

    I just fused the hex code to the chip.
    The led is ON.
    I connected it as mentioned but no response from the Host (PC).
    I double checked the connections and the components, everything is connected well.
    I don't know What's the problem.

    ReplyDelete
  25. Dear Mr. Chaudhary, I have build the circuit carefully and got the chip programmed with the hex file but I am always getting (USB Device Not Recognized) message !.. I have checked the circuit, pin connections several times and sure of my work except for the XTAL frequency is (22.0 MHz).. Do you think that is the reason? Your reply is highly appreciated..Thank you.

    ReplyDelete
    Replies
    1. crystal frequency need to be 20 Mhz , there is no substitute , unless you modify software for PLL.

      Delete
    2. Dear Mr. Chaudhary, thank you very much for your prompt reply. At last I found a 20.000 MHz XTAL and replaced it in the circuit but unfortunately still getting the same (device not recognized) message! .. What else could be the reason..please? taking in mind that my operating system is Windows XP - SP3. I can send you clear pictures of my work if you don't mind.. Thank you again for your cooperation.

      Delete
  26. Thank you Mr. Chaudhary, now it it fully working, the problem was in xtal capacitors 33pf.

    ReplyDelete
  27. Dear Mr. Chaudhary,

    Thank you for your great work, I work on your source files to develop my own application and I found a little bug : when I launch the IO_board, I connot write anything in the textbox of the PORTD.

    I fixed it by add this event : "me.activated" in the sub "portbAsInp_CheckedChanged" to initilialise the board with the correct parameters.

    ReplyDelete
  28. Dear Gaurav,

    Could you please share the API and DLL files to communicate this USBIO device through labview, since I would like to control this device through Ni LabVIEW. Please help me.

    My mail ID: jeyadheepan@gmaill.com

    ReplyDelete
  29. Dear Gaurav,

    Atleast let us know the commands to read and write the data from or to individual ports or pins of the port to communicate the IO board from LABVIEW. Your help will be acknowledged. Kindly help me.

    With regards,

    Dr. Jeyadheepan K.M

    ReplyDelete
  30. Dear Gaurav,

    I want to know whether this set of codes will work in mplabx ide and xc8 compiler or not...

    the controller is same pic18f4550

    ReplyDelete
    Replies
    1. i will work with mplab x but i don't thnk xc8 will take it . hitech is the way to go

      Delete
  31. Thank you very much Gaurav Chaudhary . . .^_^
    Are you have any reference material about HID? or internet link?

    ReplyDelete
  32. Hola Gaurav estoy utilizando tu código fuente pero tengo un problema, la terminal de Visual estudio no me reconoce mi placa de desarrollo PIC18F4550. Te comento que estoy utilizando el compilador XC8

    ReplyDelete