Shop OBEX P1 Docs P2 Docs Learn Events
Need advice on creating simple PCB — Parallax Forums

Need advice on creating simple PCB

RagtopRagtop Posts: 406
edited 2013-11-17 15:59 in Propeller 1
I was playing around with diptrace and thinking about a general purpose board for the propeller. I have a tendency
to play musical chairs with my hand soldered control boards and was thinking of something that could be easily
plugged in and out of projects.

I would like to access the propeller pins in one of two ways. Either through servo connectors (gnd, power, signal) or
by 2x5 headers.

I was thinking of adding a jumper (28 jumpers) to route the pin to either connector, but was wondering
if that is really necessary if I am just going to use one or the other.

I am hoping picture explains myself better.

my design.jpg
722 x 580 - 287K
«1

Comments

  • Mark_TMark_T Posts: 1,981
    edited 2013-11-10 12:46
    It would simplify trace routing to arrange the servo headers around the chip in the same order.
    Having them side-by-side means you can just solder in 3 long headers rather than lots of length-3
    headers separately.

    Why use jumpers? Just connect the pins to both styles of header - you can use either or both
    simultaneously.
  • kwinnkwinn Posts: 8,697
    edited 2013-11-10 12:55
    I agree with Mark_T. Go with a simpler layout that makes the board smaller and easier to assemble. My suggested layout is attached. The only jumpers I would add would be to select the voltage that is applied to the servo V+ pins.
    573 x 524 - 83K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-11-10 13:00
    Don't forget bypass caps!

    -Phil
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-11-10 13:15
    I agree with the suggestions to group the servo connectors but I'd limit the groups to four sets of pins (twelve pins total). Servo connectors are often a little thicker than 0.1". If you have a gap between the sets every so often you won't have as much trouble plugging in a bunch of servos.
  • RagtopRagtop Posts: 406
    edited 2013-11-10 13:51
    It is not for controlling servos per say. Just so many circuits require ground and power. The idea
    is the things being controlled are on another board or boards.

    I am more concerned on keeping it simple for me to use. I have a bad habit of inverting things which
    doesn't go well with this hobby. I don't like that the grounds would be in a different orientation
    depending on side of chip they are on.
  • zappmanzappman Posts: 418
    edited 2013-11-10 14:01
    I like the idea of your board, bringing out the pins to servo headers.
    I like also like the idea of "Jumpers" inline with the servo pins; but I would have just 28 pairs of pads, for a total of 56 pads.
    I would space the "pairs of pads" so that 28 current limiting resistors could be soldered on the board, if needed.
    A very thin "trace" between each "pair of pads" could be placed on the board, if no resistor is needed the Prop pins are automatically connected to the servo pins.
    When you need a current limiting resistor you cut the track, and install the needed resistor.
  • zappmanzappman Posts: 418
    edited 2013-11-10 14:06
    I just noticed, you don't have a reset push button on your board?
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-11-10 15:10
    Start with a schematic, THEN layout the PCB.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-11-10 15:18
    JonnyMac wrote: »
    Start with a schematic, THEN layout the PCB.

    Wouldn't be nice if DipTrace would create a schematic from a layout?

    It's so tempting to just jump in with the layout. (Which I still frequently do with small projects.)
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2013-11-10 15:37
    JonnyMac wrote:
    Start with a schematic, THEN layout the PCB.
    I never do it that way! I always lay out the board first, then create the schematic from the layout. The reason is that I'm not always sure ahead of time which components -- or even features -- I want to incorporate or are going to fit the available board real estate. Also, pin assignments are dependent upon layout geometry, which can't always be determined ahead of time. The connections and pin assignments in a nice, neat schematic will often entail a rat's nest of traces and vias if followed slavishly. Starting from the layout can reduce or eliminate the clutter.

    -Phil
  • RagtopRagtop Posts: 406
    edited 2013-11-10 15:38
    As much as I hate schematics that is how I started this with diptrace, only because I couldn't
    figure out how to lay ratlines at first.

    For something this simple it seems a wasted step as most of this thing is physical connections.
    I couldn't find headers in the schematic library I guess for that reason.

    I don't put reset or on/off switches on my boards. Always just unplugged.
  • cavelambcavelamb Posts: 720
    edited 2013-11-10 16:24
    JonnyMac wrote: »
    Start with a schematic, THEN layout the PCB.

    Totally agreed.
    But then I sometimes do it backwards anyway...
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-11-10 16:36
    We all do, but it is those "oh... it's simple -- just connections..." boards that jump up and bite us on the you-know-what.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-11-10 18:24
    Wouldn't be nice if DipTrace would create a schematic from a layout?
    IIRC, Express PCB has this capability, or is it the other way around?
  • kwinnkwinn Posts: 8,697
    edited 2013-11-10 22:50
    Duane Degn wrote: »
    I agree with the suggestions to group the servo connectors but I'd limit the groups to four sets of pins (twelve pins total). Servo connectors are often a little thicker than 0.1". If you have a gap between the sets every so often you won't have as much trouble plugging in a bunch of servos.

    Good idea, and if each group has jumpers for the V+ different voltage requirements for peripheral boards could be accommodated.
  • kwinnkwinn Posts: 8,697
    edited 2013-11-10 22:58
    Ragtop wrote: »
    It is not for controlling servos per say. Just so many circuits require ground and power. The idea
    is the things being controlled are on another board or boards.

    I am more concerned on keeping it simple for me to use. I have a bad habit of inverting things which
    doesn't go well with this hobby. I don't like that the grounds would be in a different orientation
    depending on side of chip they are on.

    Short of using some form of polarized connector that`s a tough problem to resolve. A 4 pin servo connector with one location blocked/missing would do that but takes more space.
  • kwinnkwinn Posts: 8,697
    edited 2013-11-10 23:16
    Duane Degn wrote: »
    Wouldn't be nice if DipTrace would create a schematic from a layout?

    It's so tempting to just jump in with the layout. (Which I still frequently do with small projects.)

    I find all but the simplest projects end up being an iterative process between the schematic and the layout. Draw the schematic - lay out the board - find troublesome connections - modify the schematic - continue lay out......etc.
  • Dr_AculaDr_Acula Posts: 5,484
    edited 2013-11-10 23:51
    I am more concerned on keeping it simple for me to use. I have a bad habit of inverting things which
    doesn't go well with this hobby.

    With servos they seem to be pretty standardised with red, white and black wires, so you could put some text on the board "Red", "White" etc next to each header. Would need to be a smaller font.

    My little quirk with designing PCBs is to try to put enough text on the board so that when I make it up a few weeks later, I don't need to refer to any schematic or board layout while I am soldering. It sometimes takes a while adding labels and moving text around when labels end up on top of each other but it makes soldering so much easier.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-11-11 00:32
    Ragtop wrote: »
    . . . I have a bad habit of inverting things which
    doesn't go well with this hobby.

    As long as you keep the power line on the center pin of a three pin header, then reversing the connector should cause much trouble. Usually it doesn't hurt anything if ground and signal lines are switched (at least I think it's not likely).

    kwinn wrote: »
    I find all but the simplest projects end up being an iterative process between the schematic and the layout. Draw the schematic - lay out the board - find troublesome connections - modify the schematic - continue lay out......etc.

    This is what I also do when I discipline myself to make a schematic first.

    I'd probably use a schematic on this particular board Ragtop is designing. I have a couple basic Propeller templates to use as starting place with boards like these (though I doubt I have any for the Prop in a DIP package).
  • ReachReach Posts: 107
    edited 2013-11-11 20:10
    I never do it that way! I always lay out the board first, then create the schematic from the layout. The reason is that I'm not always sure ahead of time which components -- or even features -- I want to incorporate or are going to fit the available board real estate. Also, pin assignments are dependent upon layout geometry, which can't always be determined ahead of time. The connections and pin assignments in a nice, neat schematic will often entail a rat's nest of traces and vias if followed slavishly. Starting from the layout can reduce or eliminate the clutter.

    -Phil

    I agree 1000%. Although, to be technical, I do the prototype on a napkin or paper first then the PCB software is fired up. ;P
  • RagtopRagtop Posts: 406
    edited 2013-11-17 07:22
    Now I am leaning toward this second design that just brings everything out to four 2x5 headers that each
    have ground, 5v, 3.3v, and 7 of the propeller pins.

    The first board was $35, but this one is only $15.29 at 1.9 x 2.7 inches.

    second design.jpg
    506 x 642 - 143K
  • ReachReach Posts: 107
    edited 2013-11-17 11:39
    I would place another 10K resistor for U2 as a pull up on the eeprom. I would also employ a capacitor on U1 and U2.

    Also may I inquire where the PCB will be made ($16 sounds like a good price)?
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-11-17 11:52
    Reach wrote: »
    I would place another 10K resistor for U2 as a pull up on the eeprom. I would also employ a capacitor on U1 and U2.

    I second the motion.

    There are several I2C objects which require pull-ups on both lines.

    The Prop should have a 0.1uF cap near each of its Vdd pins and the EEPROM should also have a 0.1uF cap near it's Vdd pin.

    You could sure shrink the board if you are willing to use surface mount parts. The smt Prop with leads isn't too hard to solder (well, it's not hard once you've done a half dozen or so).
  • JonnyMacJonnyMac Posts: 9,107
    edited 2013-11-17 11:53
    I agree 1000%. Although, to be technical, I do the prototype on a napkin or paper first then the PCB software is fired up. ;P


    I don't disagree 100%. :)

    I tend to start with a schematic to make sure that I have all the basics covered (bypass caps, pull-ups on SCL and SDA, etc.). I will often complete sub-circuit connections, nets that I know have to be connected -- but other than the programming port and the EEPROM pins, I don't connect anything to the Propeller. From there I start the PCB, arrange the components, then go back to the schematic with the ideal nets. It's a back-and-forth process -- all art is, and I look at creating a PCB as much an artistic endeavor as technical endeavor (both aspects must be attended well).

    There are many roads leading to Rome, and many roads to a successful PCB.
  • ReachReach Posts: 107
    edited 2013-11-17 12:18
    Well as long as the job gets done. :)

    I have completed almost 60 PCB's and never have any of my clients had a negative comment in over 9 years of, designing boards, schematics and circuits. I use to do the schematic first but found that during the PCB stage many changes happen including the clients productions assembly capabilities. Im no Rookie my friend :)

    I like paper first then PCB then schematic - It provides, me at least, a rapid time to production.
  • RagtopRagtop Posts: 406
    edited 2013-11-17 13:33
    Reach wrote: »
    I would place another 10K resistor for U2 as a pull up on the eeprom. I would also employ a capacitor on U1 and U2.

    Also may I inquire where the PCB will be made ($16 sounds like a good price)?

    I have been just using Parallax's schematic which just has one 10k for the eeprom. Is there another schematic out there?

    It is through the diptrace program. It says from Bay Area circuits. I haven't run traces yet....assuming they charge you for that size copper if
    you use it or not as traces......but it might be more when I lay the traces.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-11-17 14:23
    Ragtop wrote: »
    I have been just using Parallax's schematic which just has one 10k for the eeprom. Is there another schematic out there?

    The QuickStart schematic is pretty close to what you'd want.

    The only Propeller board I'm aware of, Parallax produces, without a 10K resistor on both I2C lines is the Demo Board. All the other Propeller boards use two pull-ups.

    The second pull-up isn't needed to program the Propeller but there are lot's of applications which require both lines to be pulled high.

    One of the first things the PEK does when it introduces datalogging to EEPROM is to show how to add the second pull-up. Technically, both lines are supposed to be pulled high on a I2C bus.

    The lack of capacitors on the Parallax schematic is very annoying to many forum members. Not including caps on each Vdd pin can cause damage to the Propeller (this has been well established). With the DIP chip, you only need two bypass caps on the Propeller. The other packages require four bypass caps (or a power plane under the chip with a ground plane on the bottom layer like the Propeller Proto Board).

    In general, each IC should have a 0.1uF bypass cap next to its Vdd pin. So you should also add one to the EEPROM.

    Have you tried OSH Park. They're great for small boards. They do take about three weeks to have them delivered. They give you three PCBs for $5 per square inch (or $1.67 per square inch for each board). I've had a lot of small PCBs made which cost around $0.25 each (this includes shipping). The 25 cent PCBs were 1/2" in diameter. For larger boards, I use other fab houses.
  • RagtopRagtop Posts: 406
    edited 2013-11-17 14:40
    The one I have been using is somewhat dated I guess. I should search the site for a more updated schematic.

    prop.jpg
    683 x 648 - 372K
    prop.jpg 371.8K
  • RagtopRagtop Posts: 406
    edited 2013-11-17 14:47
    Easier said then done. I haven't navigated the site much since the website update. Don't know where anything is. I thought the QuickStart schematic might be on it's product page like the old site, but no go.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2013-11-17 14:48
    Ragtop wrote: »
    Easier said then done. I haven't navigated the site much since the website update. Don't know where anything is. I thought the QuickStart schematic might be on it's product page like the old site, but no go.

    It's in the Help menu of the Propeller Tool.
Sign In or Register to comment.