USB Project :- USB Interface Board Using PIC18F4550

Published

Introduction: USB Project :- USB Interface Board Using PIC18F4550

About: Hi my name is Rakesh Mondal , my friends call me ron vist my website for more stuffs like my post here . www.rakeshmondal.info
USB PROJECT: - USB INTERFACE BOARD USING PIC18F4550 Microcontroller CONTROL - 6 LEDS

 C# software ( 4.0 .net framework)

PIC18F4550 Firmware - for 6 LED's.



TUTORIAL FOR BEGINNERS

It’s a low cost USB interface Board that provides cool interface to your computer and it can be used to control various devices like DC Motor, Stepper motor ,Servo ,relay switch etc. with your laptop or any computer with a USB port and dot net framework installed. A small C# program communicates with the hardware to issue commands to set the pins of the Microcontroller. IN spite of LEDS u can use it as control signals for your project.

USB controlling is cooler than that of parallel port. Rather laptops now days don't come with parallel port, so a USB port is a bit easy replacement. The Video will show you my USB Interface Board, see its working, I will post links for making your own Micro-controller board .

As arduino Boards are very costly and if are beginner with microcontroller then you really don’t wanna invest so much on a arduino board for the 1st time on microcontroller, rather if you make one mistake then you microcontroller is fumed (like exceeding Vmax of microcontroller).


The Video below will show you my USB DEMO INTERFACE DEVELOPMENT BOARD, see its working and in the end I will post links for making your own Microcontroller board.

I WILL PUT TUTORIAL TO MAKE THIS BOARD AT THE END PART.




BEGINNERS: Microcontroller projects are not like ordinary circuits (follow schematic and you are done) In case of Microcontroller board there are lots of steps. Microcontrollers are like Artificial Mind of a ROBOT.

USB Demo Interface Development Board (PIC18F4550) : Tutorial for making this Board is Lengthy, so I will post the links for making this board.


This a USB Demo Interface Device , that allows me to control 6 led's, i have used a pic18f4550 microcontroller , i have found the schematics and diagrams on microchip.com to make it. I have modified it control 6 led's , it is provides a cool interface to my computer using USB port and leds are controlled with clicks or pressing numpad buttons on my laptop.

It can be used to control various devices, like, Stepper Motor, servos, DC motor, Relay switches etc. etc. etc.


Download the firmware code ( for 6 - 8 leds) and C# application..

I Found this Nice Tutorial on a website while i was searching for some tutorial for making this board, i made a robotic arm based on this USB Interface Board, At beginning i thought of using Parallel Port but laptop don’t come with laptop , so using a USB port is a cool replacement of parallel or serial port with more better performance .This tutorial is actually not mine but i found it on a website and so sharing with all :)




UNFORTUNATELY FOR BEGINNERS THE DETAILED INFORMATION AND TUTORIAL STEP BY STEP CONSTRUCTION CAN BE VERY LENGTHY.

SO I AM GOING TO POST LINKS OF A DETAILED TUTORIAL
FOLLOW EACH STEPS ONE BY ONE... (for beginners )



STEP BY STEP




1-CIRCUIT CONSTRUCTION - http://www.rakeshmondal.info/pic18f4550-project-tutorial-part-1-USB


2- FIRST TIME PROGRAMMING - http://www.rakeshmondal.info/programming-a-microcontroller


3- Making of JDM PROGRAMMER TO LOAD CODE - http://www.rakeshmondal.info/How-to-make-a-JDM-Programmer


4- CONFIG WINPIC 800 with JDM - http://www.rakeshmondal.info/winpic800-config-for-JDM-Programmer


5- DRIVER INSTALLATION for PIC18F4550 board - http://www.rakeshmondal.info/pic18f4550-Driver-installation-tutorial


6- BOOTLOADING - http://www.rakeshmondal.info/BOOTLOADING-PIC18F4550-USB-BOARD


7- *FIRMWARE TO CONTROL 6 LED in PIC18F4550 - http://www.rakeshmondal.info/cs-firmware-control-6-leds

8 - ** C# application to control pic18f4550 board DOWNLOAD - http://www.rakeshmondal.info/CS-Application-To-Control-PIC18F4550-Board-6LED.zip


https://www.facebook.com/microcontrollerinfo


NOTE: IF in case the links above are not working then please come back later after some hours , the website goes goes down sometimes (sorry about it) , though i have attached the C# APPLICATION and 6 -led controlling at the end for Advance users here. But If you are really new at microcontroller stufsfs then please wait for sometime in case if the links are are not working. The Links explains everything in Details.






THANKS FOR READING

RON



www.rakeshmondal.info

