SparkFun Forums 

Where electronics enthusiasts find answers.

Questions relating to designing PCBs
By t1d
#181306
Thanks for the offer to look at the cad files. They are attached.
Several things come to mind:
-I have less than seven layers, because the top layer does not have copper and the bottom layer does not have silks.
-The file extensions are not what I expected to see. Are they correct?
-I am using ViewPlot for my viewer.
--I have not seen a layer that I think is for the drill holes. How do I confirm them?
--How do I confirm that I am using 24leading?
How do I communicate to the board house that I am using gerb274x and 24leading ?


Thanks, again!
You do not have the required permissions to view the files attached to this post.
By n1ist
#181309
I just looked at the Gerbers, and a few things jump out at me:

- The ground pour is very badly chopped up. Is there a particular reason you are doing this single-sided? If not, move the ground to the side without the traces. If you want to keep it single-sided. I would run the power trace around the outside of the chip and the left of the USB connector.

- You really want the bypass cap grounds to have a nice path to the chip pins; ground current from C1 has to go all the way to the right side, around the power LED, and back again to get to the ground pins.

- C1 and C5 should likely be 100nF ceramic caps, not electrolytics. C5 is rather well located; I would move C1 so the positive pin is closer to the IC pin

/mike
By t1d
#181314
Excellent observations, Mike... Thank you for helping...
- I had realized the fact that some ground signals have to go the long way around, but I am working within size limitations and there is not room for that power route. I will see if something else might work... flipping C5, adding a jumper, or some such.
- Yes, this needs to be a one-sided board.
- I am not the author of this circuit. C1 is before the resistor, per the instructions. I do not have enough design knowledge to know if I may move C1 to after the resistor. May I?
-C1 is electrolytic per the instructions. C5 is electrolytic, because I have it on hand. I thought that electrolytic could be used where a ceramic is specified, but not the other way around. Do I have that correctly?

I'm off to consider your ideas...
By t1d
#181318
Here are some alternatives...
1.jpg
2.jpg
3.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by t1d on Fri Apr 17, 2015 5:35 pm, edited 1 time in total.
User avatar
By Ross Robotics
#181323
He means something like the attached pic. And I agree with n1ist, that should have a nice, short path.

Updated files attached and also an image.
You do not have the required permissions to view the files attached to this post.
By t1d
#181326
And, a forth...
4.jpg
You do not have the required permissions to view the files attached to this post.
By t1d
#181328
Okay, I now understand the placement of C1... The instructions show C1 close to pin #1/MCLR... So, please teach me as to why it should be near the USB. I understand what a decoupling capacitor does... I thought C1 was to limit interference and, the closer to pin #1, the better.

I'll get it moved and repost. Thanks for everyone's great help!
User avatar
By Ross Robotics
#181329
Like I said, just use mine and edit the silkscreen and you're done. It is better when the cap is close to the supply pins, but not when the ground path is really long. When it does pick up noise, where do you think it goes? Into ground.. If the ground path is long, the noise is more susceptible to return to the supply.
By n1ist
#181335
C1 doesn't have any connection to pin 1; it is wired as a bypass cap. If the part is a PIC18F2550 family part, C4 needs to be a 220nf cap; that would be a ceramic, not electrolytic. Likewise, I would use ceramic for the two 100n bypass caps, one between pins 11 and 12, and one between pins 31 and 32. The footprint would be the same one you use for C2 and C3.

Can you nudge the PIC up a bit to run Vcc from the USB connector around the left of the connector and around the lower edge of the board to connect to pin 32? That would let pin 31 connect to the pour under the chip. The most important is a good low-inductance connection between the bypass caps and the Vdd/Vss pins of the PIC. The second most important is the connection to the USB connector. The connections to the buttons and LED is the least important.
I would even consider using a topside trace to connect pin 11 to pin 32, with suitably-sized vias, or a jumper like J1. That way, if you have the board fab'ed, you can do it double-sided. If you hand-etch, then replace that top-side trace with a jumper made from a cut-off resistor lead. If you go that route, I'd add the top-side trace connecting the two pads for J1 as well.
By t1d
#181349
Mike, you are right on time! I did stray from the original schematic, which, I think, is more inline with your instructions. I have been concerned about my changes and I was about to post in this regard. Yes, the chip is in the PIC18F family.

I wholly admit that I know very little about circuit design. I am much more of a find-a-schematic-and-solder-it-up kind of guy. But, I am trying to learn about design.

See screen shot. The original schematic calls for a 0.1u cap on the supply leg at the USB. And, it calls for a 0.1 cap (plus the 10u cap) on pin #1/MCLR. The schematic does not call for caps on the two VDD pins and I know a proper design should have decoupling caps on the supply pins.

I had assumed that the cap at the USB was meant to decouple both supply pins and was just not placed well. I had combined the decoupling caps for Pin #1 and the two needed for the supply pins (thinking that a 0.47u cap would have enough capacity for all three legs [3 x 0.1 = 0.3; 0.3 < 0.47]) and placed it closer to the pins in need.

I understand, now, that the cap on the USB was to limit interference. And, you have explained about the bypass cap.

My idea for the design is to accomplish several things; minimize the width of the board, place the passive components under the chip socket and make it Noob friendly (one-sided and big traces/clearances.)

So, I still have some questions...
-The only reason I am using the electrolytic cap for decoupling is that I have it on hand. I thought that it was okay to use an electrolytic in the place of a ceramic, but not vice versa. Do I have that right?
- Can the three (Pin #1 plus 2 for VDD's) decoupling caps be combined?
- Is the C4 0.1 USB cap of adequate capacity?
- Should C1 be placed near Pin #1, or the USB connector?
- Maybe summarize the needed changes to the author's schematic to keep me straight.

I apologize for having not posted the author's schematic. I should have done that from the start. Here it is. I am not concerned with the LEDs.
Demo Schem.jpg
You do not have the required permissions to view the files attached to this post.
By t1d
#181352
While waiting for your reply, I practiced learning Eagle by taking a shot at updating the project in the manner that I thought you might instruct me. See Attached...

I created a new device for C5 and gave it a stance wide enough to jump over the D+/- traces.

I am having trouble trashing the dimension lines on the board.

Thank you for your continued help!
You do not have the required permissions to view the files attached to this post.
By t1d
#181407
From my research, it appears that the value of C4 should be 0.47u. I forgot to change the value of C5. It should be 0.1u.
User avatar
By Ross Robotics
#181419
By t1d
#181454
Here is the latest, and, hopefully, the last, version of the board. Various compromises robbed it of visual elegance. However, the chip is stacked on top of the components, so that is less important.
- J1 was put on the diagonal to allow J3 to be added.*
- J3 was added to straighten, and shorten, the ground path.
- C4 was moved to the right, to preserve the ground plane above J1.
- The decoupling cap that was next to the USB has been removed to allow placement of J1 and J3.
- C5 has been centrally located and increased in value. Testing will show if it is sufficient to services the USB, two Vdds and Pin #1/MCLR.
- C1 was moved to the left, and away from, Pin #1 to allow its ground pin to access the ground plane. Testing will determine if it close enough to Pin #1.
* There is no J2. The board will be renumbered.

Unless there are additional needed changes, I will move forward to make a prototype. Thank you so much for all your help and support!
Layout.jpg
You do not have the required permissions to view the files attached to this post.