SparkFun Forums 

Where electronics enthusiasts find answers.

Questions relating to designing PCBs
By houta69
#44085
Hello All -

I'm designing my first PCB (2 layer) based off of this schematic. http://home.comcast.net/~houta69/M1-R.bmp

My background is in software and my hardware skills leave a lot to be desired. One thing that I'm very confussed about is the proper grounding to use on the board. I've seen where the ground rail is provided with a big fat trace running around the perimeter of the board, others recommend providing a ground plane. I've seen recomendations for seperate ground planes that tie back together at the supply if RF or mixed analog and digital circuits are used. I've also read arguments for using a single ground plane for the entire board regardless of the circuitry involved.

I was hoping that someone might shed a little additional light on this topic for me. Are there general rules of thumb for which techniques should be used in a given situation or is every situation completely unique?

This is also my first CAD schematic diagram, so any critiquing of that is welcomed too.

Thanks much
User avatar
By leon_heller
#44091
I'd just use fat supply tracks, if it's a prototype for your own use. If it is something that is going into production, you might need to use copper pour and take other measures to avoid EMC problems. The term 'ground-plane' is usually reserved for multi-layer boards.

Spend some time getting the components placed optimally. Route critical nets like the supply and ground, and oscillator, first.

Leon
By NleahciM
#44099
Why do you have your LM1117 taking as its input voltage the output of the 7805? Such a setup can lead to badness like weird oscillations. With your board - I don't see any need for that setup.

As to the topic of this thread - I'd go with a solid ground plane on one layer of the PCB if you're having this board professionally made. There really is no reason not to - it's a simple enough board that the layout should be easy to keep all on one layer.

