Schematic & PCB Help

Hi Everyone,

New here and new to fritzing (why I am in the beginners section :)).

I have done a breadboard design (I have actually soldered this onto a blank PCB and built the software already so I know it works) but I am looking to get a ‘real’ PCB done (outsourced) so looking to sort out the schematic and PCB.

After I built my breadboard I went into schematic and it is truely a rats nest and I can’t figure out how to lay it out nicely LOL. The same for PCB :(.

Any help, ideas, suggestions would be greatly appreciated.

Thanks in advance.
C

multi_sensor.fzz (38.0 KB)

Fritzing tends to overlay parts on one another. You need to click on a part to select it then drag it to an appropriate position like this:

You can rotate the components by right clicking on them and using rotate. Then select a ratsnest line (which will take the shortest path to the associated connection) and drag it to an appropriate position:

Same applies to pcb view.

Peter

Thanks @vanepp. I re-did the schematic - after watching a few videos so that I have a better understanding of how to properly lay it out and to make sure everything works properly

One of things I can’t quite tell if I did it right was the pull-up resistors. It seems like they are right but they won’t “prove” themselves when I click on the positive (3.3v) on the ESP32 ie. the connection stops at the resistor versus all the other connections “prove” themselves.

This time I worked from schematic side versus the breadboard side … I hope it is easier to from schematic to PCB.

Any feedback, ideas, suggestions, corrections - VERY much welcome. I have always just built and then diagnosed any issues. But fritzing seems way better as then atleast I have an idea of how I put things together :). On this particular project I actually want to a PCB made and see how it turns out :).

Thanks in advance.
C
multi_sensor_1.4.fzz (38.9 KB)

Looks fine to me. If I click on the 3.3V pin on the esp32s all the connections light up yellow (indicating they are correctly connected.) Switching to pcb view you can see the connections as rats nest lines (the one between the two top connectors is hard to see though, as it is under another rats nest line.)

To make seeing it easier I clicked on the rats nest line (which creates a trace) then dragged the one on top out of the way before doing the one we want. Clicking on a point in the trace and dragging will move the trace to an appropriate position as the rats nest lines take the shortest distance to the next connection:

Here the trace on the bottom layer is off the board only so we can see the trace we want between the connectors (the trace needs to be moved on to the board for the circuit to work, if it is outside the gray area, it won’t make it on to the pcb.) Note while it would be shorter to route the trace to the 3.3V pin on the ESP, the box marked antena is actually a keep out area where no traces should be routed as they interfere with the antenna. The standard method of making a turn is to run the trace at 45 degrees on a right angle corner as I did here, it only really matters on rf type traces, but always doing so is a good practice. For something like this right angle corners will work fine though (and are less work to make!) When you finish the board feel free to upload the sketch.fzz file (upload is the 7th icon from the left in the reply menu) and one of us will look it over for problems.

Peter

Hi Peter,

Here is my latest with the PCB ‘finished’. I had a really hard time figuring out how to lay it out without having things ‘cross’. So I ended up having to use some jumpers to make it work.

The other thing I don’t completely understand is which way J5 & J6 (terminal blocks) should face. ie. should the connections be facing the outside of the PCB or the inside (as they are now). Any thoughts on this?

One last questions - when you outsource PCB man. will the company put the resisters, terminal blocks, headers etc. etc. one the board?

Open to all ideas, suggestions, etc. etc. Love learning this stuff :).

Thanks in Advance
C
multi_sensor_1.5.fzz (43.0 KB)

Two things you can do about that. The easiest (which is what I did) is change from surface mount resistors to through hole (which are easier to manually solder). To do so select the resistor and in Inspector (the lower right window) change package from smd to tht (tht stands for through the hole) and you can avoid the jumpers.

multi_sensor_1.5-improved.fzz (42.1 KB)

The other thing you can do is right click on a trace and click “Move to top layer” which will move the trace to the top of the board (as long as the part is not SMD as the resistors were.)

From a look at the data sheet (I don’t have one of these connectors) the screw to connect the wire needs to be facing out from the board which looks to be how it is connected now (you need to make sure that is true though!)

They will assemble complete boards, but normally in 100 quantity I think. The usual (and cheap!) thing is to only get the bare board and do the assembly yourself. That is another reason to not use the smd resistors through hole are easier to solder.

Peter

