Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review Layout #69

Open
17 tasks done
Informaticore opened this issue Jan 19, 2021 · 36 comments
Open
17 tasks done

Review Layout #69

Informaticore opened this issue Jan 19, 2021 · 36 comments
Labels
Layout Board Layout Schematic Board Schematic Square Stacked Square Stacked Board version var_original

Comments

@Informaticore
Copy link
Owner

Informaticore commented Jan 19, 2021

Schematic Level

  • Change GND pins position on J9/J10 (Improve +3.3V usage and Shielding)
  • Add more "Net Label" to improve the routing process (especially near the DC-DC converters/charger)
  • Add one 2pts connector/pads for each ouput voltage (+3.3V, +3.3V_MCU and +5V). We need to have the possibility to power sensors, external boards, display, etc. (even if the ESP board is connected)
  • Update R6/R7 values to limit the USB current to 1.5A (D1 can support 2A max and Board load current is limited to 500mA by the LTC4162)

Board Setup

  • The copper layer 2 should be defined as a "Power Plane"

Copper Layers

  • Remove any tracks on layer 2 (GND Power Plane)

Footprints

  • ESP-WROOM32 module need 12 vias on the GND Power shape (pin 39). (recommended Layout)
  • Update the ESP-WROOM32 footprint (EPAD need 3x3 PAD matrix -> see Datasheet for the recommended pattern)
  • Update the QFN28 footprint of the CP2102N USB chip (use thermal vias version + increase hole diameters to 0.3mm)
  • TPS63070 : Solve the issue (Pin 12&13 soldermask & solderpast, SMT instead THT and remove any solderpast layer on PADs)

Clearance

  • Replace Mouting Hole footprint near the ESP antenna by one without any copper shape to respect recommanded clearances.

Routing

  • Re-route the Vdd net (use wider copper tracks and copper shape)
  • LTC4162-L : Apply the recommended rules from the Datasheet (p. 35) and Demo Board layout
  • USB Data lines : Use a differential pair and apply the recommended rules

Silkscreen

  • add version/revision and date
  • Add Silkscreen RefDes for Connectors
  • Update the max input voltage (20V ->15V). TPS63070 only accepts 16V max.
@MantaRayDeeJay
Copy link
Collaborator

I think that we should improve the GND pins position on J9/J10

Apollo_v1 00_Bottom - Change GND pins

The goal is to do +3.3V and GND pins close together and to add a " virtual shield" between I2C signals and USB signals

@MantaRayDeeJay
Copy link
Collaborator

MantaRayDeeJay commented Jan 22, 2021

The copper layer 2 should be defined as a "Power Plane"

Board_Setup - Power Plane - With Arrow

@MantaRayDeeJay
Copy link
Collaborator

The Layer 2 is defined as a power plane and should be a TRUE power plane without any tracks.
The GND plane must clean to avoid any "loop" effect.

Layer 2 (GND Power Plane) - Remove Tracks

On the ESP board, move the track on layer 3 or layer 4.
On the Charger board, move the track on layer 4.

@MantaRayDeeJay
Copy link
Collaborator

3v3_I2C plane shape could be optimized. Only draw the area you need. It will increase insulation distance between other power plane shapes.

Layer 3 (Copper shapes) 3 3V_i2c (Re-Shape)

@MantaRayDeeJay
Copy link
Collaborator

SilkScreen Layer : Max input Voltage can't be +20V (TPS63070 only accept 16V max).
PS : I have specified +15V max on the schematic.

Apollo_v1 00_Bottom - Vinput Range
TPS63070 - 16V_max - ZOOM

@Informaticore
Copy link
Owner Author

Add Silkscreen RefDes for Connectors

@MantaRayDeeJay they all got naming and description do you really need the ref?

Add more "Net Label" to improve the routing process (especially near the DC-DC converters/charger)

I don't understand what you mean with "Net Label", what are you referring to?

Add one 2pts connector/pads for each ouput voltage (+3.3V, +3.3V_MCU and +5V). We need to have the possibility to power sensors, external boards, display, etc. (even if the ESP board is connected)

I will try to add some

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Add more "Net Label" to improve the routing process (especially near the DC-DC converters/charger)

I don't understand what you mean with "Net Label", what are you referring to?

ANSWER
An example below (with one of the 2 DC-DC converters).
PS : It should be great to do it for the 2 DC-DC converters and for the LTC4162L charger chip
Then, I could continue the review easily on these 3 critical layouts.

TPS_63070_Add_More_Net_Names_ - Updated
TPS63070_inductor - highlight - Updated

@Informaticore
Copy link
Owner Author

okay - got it

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Add Silkscreen RefDes for Connectors

@MantaRayDeeJay they all got naming and description do you really need the ref?

ANSWER
I think mainly about 2pts connectors because there are 4 on the board.
To avoid any confusion, I should recommend to add it. (sometimes, text on silkscreen and text on schematic are not always synchronized). The Ref. Des. stay the only unique ID for each component.

PS : Always think about newbies. (it should be easy for everyone !!!)

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

ESP32 module :
The recommanded layout use 12 vias on the Power GND Pad, I can see only one on the board.
I think, vias should be added at the footprint level.

ESP32 - GND Power PAD - with Arrow

ESP-WROOM32 - Recommended Layout

ESP-WROOM32 - Recommended Layout - ZOOM

@Informaticore
Copy link
Owner Author

Informaticore commented Jan 23, 2021

@MantaRayDeeJay do you know how to add vias in a footprint?

I didn't try it yet.
I think that you could have a look on the footprint used by the LTC4162L to see how it is build (there are vias)

@MantaRayDeeJay
Copy link
Collaborator

ESP32 Module : Antenna Clearance

I can see that the recommanded clearances are not fully respected.
It should be 15mm min distance (not only 5mm)

ESP_Module and MTG holes

Recommanded_placement

Antenna_Clearance - HighLight



Possible solution : Use a Mouting Hole without any copper shape and avoid the usage of metal screw (Nylon should be good).

M2_Nylon_screw

M2 2_Mtg_Hole

@Informaticore
Copy link
Owner Author

We can go back to M2 holes but then we have to go everywhere, also on the charger board.

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

We can go back to M2 holes but then we have to go everywhere, also on the charger board.

ANSWER
You don't have enough space on the board to use M2.5 Mtg holes (currently 2.5mm hole diameter without enough clearance space from the edge of the board)
Therefore, we haven't any other choice than using M2 holes (2.2mm hole diameter)

PS : We can keep Mtg holes with copper shape for those on the opposite side of the ESP Module Antenna on the charger board.

@Informaticore
Copy link
Owner Author

Informaticore commented Jan 24, 2021

I made all of them M2 (no pad) for consistency

@MantaRayDeeJay
Copy link
Collaborator

MantaRayDeeJay commented Jan 24, 2021

@Informaticore

@MantaRayDeeJay do you know how to add vias in a footprint?

I didn't try it yet.
I think that you could have a look on the footprint used by the LTC4162L to see how it is build (there are vias)

UPDATE

Adding Vias in a footprint is the same way as adding padstacks. (all vias pin numbers must be the same as the EPAD padstack)

I have updated the ESP32 module footprint : Epad 3x3 matrix + vias (as recommended on the datasheet)
ESP32-WROOM-32_EPAD_3x3_ThermalVias.zip

ESP32-WROOM-32_epad_3x3_vias

ESP32-WROOM-32_epad_3x3_vias - ZOOM

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Schematic - Max USB Current settings

Currently, the max current setting for the USB port is 3A.
But the reverse protection diode can sink only 2A max.
Moreover, Max current used by the board is limited to 500mA (LTC4162 settings) to be compliant with USB2 devices.

I think we should limit the USB current to 1.5A for safety.

Max_USB_current_settings - With Arrows

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

CP2102N : QFN28 footprint

I think you should use the "ThermalVias" Version (I think, only 1 via is not enough)
PS : Via hole diameters are defined with 0.2mm. You should redefine them to 0.3mm. (idem as Sethkaz Review)

Capture d’écran (699)

QFN28_Thermal_Vias_ZOOM

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Power Vdd net is not well routed. (track width = 0.25mm)
You should use wider copper tracks and copper shape

Vdd - Width track 0 25mm - with arrow

@MantaRayDeeJay
Copy link
Collaborator

MantaRayDeeJay commented Jan 26, 2021

@Informaticore

Same thing for the "net-(Q3-Pad1)" between MOSFET (Q3) and Rsense (R13)

Rsense - Width track 0 25mm - with arrow

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

LTC4162-L Layout

Apply the recommended rules from the Datasheet (p. 35)

LTC4162-L - Recommanded Layout

DC2038A Demo Board Layout

DC2038A - Top View
DC2038A - Layer 1 (Top)
DC2038A - Layer 2 (GND Plane)
DC2038A - Layer 3 (Signal-Plane)
DC2038A - Layer 4 (Bottom)

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Vdd Plane shape issue

On layer 4, the "Vdd" plane shape is inner the "GND" plane shape.
As you can see, the "GND" plane is generated first and then the "Vdd" plane is not well generated.

The trick is to increase the "Zone Priority Level" feature on the Filled Zone properties dialog box.

Vdd Filled zone
With Priority 0
Filled_zone_priority - with arrow
With Priority 1 (solved)

@Informaticore
Copy link
Owner Author

@Informaticore

LTC4162-L Layout

Apply the recommended rules from the Datasheet (p. 35)

this will be a bigger refactor and change. I will try to do that.

@Informaticore
Copy link
Owner Author

@Informaticore

Vdd Plane shape issue

On layer 4, the "Vdd" plane shape is inner the "GND" plane shape.
As you can see, the "GND" plane is generated first and then the "Vdd" plane is not well generated.

The trick is to increase the "Zone Priority Level" feature on the Filled Zone properties dialog box.

I know, I forgot about it but strangely the DRC was not warning about it!! That is very bad, it shows 0 issues. Do you see DRC complaining?

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Vdd Plane shape issue

On layer 4, the "Vdd" plane shape is inner the "GND" plane shape.
As you can see, the "GND" plane is generated first and then the "Vdd" plane is not well generated.

