SEARCH
TOOLBOX
LANGUAGES
modified on 24 March 2010 at 21:31 ••• 48,664 views

PIC USB Development Board

From WFFwiki

Jump to: navigation, search

Since I wanted to do some USB development work with the PIC18F4550 and PIC18F2550 board (for projects like my C64 VICE front-end and Atari joystick adaptor) I needed a USB reference board to develop the software. Initially I ported the Microchip USB stack over to Hi-Tech C18 pro with the help of Richard Stagg.

In this article I will show how to make your own USB development board which is pin compatible with the Microchip PICDEM USB FS board. Of course you can just buy the original board direct from Microchip, but building it yourself is a far cheaper option.

With this board you can compile and load the Microchip USB stack examples directly without altering the code. You simply need to compile the PICDEM FS USB projects which are included with the stack examples.

A picture of the PICDEM FS Mini board

Building the PIC DEM FS USB board

The circuit schematics for the original board are available on-line from Microchip, they publish them as part of the user manual for the board. I used the pin-out for the PIC microcontroller, but simplified the design to make it easier and cheaper to make.

Primarily I simplified the power regulation and removed the physical serial port and the serial line driver chip.

Here is the circuit schematic for the board:

The PICDEM FS USB Schematic

As you can see from the diagram all of the on-board peripherals are connected to physical 'jumpers' allowing them to be turned off. The reason for this is that I intended to put 20 pin SIL connectors on either side of the processor allowing you to easily connect the board to a breadboard. This allows very fast prototyping of USB devices (which actually makes this board far more useful than the original Microchip version).

You can also select between bus-powered and self-powered using a jumper. The board has 5V regulation and polarity protection. Also barrier diodes protect the USB port from unwanted power feedback (to make it a little safer for your PC).

Since I wanted the to be able to make the board myself I needed to design a single-sided PCB which could be easily etched. I also wanted to allow space for 'feet' on the PCB so it can be used without a case (which would make it hard to access the SIL connectors).

Here is the resulting PCB artwork for the board:

PICDEM FS USB PCB Artwork

Adding a physical RS232 port

As a pluggable option to this board you can also build a RS232 adaptor which simply plugs in to the right-SIL connector on the processor. Since the UART Tx/Rx and the power lines are available the board is a very simple MAX232 chip with 4 1uF capacitors and one 10uF capacitor.

Here is a picture of the RS232 board connected to the PICDEM FS USB mini board:

PICDEM FS Mini RS232C Add-on

Since the circuit was so simple I didn't make a schematic for it, but here is the resulting PCB Artwork (the component values are marked on the PCB):

PICDEM FS USB RS232 daughterboard PCB Artwork

Files for download

In the following zip file you will find the schematics in ExpressSCH format and also the PCB artwork in ExpressPCB (both pieces of software can be freely downloaded from the Internet):

PICDEM FS USB schematics and PCB artwork

You can download Microchips USB stack from here and also the Hi-Tech C18 pro port from here.



Donate to waitingforfriday.com:

If you like this site and want to help support future projects, or you just want to show appreciation for a project you built, used or enjoyed, please consider leaving a PayPal donation. It's quick, secure and helps us to run the site and fund future projects!


PayPal, fast, easy and secure




Join the EFF:

Join the Electronic Frontier Foundation


The owner of this site is a member of the EFF and you should be a member too! The EFF protects the rights of open-source, open-hardware authors all over the world.



Most popular pages:

  1. Building a PIC18F USB device ‎(252,918 views)
  2. Home ‎(238,394 views)
  3. 4-Bit Computer ‎(104,195 views)
  4. Projects ‎(103,462 views)
  5. Open Source Framework for USB Generic HID devices based on the PIC18F and Windows ‎(103,331 views)
  6. Open Source Visual C++ Class for USB Generic HID Communication ‎(62,759 views)
  7. Real-Time Audio Spectrum Analyser ‎(60,997 views)
  8. Controlling LED brightness using PWM ‎(51,231 views)
  9. USB RGB LED VU Meter ‎(49,636 views)
  10. PIC USB Development Board ‎(48,664 views)
  11. 16x8 LED Matrix Display ‎(43,962 views)
  12. C64 VICE Front-End ‎(36,611 views)
  13. USB Performance Monitor ‎(33,205 views)
  14. PC Case USB LCD ‎(30,047 views)
  15. Rotary Encoder Demonstration ‎(28,174 views)
  16. Commodore SID 6581 Datasheet ‎(26,967 views)
  17. Reverse engineering an MB Electronic Simon game ‎(24,029 views)
  18. Retro Computing ‎(22,929 views)
  19. LED Colour Organ ‎(22,797 views)
  20. Vetinari's Clock ‎(18,592 views)

more >>