Hacking the Microchip Explorer 16 Development Board

November 8th, 2008

Disclaimer and caution: some of the changes outlined in this article involve soldering and modifications to a fairly costly circuit board, which always runs some small risk of damage or mayhem. While I suspect that most anyone with the inclination to buy and use one of these boards is well-versed in soldering and related precautions, maybe that’s not actually the case, and I assume no liability for any damage that might occur to the board, yourself or your belongings.

The Explorer 16 Development Board is Microchip’s mainline trainer/project board for 16-bit (and lately now, 32-bit) microcontrollers. The modular design of this board allows use of three different microcontroller families along with add-ons for networking, storage, audio, LCD graphics and more, and providing a common point of reference that allows Microchip to provide working example software templates for these different types of projects.

For all its virtues, this is not to say the experience can’t be improved. What follows are a few simple tidbits I’ve learned for enhancing the functionality of this kit.

A typical Explorer 16 development setup (shown at right) is comprised of several parts:

  1. The Explorer 16 board itself, containing a microcontroller PIM (plug-in module) and any optional attached peripherals.
  2. A Microchip programmer/debugger such as the PICkit 2, ICD2 or ICD3, or RealICE. (Having something of a Mac inclination, I tend toward the entry-level PICkit 2 as there’s at least portable open-source software available for this programmer. For amateur or student use, this is often perfectly adequate.)
  3. An RJ-11 to ICSP adapter cable connects the PICkit 2 to the Explorer 16 programming socket. Other programmers use a cable with an RJ-11 plug at both ends.
  4. A 9 to 15 volt DC power supply drives the board and any attached peripherals.

Implied in this setup but not specifically highlighted are the host development system running the MPLAB IDE development environment (or alternate software as detailed in my other articles), and a USB connection between this system and the PICkit 2 or other programmer device.

Collectively this makes for a great deal of clutter on one’s desk, and the assorted parts can be frustrating to travel with. My frugal nature would also have preferred any opportunity to avoid unnecessary expense. Let’s see what can be done to fix this…

Hack #1: Lose the RJ-11 to ICSP Cable, Save $10

This hardly even qualifies as a “hack,” since the feature is built-in and documented. But there’s a right way and a wrong way to go about it…

Situated adjacent to the PICtail™ Plus slot connector (or between the two, if you’ve soldered on a second), position J14 is a 6-pin ICSP header to which a PICkit 2 can connect directly. Earlier Explorer 16 boards have plated vias where a 6-pin row connector can optionally be added, but more recent supplies of the board already have this connector soldered in place — there’s nothing to add.

There’s just one small problem: the silkscreen on the face of the board is incorrect — the ICSP header is turned around, and where they’ve marked pin 1 is actually pin 6! First-time users will often try this connector as labeled, then give up in disgust after it doesn’t work and go back to using the cable. Perhaps the silkscreen will be fixed on future boards by the time you’re reading this; in either case, use the photo at right as an indication of how the PICkit 2 is supposed to attach, with the top face and button facing the procesor PIM.

Hack #2: Lose the PICkit 2, Save $35

Appendix B in the Explorer 16 Development Board User’s Guide describes a tremendously useful feature that unfortunately was never implemented: the intent was to allow an auxiliary PIC18 chip on the Explorer 16 board to perform the same functions as the separate PICkit 2, using the board’s USB connector to permit downloading code without a separate programmer device. All the necessary components are still present on the board, but they sit idle as the necessary firmware was never written and the feature was dropped. You can ignore that entire chapter of the manual.

The good news is that one enterprising user, Rafal Waniurski, has taken it upon himself to implement the firmware that enables this missing capability, and has given permission to repost his work here. Once this firmware is installed, any host-side software that works with a regular PICkit 2 will also work with the Explorer 16 board directly via USB; no separate programmer is needed. If you have a colleague or instructor with another device programmer you can borrow, then you can set up your board this way and avoid the expense and additional clutter of a separate PICkit 2.

The process works like this:

  1. Download this firmware file:
  2. Move the jumper at position J7 (not the switch directly above it) to the “F4550” position (two left pins).
  3. Connect PICkit 2 to ICSP header (or other Microchip programmer to the RJ-11 jack).
  4. Write firmware as appropriate to the device programmer and operating system in use; for a PICkit 2 and Windows, run the PICkit 2 application, select “Import Hex” from the File menu and choose the previously-downloaded firmware file, then click the “Write” button. For Mac or Linux using the command-line pk2cmd program, type:

    pk2cmd -PPIC18F4550 -M -F ./PK2_Explorer16_V0210007-BL.hex -R

    Note: if the above method ‘hangs’ after writing the firmware, try using Microchip’s Windows-based PICkit 2 program (via Boot Camp or virtualization) to download the hex file to the Explorer 16.

  5. Move jumper J7 back to the “PIC24” position.
  6. Party!

Once configured as above, there are still a couple of differences from a normal PICkit 2:

  1. The Explorer 16 uses a USB “B” connector, versus a “Mini-B” on the PICkit 2, so be sure to pack the right cable.
  2. The board must be powered from an external DC supply before it will show up on the USB bus (unlike the PICkit 2, which is entirely bus-powered). But see Hack #3 for more on this…
  3. Contrary to what’s printed in the aforementioned manual, never attempt to update the board with any regular PICkit 2 firmware! Use only this custom firmware and follow this same procedure if applying updates. I will keep tabs on the state of the firmware development and provide the current version here.