If you were doing RF stuff on the board itself maybe you'd have to worry more about separate ground planes - but all the RF is handled within the RF module you're using, so it's not a big deal.
By houta69
#44103
Thanks for taking the time to respond.
Why do you have your LM1117 taking as its input voltage the output of the 7805? Such a setup can lead to badness like weird oscillations. With your board - I don't see any need for that setup.
The RF receiver runs at 5V while the MCU runs at 3.3V so I need to have two supply levels on the board. That's also why I'm using the voltage divider on the RF data line that feeds into the MCU. As I mentioned previously, my harware skillset is still pretty poor. How should I supply both 5V and 3.3V to the board? I thought that supplying the 3.3V LDO (it's actually an AME1117) from the LM7805 was the way to do that. I don't need to have two separate supplies feeding the regulators do I?

Thanks again.
User avatar
By leon_heller
#44118
Using two regulators in series like that can be useful, as it reduces the dissipation of the second one. Provided you use the recommended capacitors you won't have problems.

Leon
By houta69
#44119
Appreciate all the info Leon.
By NleahciM
#44122
houta69 wrote:Thanks for taking the time to respond.
Why do you have your LM1117 taking as its input voltage the output of the 7805? Such a setup can lead to badness like weird oscillations. With your board - I don't see any need for that setup.
The RF receiver runs at 5V while the MCU runs at 3.3V so I need to have two supply levels on the board. That's also why I'm using the voltage divider on the RF data line that feeds into the MCU. As I mentioned previously, my harware skillset is still pretty poor. How should I supply both 5V and 3.3V to the board? I thought that supplying the 3.3V LDO (it's actually an AME1117) from the LM7805 was the way to do that. I don't need to have two separate supplies feeding the regulators do I?

Thanks again.
I understand why you want two separate supplies. My point is that I see no reason to run the 3.3V supply off of the 5V supply. It is very poor design practice and is something that should only be done when absolutely needed. As Leon says it can be done to limit power dissipation in a single part, but it also can cause nasty noise and other shenanigans that you don't want to deal with.

To be clear: the change I'm saying you need to make is have both the LM1117 and the 7805 use the raw 12V supply as their input voltage.
User avatar
By leon_heller
#44126
Why should it cause noise etc? I often use a regulated bench power supply or a wall-mounted supply which contains a regulator to power a PCB with a regulator on it, as do most people, and that doesn't cause any problems.

Leon
Last edited by leon_heller on Thu Mar 06, 2008 7:00 am, edited 1 time in total.
By jmdesign
#44127
Assuming you use the proper smoothing capacitors recommended by the datasheet, I can't imagine there being any problem with multiple regulators in series like that.
By Andrew02E
#44134
I've used regulators in series many times without any problem, even in an RF (cellular) application. Although some regulators might conflict, regulators such as the 78xx or LD1805Vxx don't seem to have problems. Leon also brings up a good point about benchtop power supplies using regulators. People put regulators in series all the time then and there's no problem.

As far as ground planes, I usually have one on the bottom side of my PCBs (but I don't do much high frequency stuff). To get technical, it can add a small amount of capacitance to nearby traces. That can be a good or bad thing (good - decoupling, bad - parasitic capacitance). If you're doing RF stuff, most designs have restrictions on where you should put the ground plane, so double check the reference designs first (if they exist).
Also, if you're not going to have a soldermask on your board, keep in mind that it's real easy to bridge pads to the ground plane when you're soldering if your trace clearance is too small.
By n1ist
#44138
You want separate caps from v+ to gnd and v- to gnd on the sp3232.
/mike
By NleahciM
#44140
Andrew02E wrote:I've used regulators in series many times without any problem, even in an RF (cellular) application. Although some regulators might conflict, regulators such as the 78xx or LD1805Vxx don't seem to have problems. Leon also brings up a good point about benchtop power supplies using regulators. People put regulators in series all the time then and there's no problem.

As far as ground planes, I usually have one on the bottom side of my PCBs (but I don't do much high frequency stuff). To get technical, it can add a small amount of capacitance to nearby traces. That can be a good or bad thing (good - decoupling, bad - parasitic capacitance). If you're doing RF stuff, most designs have restrictions on where you should put the ground plane, so double check the reference designs first (if they exist).
Also, if you're not going to have a soldermask on your board, keep in mind that it's real easy to bridge pads to the ground plane when you're soldering if your trace clearance is too small.
The point is... sometimes as you say they *do* conflict. There is no need for them to be in series on this board - it offers no advantages to him as power dissipation does not look like it'll be an issue.
User avatar
By leon_heller
#44141
One doesn't have a choice with devices such as the Telit GE-863 GPRS/GPS module. It runs off 3.7V which can be supplied from a regulator, and it has a built-in regulator supplying 2.8V for auxiliary circuitry.

Leon
By houta69
#44155
Thanks to all for the feedback. This was more than I had anticipated.
leon_heller wrote:One doesn't have a choice with devices such as the Telit GE-863 GPRS/GPS module. It runs off 3.7V which can be supplied from a regulator, and it has a built-in regulator supplying 2.8V for auxiliary circuitry.
My MCU does the same thing. It takes VDD from the LM1117 and runs it through an on-chip regulator to drop it down to 2.5V from which it runs the core. I do not say this to dismiss NleahciM in any way, but it does make me feel a little less embarrassed about my ignorance when I see that there are points of contention even amongst the experts.
By NleahciM
#44158
houta69 wrote:Thanks to all for the feedback. This was more than I had anticipated.
leon_heller wrote:One doesn't have a choice with devices such as the Telit GE-863 GPRS/GPS module. It runs off 3.7V which can be supplied from a regulator, and it has a built-in regulator supplying 2.8V for auxiliary circuitry.
My MCU does the same thing. It takes VDD from the LM1117 and runs it through an on-chip regulator to drop it down to 2.5V from which it runs the core. I do not say this to dismiss NleahciM in any way, but it does make me feel a little less embarrassed about my ignorance when I see that there are points of contention even amongst the experts.
I think the problem is that you're assuming everybody knows what they're talking about.