So I got bored again, or maybe I was procrastinating :P.
Firstly it's not quite finished, I need a new micro USB cable, then once the code is on I'll solder on the shrouded header.
Anyway some of you may have seen my micro bus pirate project (http://http://dangerousprototypes.com/forum/viewtopic.php?f=56&t=2645)
Well I have taken that one step further creating a 20mm by 26mm version using all the same components.(except a micro USB port was used.) 100% pb-free, 100% hand soldered. (Although I want to get a hotplate soon.)
If any of you were wondering exactly how small 20x26mm is, well: it's smaller than a postage stamp.

(http://http://www.flickr.com/photos/greeeg/6265958618/in/photostream)
(I made a booboo with the backside silkscreen :{. There should be no PGD,PGC,etc labels there. )
I'm not really into coding so I stuck with the two PIC design, one running a CDC stack and then the other running an unmodified Bus pirate source. I would like to attempt this design again using different parts: dual v-regs, bi-colour LEDs, 4x resistor packs, maybe even 0201 parts :?
However I think I'll take a look at the V4 hardware first ;D
Wow that is small!!
The V4 hardware is just one big PIC with onboard usb. If you leave some of the fancy stuff out (onboard eeprom, leds) and go 2-sided components you get real small.
I've built up a free PCB of the V4 awhile back but I mainly just use my v3, I suppose I'm more used to it.
I'm not to fond of components on both sides. Would prefer just to pack things tighter on the one side. But we'll see. :)
That's absolutely fantastic Greeeg. Of course you could replace the GA002 with a GB002 and dump the 14K50. Porting the BPv4 code to the GB002 should not be difficult. It is just a matter of changing the header files, or at least it aught to be if the code was written well in the fist place. The USB stack will run on the GB002 and in fact that is the first PIC24 that it worked with. The stuff you left off can go where the 14K50 was and remember the GB002 has PPS so that should make it easy to layout the new board.
The GB002 looks like a fantastic IC. I reckon without the 14k50 taking up space I could get this board down to under a square inch :P
Well next tine you are ordering parts grab a few GB002. For a first test you can simply fit one on the existing PCBs and green wire it in. The latest CDC stack that I have sitting here will very easily port and in fact you/we could create a hybrid between the BPv3 and BPv4. That is you can use the existing BPv3 firmware almost without change by simply swapping the BASEIO.C file for my new one and include the USB stack files.
Given that it appears you are also in Oz it may be easy to collaborate on the "South seas pirate bus pirate."
JTR, I have a PIC24FJ64GB002 laying around here and would like to try your suggestion. I was trying to find the correct sources, but am a bit confused, what to download from http://code.google.com/p/the-bus-pirate ... svn/trunk/ (http://code.google.com/p/the-bus-pirate/source/browse/#svn/trunk/)
There are quite some subfolders, and it seems that all of the files are from 2010. Could you please point me to the most recent version? Thanks in advance.
And Greeeg, your board looks awesome!
Finished programming the 14k50 and the GA002.
I tried out the Open source stack, got it working after 2 edits to the board config file to alter the LED pins. The echo test worked fine on OSX.
Now running microchips CDC demo app to get the UART communication.

(http://http://www.flickr.com/photos/greeeg/6269048574/in/photostream)
[quote author="Markus Gritsch"]
There are quite some subfolders, and it seems that all of the files are from 2010. Could you please point me to the most recent version? [/quote]
I think all the new bus pirate firmware is in the dangerous proto svn rather than the bus pirate svn. I suppose they tried to centralize everything at some point.
if you check it out: http://code.google.com/p/dangerous-prot ... e/checkout (http://code.google.com/p/dangerous-prototypes-open-hardware/source/checkout)
You will find a Bus_pirate folder and a USB_stack folder in the trunk.
[quote author="Markus Gritsch"]JTR, I have a PIC24FJ64GB002 laying around here and would like to try your suggestion. I was trying to find the correct sources, but am a bit confused, what to download from http://code.google.com/p/the-bus-pirate ... svn/trunk/ (http://code.google.com/p/the-bus-pirate/source/browse/#svn/trunk/)
There are quite some subfolders, and it seems that all of the files are from 2010. Could you please point me to the most recent version? Thanks in advance.
And Greeeg, your board looks awesome![/quote]
Sigh, I'm the last person to be asking where the latest files are. I will happily blow 50-100 hours searching for obscure bugs as the fact I got the PIC24 stack to work with no more than a flashing led for debugging. Chasing around DP for the latest files is something that has completely done my head in and I will not bother with it again.
*MY* latest stuff is on my hard disk and even then, it is a struggle with so many different BP and IR TOY versions and version numbering systems I really cannot keep track.
To proceed with what I suggest you need to break it down into chunks.
STAGE 1
First port the BPv3 code to the GB002. should be simple enough. Some pins will need to be greened wired. Pins 15, 21, 22, 23 are required for USB and I suggest that if you drop the 5V regulator enable and self test feedback you will have enough pins to reroute the three or four that need to be. The CTS and RTS signals are not required and these lines became available. One is used for the crystal.
Also we want Pins 9 & 10 for a crystal. Fortunately these pins are (now) available. The crystal on my mock-up is 4MHz. The correct config settings for the GB002 and to use it with USB have been in any and all copies of the configword.h file for the IR TOY and BPv4. I seem to remember there is an entry for JTR_PIC24FJ64GB002 or something like.
Some changes to the firmware will be required to remap the I/O to there new homes and disable the 5V enable and feedback test.
The new GB002 firmware should then run on a BPv3 board and with the current FTDI chip. It may not run well due to the missing hardware handshake but that doesn't matter as the object is to get to stage 2...
I'm sorry guys, the latest source is temporarily in the DP SVN here:
http://code.google.com/p/dangerous-prot ... Bus_Pirate (http://code.google.com/p/dangerous-prototypes-open-hardware/source/browse/#svn%2Ftrunk%2FBus_Pirate)
That's my fault. I'm having so much fun working, I can't be bothered to clean up. I'll get it fixed before v4 release.
The 64GB002 might have a few problems with the v4 firmware. We were out of space in the 64GA, and I doubt you can fit all the goodness plus a USB stack without disabling some systems (BASIC comes to mind). If you program directly and don't need a bootloader, that will also score an extra page.