The trick is to increase the "Zone Priority Level" feature on the Filled Zone properties dialog box.

I know, I forgot about it but strangely the DRC was not warning about it!! That is very bad, it shows 0 issues. Do you see DRC complaining?

ANSWER

YES, I can see it !!!

DRC - With Priority 0
DRC - With Priority 0 (Filled)

By setting "Zone Priority Level" = 1, DRC is clean as you can see below !!!

DRC - With Priority 1
DRC - With Priority 1 (Filled)

@MantaRayDeeJay
Copy link
Collaborator

MantaRayDeeJay commented Jan 28, 2021

@Informaticore

LTC4162-L Layout

Apply the recommended rules from the Datasheet (p. 35)

this will be a bigger refactor and change. I will try to do that.

NEXT

This is better but it can be improved.

Rsense2   VbatCap - with arrow
LTC4162-L - Recommanded Layout - (Rsense2   Vbat+Cap)
DC2038A - Layer 1 (Top) - ZOOM - (with Text)
Move JP2 - with arrow
Charger Module Power tracks v2bis - Red Lines - Copie

@Informaticore
Copy link
Owner Author

@MantaRayDeeJay I applied more changes but I am not 100% about you drawings, please describe a bit more what else should be changed. But I think I got most of it, please check. All the thick traces are thick now, should be good.

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

@MantaRayDeeJay I applied more changes but I am not 100% about you drawings, please describe a bit more what else should be changed. But I think I got most of it, please check. All the thick traces are thick now, should be good.

ANSWER
I would like VBat Capacitor (C6) and Rsense (R20) as the recommanded layout used on the DEMO Board.
By moving J2, you should have enough place to do it.
Moreover, you should keep the RTC chip and Battery protection circuitry enough away from the inductor. (You can also add a shield GND plane around the Inductorr with some Vias on the layer Top)

@MantaRayDeeJay
Copy link
Collaborator

MantaRayDeeJay commented Jan 29, 2021

@Informaticore

TPS63070 - Footprint Issue

  1. Pin 12-13 copper area is wrong for the soldermask and solderpast layer.
    UPDATED (2021-01-30) :
    Pin 12-13 seems OK (I don't know what was it happend)

TPS63070 - Land Pattern Example - Red Arrow
TPS63070 - pin12 13 - SolderMask Pad Wrong
TPS63070 - pin12 13 - SolderPast Pad Wrong

  1. The footprint is SMT !!! (not THT)

TPS63070_Select_SMT_instead_THT - Arrow

  1. You must delete any global solderpast and soldermask layers on all copper pads. (The footprint countains custom solderpast and soldermask copper shapes)
    -> Check all copper pads
    UPDATED (2021-01-30) :
    All pads which countain solderpast layer don't have any custom solderpast copper shape, therefore, we should also create custom solderpast copper shapes (to keep the footprint consistency)

TPS63070_pin_14 - remove F Past - Arrow

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

TPS63070 : Apply the recommanded Layout

  1. Place C1 and C4 as Figure 51 (C19 & C24 for U9 and C21 & C25 for U10)
  2. Route L1 and L2 nets as Figure 51 (use vias under pads)
  3. Add a gnd shield around the inductor on the top layer as Figure 51

TPS63070
TPS63070 (U9)
TPS63070 (U10)

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

Maybe I found critical signals too near the LTC4162-L inductor without GND shield on top layer.
I recommand to keep away critical signal near inductors.
In this case, it concerns 2 MOSFET gate pin (Q1 and Q5).

Critical signal near LTC inductor - with Arrow

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

LTC4162-L : Separate Inductor GND Shield from other GND Tracks.

GND Shield around inductor common with other tracks - Copie

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

TPS63070 : Separate Inductor GND Shield from other GND Tracks.

GND Shield around inductor common with other tracks (L2) - with arrow

GND Shield around inductor common with other tracks (L3) - with arrow

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

TPS63070 : Optimize Inductor Power shapes against EMI noise : Remove some extra shape area to improve clearance from others nets.

Inductor Power Shapes - Improve areas

@MantaRayDeeJay
Copy link
Collaborator

@Informaticore

TPS63070 : Remove "Artifact Tracks" near capacitors

Remove Capacitor GND Artifact Tracks - with cross

@MantaRayDeeJay
Copy link
Collaborator

MantaRayDeeJay commented Feb 1, 2021

@Informaticore

USB Data Lines : Use a differential pair by following the recommanded rules on the link below.

High Speed USB Design Guidelines
http://ww1.microchip.com/downloads/en/AppNotes/doc7633.pdf

USB con - D+D- - with arrows

USB - D-
USB - D+

Layout Guidelines (1-2) - ZOOM
Layout Guidelines (2-2) - ZOOM

Layout Example - Reverse Mini AB Receptacle - Fig 3 4 (with vias)

@MantaRayDeeJay MantaRayDeeJay added var_original Square Stacked Square Stacked Board version Layout Board Layout Schematic Board Schematic labels Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layout Board Layout Schematic Board Schematic Square Stacked Square Stacked Board version var_original
Projects
None yet
Development

No branches or pull requests

2 participants