Pages: [1] 2   Go Down
Author Topic: PCB Layout review  (Read 2606 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello -

I was hoping to get some feedback on my PCB design - this is my first attempt at having a PCB manufactured.    I re-routed this board maybe 15 times and I hope I finally got it right!  Also want to make sure i am not doing anything blatantly wrong.   I did have to redo and shrink the layout a few times to get it to 10cm x 10cm for the PCB fab.

What it is -  This will be my controller for my aquarium hood.
* Atmega168 with arduino bootloader
* MCP23008 GPIO controls 7 TIP120 transistors:  3 to turn on and off relays, the remaining 4 control 12VDC fans.   The fan headers are on the right, each of the 4 circuits drives 900 mA.
* DS1307 real time clock, also on the i2c bus
* TLV2374 rail to rail op-amp attached to PWM pins from Arduino.   These are for 3 0-10 VDC outputs which control the dimming of my T5 Ballasts.   
* 2 voltage divider circuits on the analog inputs with thermistors, to measure the temperature of the hood and the water.
* the remaining pins of the arduino route to a header for buttons, encoders, LCD, etc.
* input is regulated 12VDC, on the lower left of the board is the voltage regulator circuit.

i only had  small breadboards, so my prototype is a bit of a mess, but it works.

Here is the prototype:



Here is a picture of the layout and links to the Eagle Schematic & Board layout

http://dl.dropbox.com/u/57349766/Fish/LC.4.sch

http://dl.dropbox.com/u/57349766/Fish/LC.4.brd

I still need to complete putting labels on all the parts.   Any feedback, comments, etc is appreciated.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Also, i wanted to ask, should i add decoupling caps to all the IC's or are the caps near the regulator circuit sufficient?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8583
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
should i add decoupling caps to all the IC's
Yes.

First thought, if possible (and it seems that it is) I would align the mounting holes so they are square, currently they appear to be in random locations.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

0
Offline Offline
Edison Member
*
Karma: 8
Posts: 1411
Arduino rocks
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Should also add ground plane.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Should also add ground plane.


DONE - rerouted various traces.   Question - there is a ground plane "island" that is connected to the rest of the plane by about a 50mil trace.  The island has quite a few pins attached to it.     To fix would require me to re-route about a quarter of the board - can you explain if this is an issue/what would the impact be?


First thought, if possible (and it seems that it is) I would align the mounting holes so they are square, currently they appear to be in random locations.

______
Rob

Fixed..  I dropped the mounting holes on so i wouldn't forget to put them on later, and then i never put them in the right spots - thanks for pointing that out!  Posting new files soon.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8583
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
there is a ground plane "island" that is connected to the rest of the plane by about a 50mil trace.  The island has quite a few pins attached to it.   
I doubt this is a problem if the pins are just logic, but if you have large amounts of power it might be. OTOH a 50mil trace is pretty big, so my gut feeling it that it would be OK unless all your transistors are getting their power through that trace.

Speaking of which, how much will all the transistor draw if all on?

How about a new pic.


______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If all 7 transistors are on

  • 3 relays @ 20mA each
  • 2 fan circuits have 2 fans wired in parallel @ 0.580 A, for 1.16 A on each transistor   <-- these two TIP120's i have heatsinks on, they are hot to the touch w/o heatsink.
  • 2 fan circuits have 2 .140 A fans wired in parallel, .280 A each

Total current = 3A
Current in "normal" daytime condition = 60mA (relays) + 560mA (2 fan circuits)

The two high power fan circuits only turn on sporadically if the temperature rises above a threshold.   

Updated pics coming shortly.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

* Added Ground Plane, removed a bunch of ground traces on the top layer that became unneccessary
* Rerouted a few items on the bottom layer
* Added bypass cap on MCP23008 and ATMEGA
* Fixed mounting holes

Here is updated pic... THe eagle board/schematic link above in the first post has been refreshed

Regards,
David
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8583
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I don't have Eagle installed so I can't see the schematics, but it looks to me like that 3A is required from the output of the regulator. If that's the case have you looked at the thermal issues there?

______
Rob

PS: I didn't want to sully my nice computer with the likes of Eagle but may install it to see this stuff smiley
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this gonna be in an enclosure?  using a mosfet like the stp40nf12 would allow you to run cool
a linear regulator is burning alot of heat, a switching one would save on that, but why do need regulated 12v? Fans aren't that picky if you just use something close from the external source
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8583
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok I've got Eagle loaded now and I see that the transistors are low-side switches so ignore my previous post.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PS: I didn't want to sully my nice computer with the likes of Eagle but may install it to see this stuff smiley
What CAD software do you use normally?  The schematics on your website are very clean and easy to understand.

Is this gonna be in an enclosure?  using a mosfet like the stp40nf12 would allow you to run cool
a linear regulator is burning alot of heat, a switching one would save on that, but why do need regulated 12v? Fans aren't that picky if you just use something close from the external source

the 12V input is regulated (not on the board) so the lights controlled by the op-amp don't flicker/change.
The regulator on the board brings the 12V to VCC for everything else.    Agreed about the fans smiley
(There is a VCC pin on the power header for testing purposes only)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 16
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this gonna be in an enclosure?  using a mosfet like the stp40nf12 would allow you to run cool

I have a handful FDP8860's handy let me review the datasheet and see if this is the same as the mosfet you quoted i beleive it is      Is it correct to say the circuit would be the same as TIP120 but i need to pulldown the Gate to ground?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 129
Posts: 8583
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
What CAD software do you use normally?
I use Altium, been using it on and off since I was an occasional beta tester for DOS version of Protel when the guys were in Tasmania.

______
Rob
« Last Edit: June 10, 2012, 09:48:18 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Edison Member
*
Karma: 5
Posts: 1730
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The pulldown would ensure it doesn't start on while the outputs are high impedance, once they are set as outputs and either high or low it doesn't matter, you could probably get away without them but thereon almost always there
how much draw on the 5v line are you using? Dropping ffrom 12v to 5v is basically wasting more than half the power as heat with a linear regulator
Logged

Pages: [1] 2   Go Up
Jump to: