My new breadboard friendly PCB design

Show off your projects to others!
djgardn2
Posts: 61
Joined: Sat Apr 19, 2014 6:34 am

Re: My new breadboard friendly PCB design

Post by djgardn2 » Thu Jun 18, 2015 9:24 am

Hello deladriere,

Hopefully this answers your questions.

What is the difference with the DP2 board ?
Basically only the pinout numbers are different that you would use inside a sketch while coding, other than that everything is exactly the same, see the photo attached at bottom of the post and/or the PDF file that you can printout and tape to the top of your microcontroller for easy pinout referencing on your breadboard. You can also see the pinout printout numbers for the chipKIT Pi or DP32 found in this link also viewtopic.php?f=6&t=3312 .

Why a new board ?
I wanted to make the pinout numbers more consistent see photo below, for the MAKEmicro32 the pin numbering is 0-16, perfect for a "for loop" to set all digital pins as outputs as seen in the code example below:

Code: Select all

  
// setting all pins as output and low on MAKEmicro32
for (int i=0; i<=16; i++)
{
   pinMode(i, OUTPUT); 
   digitalWrite(i, LOW);
}  
I would not suggest using the code above on the DP32 or the chipKIT Pi really. If you compare the pinout printout that I put together for each board setting, you will notice that the numbering for the DP32 and chipKIT Pi boards are all over the place as well as some pin numbers are skipped due to pin numbering selection choices. A side note too, if you want to use all 9 analog pins (analogRead) don't use the chipKIT Pi because only 4 are available to be used and the other 5 aren't coded in to be used.

How do we choose between the MAKEmicro32 as DP32 or ChipkitPI ?
For any of the boards (MAKEmicro32, DP32, chipKIT Pi) you can simply select the board you would like to use (only the pinout labeling/numbering will change). Using UECIDE, the top menu “Hardware->Boards” then chose your preference on what board you are using between the three. Everything else will be the same, granted you should reference the peripherals connected to the pin numbers for each board because that will be connected to a different pin on the microcontroller.

Can they use the same USB bootloader ?
The DP32 board and the MAKEmicro32 currently use the same bootloader, so there is no difference there. On the other hand the chipKIT Pi uses a different bootloader. Regardless of the bootloader you can choose which ever board you would like to use when programming a sketch between the three board options.

The main difference between the bootloaders (DP32 vs chipKIT Pi) with my understanding is the DP32 bootloader/Program button is connected to the RB4 pin numbered as 17 when coding sketches for the microcontroller and on the chipKIT Pi the bootloader/Program button is connected to the RB9 pin numbered as 18 when coding sketches (someone please correct me if I'm wrong). A side note, MAKEmicro32 bootloader/Program button is connected to the RB4 pin numbered as 6 seen in the photo below. Edit1: I know there are two different chipKIT Pi bootloaders but I'm not referencing those differences for now.


MAKEmicro32 pinout printout image below:
MAKEmicro32_Pinout.jpg
MAKEmicro32_Pinout.jpg (26.39 KiB) Viewed 1189 times
Edit2: A note on the photo above this is for the PCB board version so the T and C1/C2 are labeled as G since on the PCB they are ground pins on the external pins connected to the breadboard, see the DP32 pinout printout and/or chipKIT Pi pinout printout for referencing those connections/pins found here download/file.php?id=684.
Attachments
PINOUT__Printout_PDF_MAKEmicro32_Board.zip
(85.4 KiB) Downloaded 35 times
Dare2Tech.com Electronic tutorials and more coming soon.

deladriere
Posts: 6
Joined: Sat Feb 07, 2015 10:21 pm

Re: My new breadboard friendly PCB design

Post by deladriere » Thu Jun 18, 2015 9:40 am

djgardn2,

You just made my day ;)
thanks for these clear explanations
One little suggestion : on the 3 PDF page you could put a title on top : DP32 / Chipkit Pi / MAKEmicro32 for the beginners like me and just add a * where the PGM pin is supposed to be & update the legend on the right of the chip

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: My new breadboard friendly PCB design

