Shop OBEX P1 Docs P2 Docs Learn Events
First Board Design — Parallax Forums

First Board Design

Sal AmmoniacSal Ammoniac Posts: 213
edited 2010-01-16 04:41 in Propeller 1
I'm working on my first hardware design from scratch and have a first draft schematic and board layout completed. I'd appreciate any feedback on both the design and layout.

The design is basically a data logger that collects data from various weather sensors and transmits the data using an Xbee to another computer that processes and graphs the data. Most of the sensors are external to this board and connect to it via cables to screw terminal connectors.
5112 x 3316 - 201K
1225 x 973 - 87K

Comments

  • Dr_AculaDr_Acula Posts: 5,484
    edited 2009-12-16 00:10
    Wow, you are doing very well for a first design! Even have the power tracks thicker than the data tracks, and the four mounting holes. What program are you using?

    If you want to be really fancy, in the settings for the autorouter you can set the minimum space from a via to a pad. If you increase that then the vias don't end up right next to IC pads and there is less likelihood of a solder bridge when you are soldering it up late at night after a glass of wine. Eg look at the reset switch with the two vias right next to that pad.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.smarthome.viviti.com/propeller
  • Sal AmmoniacSal Ammoniac Posts: 213
    edited 2009-12-16 00:15
    I'm using Eagle. I'll take a look at the via-to-pad spacing and try to increase it (if the program lets me). Thanks for the advice.

    One concession I made, because this is a first design for me, was to use DIP components rather than surface mount. I'll try SMT on a later board.
  • Erik FriesenErik Friesen Posts: 1,071
    edited 2009-12-16 00:18
    You really ought to implement a ground plane.
  • mparkmpark Posts: 1,305
    edited 2009-12-16 00:19
    I've been compiling pcb design tips. Check out this page and let me know if it it helps:
    propeller.wikispaces.com/pcbdesign
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2009-12-16 00:24
    Re vias, it took me a while to find the setting. In DRC which is the button at the bottom on the left or in the Edit menu 'design rules'. Click on the Clearance tab, then work out in that table the via to pad distance (middle bottom of that group of 6). Default is 8mil and you can try 40mil and then reroute.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.smarthome.viviti.com/propeller
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-12-16 00:36
    Well Sal, placement is everything and you seemed to have thought of this as it shows. It's not at all unusual for layouts to have connectors all over the place and even in the middle of the board so you did well to place them logically around the edge. Another thing to keep in mind is making it fit an OTS box so that you can package your pcb easily when you need to. Your crystal is well placed as this is a sensitive connection and it should be kept as short as possible.

    Big word of caution though is to strap the various VSS and VDD tightly together and not circuitously as uneven ground currents has killed more than one Prop on this forum. So make the signal tracks jump around if you have to but make sure the power and ground have top priority.

    I see you have screw terminal connections so if you space them correctly you can have them joined in the case of the two 4-way connectors on the left could be butted up together and even replaced with an 8-way. Watch that you don't get too close to the mounting holes as you need room for the head of a screw and the screwdriver if you are going this way. Watch the IDC style pins and mark them well using an unmistakable pin 1 indicator. Much milk has been split by many connecting cables up to these back-to-front.

    If Eagle allows you use larger bolder text for the connector labels and even place labels next to the connections. Does Eagle do ground planes? What you want to do is fill up the blank spots with copper connected to the ground (this should be taken into account when routing anyway and there are caveats as always).

    Ok, that sums up my 2cents worth.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • Sal AmmoniacSal Ammoniac Posts: 213
    edited 2009-12-16 01:08
    Thanks for all the advice.

    Erik: I added a ground plane.

    Peter: I cleaned up several of the connector labels and added pin 1 designations. I'm not sure if I have all of my VDD and VSS lines tight enough. I have no experience as to what this looks like on a board layout.

    Here's an updated image of the layout.
    1373 x 972 - 87K
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-12-16 01:34
    Sal, the decoupling cap on the center left of the Prop has it's ground connection "loose". Route track to pin 15 of the Prop to the left of the cap and the ground plane should make it tight. Failure to do so will make the cap ineffective due to lead inductance. Are you able to pour a small "power-plane" for VDD or thicken up the tracks? Also any place where you don't have to run as close as you do to other pads etc you should give them a bit of extra room just to lessen the likelihood of pcb manufacturing problems.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • Nick MuellerNick Mueller Posts: 815
    edited 2009-12-16 07:23
    You can get a better copper pour if you adjust some bents to allow the copper to "flow" between (increased) gaps.
    Also try to place as much tracks on the non-ground-plane. So the tracks don't cut the ground plane to much. Like in the upper left corner, you could place the diagonal line from the "on off switch" on the top layer. Or from Prop pin #6 goint to the right up: Place more on the top layer, so it doesn't cut through the ground plane that much.
    Or if you look at the supply line from the LT1790 to the LM358. If you move that a bit to the right (under the LM358) you'd gain some space.
    One technique to improve routing is to click the "info"-icon and select a trace (the power trace for example). It highlights that trace and you can find better routing that way. So many traces are abit confusing. And its a good procedure how have a look at the board in overview (with a trace selected).

    HTH,
    Nick

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Never use force, just go for a bigger hammer!

    The DIY Digital-Readout for mills, lathes etc.:
    YADRO
  • AleAle Posts: 2,363
    edited 2009-12-16 08:14
    I'd add something: If the traces do not have to be .254 mm (.01") for space reasons make them thicker, for example .4 mm (0.16"). Power traces can be even wider, 1mm. The decoupling caps can be even nearer the power pins of the ICs and try to use thicker traces thus reducing the inductance.
    Are you sure you need 2 layers ?. Maybe with a few bridges you can get away using 1 layer... and when you are 100 % sure it works you can jump to 2 layers for production.
    The middle pin of the regulators is connected to ground, especially if you use the version without a middle pin!
    Be sure to have the spaces for your fab right: pad to pad distance, track to track, via diameter.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Visit some of my articles at Propeller Wiki:
    MATH on the propeller propeller.wikispaces.com/MATH
    pPropQL: propeller.wikispaces.com/pPropQL
    pPropQL020: propeller.wikispaces.com/pPropQL020
    OMU for the pPropQL/020 propeller.wikispaces.com/OMU
  • CassLanCassLan Posts: 586
    edited 2009-12-16 13:06
    mpark said...
    I've been compiling pcb design tips. Check out this page and let me know if it it helps:
    propeller.wikispaces.com/pcbdesign
    Thats nice work!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    NYC Area Prop Club

    Prop Forum Search (Via Google)

    ·
  • Sal AmmoniacSal Ammoniac Posts: 213
    edited 2009-12-16 18:24
    Nick: What are "bents" and how do I adjust them? I have zero prior experience with PCB layout and some of the terms I'm seeing in this thread, such as bents, are way beyond my current experience level.
  • SapiehaSapieha Posts: 2,964
    edited 2009-12-16 19:33
    Hi Sal Ammoniac..

    Some TIPS.

    Can You have Ground Plane on both sides of PCB around XTal.
    That build guard area around XTal pins and XI/XO pins on Propeller.

    That give You better stablity on XTall

    Regards

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it·as simple as·possible yet as versatile as posible.


    Sapieha
  • Sal AmmoniacSal Ammoniac Posts: 213
    edited 2009-12-17 00:19
    I incorporated most of the suggestions from this thread (wider power and signal tracks, ground plane, and better coupling of the bypass caps to each chip's power and ground) Here's the new version of the layout.

    As before, I appreciate any feedback.
    1225 x 972 - 79K
  • wjsteelewjsteele Posts: 697
    edited 2009-12-17 01:29
    The only thing I see that might be a problem is on your LM2940, your VDD has a via that is right next to your Ground pin.· I'd at least move that via to the other side of that pin.

    If someone had to hand solder that, they might short out the ground with that via.· Moving it just makes it a little less likely.

    Are you, by chance, going to have these printed with a solder mask?

    Bill
  • Peter JakackiPeter Jakacki Posts: 10,193
    edited 2009-12-17 01:35
    If it makes the layout any easier then you don't need resistors from the Prop to the inputs of the MCP3204, that's 3 resistors that are redundant and that you can completely do away with.

    Some notes about the schematic:
    1) Usually the BOE pin is tied low to enable brown-out detect.
    2) Include a large input cap on the input supply, around 200uf to 470uf as the regulator is only as good as the input. It's usually a good idea to include a protection diode here as well.
    3) Couldn't see it but don't forget to include a 10uf tant on the 3.3V supply somewhere.
    4) Include a pullup on P31 in case your software activates a serial port and the input is disconnected.
    5) Technically you don't need it but the reset line can pick up glitches via the prop plug so keep this in mind (cutout switch maybe).

    Don't worry about getting it perfect either as you could spend a long time getting it just right when you could already have learnt a lot and be onto revision 1,2 etc. Besides even when you get it perfect there is still something you want to change later on.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    *Peter*
  • Sal AmmoniacSal Ammoniac Posts: 213
    edited 2010-01-15 21:51
    Thanks again to everyone offering advice. I got the boards made over the Christmas holidays and finished assembling them today.

    Amazingly, everything worked the first time without me having to make any changes to the board. I don't know if this is an indication of my prowess as a board designer, or sheer dumb luck.
    2958 x 2094 - 661K
    2860 x 2040 - 510K
  • CassLanCassLan Posts: 586
    edited 2010-01-16 02:33
    They look very nice, glad you had a successful first run. Do you mind sharing where they were made and maybe a rough estimate of cost?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    NYC Area Prop Club

    Prop Forum Search (Via Google)

    ·
  • Sal AmmoniacSal Ammoniac Posts: 213
    edited 2010-01-16 04:41
    I got them done by Imagineering (www.pcbnet.com/default.asp). They have a new customer introductory offer of $25 for a 2-layer board (up to 60 sq. in.), so I got two boards for $50 (plus about $8 for shipping)
Sign In or Register to comment.