facebook

BLOG 1

Share

    Recommendations

    • Water Contest

      Water Contest
    • Creative Misuse Contest

      Creative Misuse Contest
    • Oil Contest

      Oil Contest

    43 Discussions

    Hi man, this is a really brilliant project, you're brilliant man. I am trying to build this project, but I met some problem with that. One,does breadboard really not good for this project. Two, my friend has JDM programmer, so we skip step 3 and 4, for step 2, we don't use pickit 2, we just upload directly that demo firmware code you provide on step 2 into PIC with JDM programmer, Is that OK. Is that source code.Three, on step 5, I check the all connection is right according to the schematic you provide on step 1, I just cut off one terminal of USB cable, green wire connect pin 23,white wire connect pin 24, then red one for voltage, black for ground, then connect usb my laptop, press the pin switch, hold reset , hit bootload, release them, but nothing happen. some questions my school instructor doesn't understand either, and they told me breadboard should be Ok. man, I really need your help

    2 replies

    The symptoms looks familiar, this happens when the oscillator is not set to 20mhz on the JDM programming software. While loading the code you have to set the oscillator to 20mhz from the settings. For example I used winpic800 software with JDM programmer , So before uploading the firmware into the microcontroller the Oscillator freq has to be set to 20mhz on winpic800 or it wont show any activity onboard after burning the firmware into the USB Board . By defaults if you dont configure then it take it as 48mhz on the software. You gotta set the setting to 20mhz on the winpic800 or the respective software which you got with JDM.

    can we have the project files for the pic controller ? (the .mcp files) ?

    Hi! I found this project very useful. I was reading the code of the C# program. Can you explain how to use the command usbcom.EasyComand(byte Command, int rxlength, byte[] data, out byte[] dataout) ? So I can expand this circuitry. Thanks in advance!

    Hello Sir,

    Congratulations for your job. It's great.

    Hi

    i downloaded this project and i tried to debug but its showing an DLL Not found Exception.im working on windows 8 please help me

    Hi, i would like to know, can we change 2pcs capacitor 22pF which is conected to crystal 20MHz with 15pF value?

    hi

    im astudent and im doing this project but ive faced some problem

    my laptop is not reading the cct of the pic wn i connect the usb board not until i change it to read/write mode so i cant control the leds can you help me with that plz

    Hi Rakesh

    Please contact me on this email Id

    prakashchandrajain@hotmail.com

    HI Rakesh

    I am working on project which should retrieve and display (In LCD)Mobile phone (SIM) information through AT commands

    1.Signal strength

    2.Mobile number

    3.Network Operator name

    Using PIC interface . Please help me on this regard

    Hi this is very impressive and nice project. I want to make this as my college project. I am new to microprocessors and microcontrollers. I am going to ask lot of questions regarding this project.

    2 replies

    HI Rakesh

    I am working on project which should retrieve and display (In LCD)Mobile phone (SIM) information through AT commands

    1.Signal strength

    2.Mobile number

    3.Network Operator name

    Using PIC interface . Please help me on this regard

    Hi,how r u?

    Im sura anew engineer working on aproject just like yours can you help me with the pic i need to study it and im not finding anything useful about it

    Hello

    That is nice work.

    I have question , how I can use Bluetooth USB dongle with PIC Microcontroller like PIC18F4550 or any one ?

    Best Regards and thanks

    hey it's just an osm project.. good job ron.. but i need ur help brother.You hav kept the hex file for source code of pic. So if you can upload a new link regarding the same. It would be of great help.. thank you.

    And one more thing, i m trying out for making a project based on usb-to-usb-wireless-transfer (using bluetooth). and so if u have any idea regarding the same, then please do tell me Ron. thanx a lot again. ^_^

    hello sir, i am student and i want to know that if, i replace pic18f4550 with pic18f452 , so is it fine to replace? because pic18f4550 is not available at my city were i live , and pic18f452 is almost same as pic18f4550.

    what if i burn the same firmware of controlling 6 lead into pic18f452, will it work?

    thank you . :)

    Hello, I'm planning to use this microcontroller to read some values of sensors connected to it then send them to an android phone using the usb port.. I have some questions:
    1- Would PIC18F4550 be able to do that?
    2- Will the android phone communicate with the PIC easily or do i have to develop some driver for android?
    3- Would i be able to also send some commands to the PIC using my android phone (control a led using an app on the phone)?
    Thanks in advance..

    hi,can u help me??..

    i have already done construct JDM circuit..but when i connect rs232 the LED got dimly..
    i installed winpic800 version v3.64h but when i click "hardware test" its not responding and i try click "verify all" its got error...

    please help me..