So awesome - thanks so much!! Peter.

One further question I had. In one of the videos I watched the fellow said to print the PCB view which also showed the holes where things will fit. I wanted to do this to make sure the ESP32 and the terminal blocks fit in the holes. For the life of me - I can figure out how to print that “view” he called it the 1:1?

@ 1:02

Ideas?

Thanks,
C

You can either do file->print with pcb view selected which should print it directly, or file->export->as Image and save the file as one of the formats offered and print that. A third method (and probably the best as this is what the boards will be made from) is export the sketch as a gerber file (file->Export->for production->Extended Gerber (rs-274x) . This will produce the gerber files that will produce the board. The file drill.txt has the size of the drill holes for all the pins and a gerber viewer (I use gerbv from the geda project, but there are lots of them) will display and print the copper layers. The advantage to using the gerbers is that the same data will be used to make the actual boards.

Peter

Awesome!!

Thanks,
Curt

printing “1:1” simply means to print a one pcb unit equals 1 physical unit on paper. That is if something is 1 inch in Fritzing, it prints as 1 inch on paper, so that the size can be matched to the physical parts. 1:1 means “1 to 1”, drawing units to physical units. @vanepp covered details of methods to get there.

Thanks @microMerlin.

I followed @vanepp instructions and produced the gerber files. Looking at drill.txt I can see there will be 10 holes drilled … which is all the holes but NOT the holes for the ESP32. So trying to diagnose why those holes are not being ‘set’/drilled for the ESP32.

UPDATING - for some reason it was not seeing my ESP32 … but when I took the part out and re-insterted it - the gerber files now see the driil holes.

C

Odd, because the geber output for the multi_sensor_1.5-improved.fzz above is correct:

This is the gerbv output from multi_sensor_1.5-improved_drill.txt and one of the copper layers. The purple centers are the drill holes. multi_sensor_1.5-improved_drill.txt looks like this:

; THROUGH (PLATED) HOLES START AT T100
M48
INCH
T1C0.086614
T100C0.040000
T101C0.038779
T102C0.035000
%
T1
X031295Y001206
X001295Y001206
X031295Y021206
X001295Y021206
T100
X005295Y004206
X005295Y020206
X005295Y018206
X005295Y006206
X005295Y016206
X005295Y002206
X005295Y014206
T101
X024301Y006350
X029299Y006350
X014306Y006350
X021301Y006350
X014306Y016206
X027302Y016206
X013312Y006350
X022304Y006350
X019304Y016206
X030303Y016206
X026298Y016206
X017306Y006350
X018310Y006350
X023308Y016206
X024301Y016206
X016303Y006350
X018310Y016206
X027302Y006350
X020307Y006350
X028295Y006350
X020307Y016206
X023308Y006350
X026298Y006350
X016303Y016206
X017306Y016206
X029299Y016206
X025305Y016206
X012309Y016206
X025305Y006350
X019304Y006350
X013312Y016206
X030303Y006350
X012309Y006350
X028295Y016206
X021301Y016206
X015309Y006350
X015309Y016206
X022304Y016206
T102
X007295Y014206
X009295Y019206
X009295Y015206
X007295Y018206
T00
M30

T101 are the esp holes, a little large (they should be 0.038in) but close enough to not be a problem. One or another of the esp boards (obviously not this one :slight_smile: ) has holes too small for .1 header pins which is why it is wise to check the gerber drill outputs when using parts from the net.

Peter

@vanepp I had changed to a different ESP board as I figured out it was not the board I am using. So had to a build of a rebuild. Once I did that - ALL is good.

Now I am resarching who I should actually outsource this to!

C

There are lots of choices starting with Aisler, who are the fab for Fritzing in Germany. They feed back a portion of their fee to Fritzing development and check the board over before making it. They are fairly expensive compared to the discount pcb makers, but the discount houses don’t check anything and just produce whatever you order. I tend to use elcrow in China
https://www.elecrow.com/ and osh park is another that people have used https://oshpark.com/ and liked. There are lots of other choices as well. As before check the gerber drill.txt file to make sure the holes for the esp are close to 0.038 in (the size for .1 header connectors) to avoid the problem of a hole too small.

Peter

Quick update. @vanepp - the new board worked out AWESOME. Took a week to arrive from China - used PCBway. Everything was flawless!

Thanks so much for all your help!!!

C