Hack #3: Lose the Power Supply, Save $24

This tip also arrived by way of Rafal Waniurski, who developed the PICkit 2-masquerading firmware:

The Explorer 16 has a barrel-jack connector for an external 9 to 15 volt DC power supply. Rummaging through my collection of “wall warts” I was fortunate enough to find one of the right voltage, polarity and plug diameter (from a Maxtor external hard drive), but if you’re unable to turn up something suitable then purchasing the correct one directly from Microchip will set you back a ludicrous $24.00.

With a simple modification it’s possible to power the Explorer 16 board from a USB port. This requires soldering one or two Schottky diodes of type 1N5817 or 1N5819 between specific points on the back of the board. Schottky diodes are required as they have a very low voltage drop; combined with the 5 volts from the USB port, it’s just enough overhead to allow the 3.3 volt regulator on the board to operate.

The diagram at right shows the placement and polarity of the two diodes. Looking at the back side of the board, with the barrel jack under the bottom-right corner, the anode side of both diodes should connect to the 5 volt supply from the USB connector — this is the lower-left of the four pin cluster near the center right edge of the board. The cathode end (with a silver mark) of one diode connects to the cathode end of the existing diode at the corner of the board, adjacent to the power jack, while the other connects to the nearby +5 volt test point. Both diodes pass by a number of exposed contacts on the back of the board, so it’s absolutely essential to cover the bare leads of the diodes with heat-shrink tubing or a length of insulation stripped from 24 gauge wire. After soldering, I also like to use a few dots of hot-melt glue to help secure things in case the board gets knocked around.

Drawing from the USB port means that available current is limited to about 200 milliamps — enough for a modestly-populated board, but not higher-current accessories such as the Graphics PICtail board — and it’s necessary to use a powered USB hub or connect directly to a port on the computer. The “9V” points on the breadboard section will only provide about 4.8 volts in this configuration. If any of these are inadequate for a specific situation, it’s still possible to connect an external DC power source when needed.

With all of the modifications complete, basic Explorer 16 development requires only the board and a single USB cable (as seen at the top of the page), leaving the rest of one’s desk space free for reference books, test equipment, lunch or a collection of small plastic dinosaurs.

12 Responses to “Hacking the Microchip Explorer 16 Development Board”:

  1. Cy says:

    I love you for this.

    I wonder why Microchip abandoned it?

  2. RL says:

    great tips, I’ll try ‘em today, but I guess, they’ll work fine.
    Although here in good old europe the PicKit2 is delivered without the ICSP/RJ11 cable provided, I’ll try the hack using the J14 jack.
    By the way: During this procedure, is the Ex16=board to be powered up someways externally ?
    Unfortunately MPlab IDE 7.50 shipped with european delivery of the Ex16 doesn’t provide support for PicKit2. I’ll try the more recent 8.xx version.

    Can’t back up hardware, but the Zdiode extension is a real good idea (no RISC, no fun :-) )

    Finally I’ve to say that me too like Cy is wonderin’ why microchip …. and so on.

    Best regards

    PS: Please apologize if there’s something misspelled, my knowledge of the english language isn’t as half as big I want it to be.

  3. Duncan says:


    I have a setup but on vista and win 7 under fusion, Pickit2 is the name of the USB device but it fails to be recognized as working in MPLAB v8.46. Error in output window is:
    Initializing PICkit 2 version
    PK2Error0022: PICkit 2 not found
    PICkit 2 Ready

    It looks like we are close but not there. Any solutions?

  4. Duncan says:

    Well, my apologies and thanks are in order. Why the third OS reboot makes a difference is still unknown but it now seems to work.

  5. J K McGraw says:

    Thanka for HACK #1, it works. Initialy I hook up my PICKIT 2 and recieved errors and so on. I thought I would have to purchase the used & outdated ICD@ or anew ICD 3. I and my wallet thank you.



    if I want to connect the Host PC directly to the Device on the Explorer 16 Development Board, can I connect a USB Cable Type A to Type B, from the Host PC to the Board directly? as shown in the first picture? in the case, is the communication between the Host PC and Device setup properly already?

  7. Paul says:

    The USB power source hack brought me here. I’m going to use it soon but I’m wondering if there are some components on the board that I can disconnect (by jumpers or by un-soldering them) so that there are no unnecessary current draws. It might help me or others to know where current draws are that can be eliminated.

  8. Elyes says:

    Hi all,

    Note: if the above method ‘hangs’ after writing the firmware,
    i suggest to romove the verification option in the PicKit2.

  9. Markus S. says:

    Hi Phillip,

    Thanks for posting this valuable information.

    Re: Hack #1
    It seems that the Explorer 16 boards now shipping (December 2010) have the 6-pin header properly labelled. With my PicKit 2, I was able to line up the white arrows on the 6-pin header and PicKit 2, and everything worked.

    By far the best hack is the diodes. I am greatly enjoying the convenience of not requiring a separate DC power supply.


  10. Great Job
    Keep running



  11. captain hanky says:


    ..the pickit 2 on the explorer 16 board is way faster than a pickit 3!!

    thanks again!!

  12. kub says:

    Damn..awesome guide bro. now i can use my exp16 in flight

Leave a Reply:

Copyright © 2016 Paint Your Dragon. All Rights Reserved.