USB Project :- USB Interface Board Using PIC18F4550

 by ron.rakesh.mandal
Featured
pic18f4550_board11.jpg
1stprojectdemoboard.jpg
eagle.jpg
gallery_big10.jpg
PIC18F4550-pin-diagram.gif

USB PROJECT :- USB INTERFACE BOARD USING PIC18F4550 Microcontroller CONTROL - 6 LEDS

Enclosed - C# software ( 4.0 .net framework)

- pic18f4550 Firmware - for 6 leds.



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. Inspite of LEDS u can use it as control singnals for your project.

USB controlling is more cool 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 u my usb Interface Board, see its working , i will post links for making your own Micro-controller board .

As Audrino Boards are very costly and if are beginner with microcontroller then you really don’t wanna invest so much on a audrino 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 u my USB DEMO INTERFACE DEVELOPMENT BOARD, see its working in the end i will post links for making your own Micro-controller board .

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







BEGINNERS: Microcontroller projects are not like ordinary circuits ( follow schematic and u 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 , rervos , 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 dont 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 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 INATALLATION 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


http://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 u really new at microcontroller stufs then please wait for sometime in case the links are are not working. The Links explains everything in Details.






THANKS FOR READING

RON




www.rakeshmondal.info

facebook

BLOG 1

BLOG 2
ron.rakesh.mandal (author) in reply to sara32190Feb 9, 2012. 6:25 AM
nigell says: Aug 14, 2012. 1:36 PM
First of all nice work :)
can u send me the source code of hex file so i can use it according to me or mail me at zeeshan.pauline@gmail.com plz plz do it as early as u can.....plz
lchen11 says: Mar 20, 2013. 9:08 AM
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
Nabilphysics says: Jun 24, 2012. 2:50 PM
www.nabilphysics.blogspot.com for microcontroller project..propeller display...
Jr. Circuits says: Apr 28, 2012. 10:20 PM
I really like the whole circuit idea but it would be great if you send me a circuit and parts to instead use it for a relay controller.

almioten.mail@gmail.com
Jr. Circuits says: Apr 28, 2012. 10:20 PM
I really like the whole circuit idea but it would be great if you send me a circuit and parts to instead use it for a relay controller.

almioten.mail@gmail.com
JOJO2009 says: Apr 12, 2012. 3:09 PM
great work ron and thank you for it but the c# project it's not working somthing is missing in the zip file
r3xi389 says: Apr 1, 2012. 8:25 AM
Hello Rakesh! :)

Firstly, I would like to say thank you very much! Since your project has assisted me very much for my learning. Very appreciate it.

I would like to ask, it is possible for me to get the Step 6 for this project?
This because I can't access the link (http://http//www.scribd.com/doc/72793746)
Really appreciate your help since I need it in order to assist my project.

Thanks and Regards!

ron.rakesh.mandal (author) in reply to r3xi389Apr 5, 2012. 12:14 PM

You Are welcome..

And Step 6 talks About Bootloading...


Here is Video that will help you.  :)

http://www.youtube.com/watch?v=yBFIIHwpcIE&list=UUl5VuPQN8dAjYtYloo23iGA&index=10&feature=plcp




RON



sara32190 says: Feb 5, 2012. 12:00 PM
hi
i'm very intresting in your project
it's very nice and creative to use USB interface Board to control various devices with a simplest circuit ..
real i like it
but i have a small proplem with software files

the above links didn't work with me
Please can you send me the sorce code for PIC


thanks alot
ron.rakesh.mandal (author) in reply to sara32190Feb 9, 2012. 6:32 AM
I have posted the alternative links on comment line.. have a look. Good luck :)


sara32190 says: Feb 5, 2012. 12:04 PM
also if it's possible


Please can you send me the the sorce code for c#
kushalverma says: Jan 6, 2012. 4:30 AM
hello i want 2 know how to programme these microcontroller chips.....
i don't have any arduino device or any other thing to programme these chips so should i buy it or u can help me to programme these chips manually/ in other easy way.......
ron.rakesh.mandal (author) in reply to kushalvermaJan 16, 2012. 10:40 PM
You can make JDM programmer [serial programmer], or you can use a PICKIT2 programmer [USB], you can also make your own clone pickit2 :) , i used JDM programmer. IF u are beginner i suggest JDM :)
dbhadra says: Nov 6, 2011. 9:48 AM
Good work "Ron"
We are proud of you.
ron.rakesh.mandal (author) in reply to dbhadraNov 15, 2011. 5:10 PM
Thank you very much :)
ertan2002 says: Oct 13, 2011. 5:40 PM
Thank you ron.. Its really useful source for me :) But I cant see source of pic program. You just put hex file. But I need to change it. And also I need to understand your pic codes.. Because I never use pic with usb communication and I dont know how to do it !! Your sources are pretty nice, thanks for them.. Its so understanding.. But as I said, I need pic codes that implemented pic .. :)

Thank you
ron.rakesh.mandal (author) in reply to ertan2002Oct 13, 2011. 6:14 PM
I will post it soon :)

Thanks for commenting :)
ertan2002 in reply to ron.rakesh.mandalOct 14, 2011. 3:40 AM
Thank you Ron..
And I think, your ciruit is just a one way.. How can we change it as two ways.. I mean, We will be able to send data to pic from usb and also we will be able to get data to usb from pic.. ? If you have an example, can you publish it also?

Thank you
ron.rakesh.mandal (author) in reply to ertan2002Oct 14, 2011. 4:59 AM
Of course it is two way, or else how can the USB is communicating with Board :) While Boot loading this board u can read and write codes from board directly. The led status are updated by reading the current status. This BOARD is a USB HID device , usually usb devices are bi-directional :) .
In the above tutorial i have mentioned about a Microchips USB framework MCHPFSUSB v 1.2 on

http://rakeshmandal.info/microcontroller/USB-Interface-Board-Driver-Installation-PIC18F4550.php page.

when u download this framework it comes with lot of firmware examples and possible thing u can do with it :)

This same board can be used for many things.
ertan2002 in reply to ron.rakesh.mandalOct 15, 2011. 6:27 PM
Hi again,
I downloaded this framework but i didnt see a nice sample about it.. It looks a bit complicated.. I never have any experience with usb then i have some prejudgement.. I think that you can prepare a file that contains usb data sending and recieving for us :) i think it will be really good if u have time..

and if u can publish it sunday on monday, I will start to make your circuit on monday in our lab. After I learnt it, i will be able to start to change your codes which are in pic :)

I am looking forward this file....

Thank you
nilima.sharma says: Oct 8, 2011. 4:04 PM
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.
ron.rakesh.mandal (author) in reply to nilima.sharmaOct 9, 2011. 8:30 AM
Thank you. I will help with what i can
asharma47 says: Oct 7, 2011. 2:04 PM
great work.
ron.rakesh.mandal (author) in reply to asharma47Oct 9, 2011. 8:29 AM
Thank you
very much :)
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!