USB Project :- USB Interface Board Using PIC18F4550

152,011

112

43

Posted

Introduction: USB Project :- USB Interface Board Using PIC18F4550

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

    • Spotless Contest

      Spotless Contest
    • Space Challenge

      Space Challenge
    • Science of Cooking

      Science of Cooking
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    43 Comments

    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

    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

    user

    Hi Rakesh

    Please contact me on this email Id

    prakashchandrajain@hotmail.com