Post by majenko » Thu Jun 18, 2015 11:15 am

Better still, add a P by the number for the PROG button input, and an L by the number for the Bootloader LED output. Maybe also have #define's in your config for PIN_BTN1 (I think it is) and PIN_LED1 pointing to those numbers...
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

djgardn2
Posts: 61
Joined: Sat Apr 19, 2014 6:34 am

Re: My new breadboard friendly PCB design

Post by djgardn2 » Thu Jun 18, 2015 10:12 pm

@ deladriere

I am glad to hear that my reply helped you and thanks for the suggestion on updating the PDF files to have the board titles to be included and improving the legend. I will work on an updated version in the next couple of hours.

@ majenko

Thanks for your input, I will definitely add those to the board files and get them over to you as soon as I do. I like the idea of adding P & L and will put that into the various printout PDF's and updating the legend with the new information too.

Just to double check that I understand about the L bootloader LED suggestion that would be the one that blinks consistently when in bootloader mode, correct?
For the DP32 it is 14 and on the MAKEmicro32 it is 5. I need to double check that the chipKIT Pi blinks the same pin on microcontroller, if it does that would blink chipKIT Pi number 17.
Dare2Tech.com Electronic tutorials and more coming soon.

User avatar
majenko
Site Admin
Posts: 2164
Joined: Wed Nov 09, 2011 7:51 pm
Location: UK
Contact:

Re: My new breadboard friendly PCB design

Post by majenko » Thu Jun 18, 2015 10:33 pm

djgardn2 wrote: Just to double check that I understand about the L bootloader LED suggestion that would be the one that blinks consistently when in bootloader mode, correct?
Yep, that's the one. It's good to keep that consistant with the LED definition in your files, so that you can attach one LED and have it always work for both the bootloader and your sketches. The example sketches often reference PIN_LED1 as the IO pin to manipulate when blinking etc.
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".

djgardn2
Posts: 61
Joined: Sat Apr 19, 2014 6:34 am

Re: My new breadboard friendly PCB design

Post by djgardn2 » Fri Jun 19, 2015 1:55 am

Thanks majenko. I put together the PDF's with the updated changes (uploading very soon), next I will work on getting you the newly updated files to you in the next couple of hours.
Dare2Tech.com Electronic tutorials and more coming soon.

djgardn2
Posts: 61
Joined: Sat Apr 19, 2014 6:34 am

Re: My new breadboard friendly PCB design

Post by djgardn2 » Fri Jun 19, 2015 2:24 am

Attached in this post is now a newly updated version of PDF files to include P & L, P for the program/bootloader button and L for the bootloader LED that blinks when you are in bootloader mode/program mode.

Newly added in the zip folder is a breadboard version pinout and PCB version pinout for the MAKEmicro32 board version. If you are using UECIDE you can use the newly added printout for the MAKEmicro32 that is found inside the zip folder. See file attached at end of post.

Printout which ever board you want, cut it out and tape it to the top of your microcontroller for easy pinout referencing for the DIY PIC32 breadboards found here http://chipkit.net/diy-chipkit-board/. If you want a prinout for the DP32 or chipKIT Pi check out this link viewtopic.php?f=6&t=3312.

Printout Key:

R = MCLR
V = VDD = 3.3v
G = VSS = GND
C1 = OSC1 = crystal oscillator
C2 = OSC2 = crystal oscillator
T = Tantalum capacitor 10uF (plus side)
B = VBUS
L = Bootload LED output (blinks when in bootloader mode)
P = Program/Bootload button input pin


MAKEmicro32 breadboard version image (not actual size, use PDF printout to place on top of microcontroller only) attached below:
MAKEmicro32_pinout_image.jpg
MAKEmicro32_pinout_image.jpg (30.48 KiB) Viewed 1157 times
Attachments
PINOUT_PIC32_MAKEmicro32_PCB_version_AND_Breadboard_version.zip
(173.14 KiB) Downloaded 35 times
Dare2Tech.com Electronic tutorials and more coming soon.

Post Reply