Help! Why was it shorted?

I ran the DRC, soldered the resistors, and connected the 30pins esp32 in the middle. However, when I connected the battery:

  1. I did not even turn the switch to ‘on’
  2. The battery blew up.
  3. The 5v voltage regulator/boost converter’s LED did not light up the whole time (I tested the regulator before hand, and it worked.)
  4. It was shorted however the voltage divider in parallel was not hot at all.

I am so confused. Why did it happen?
Though I have to say that the battery I used was once shorted. However, that shouldn’t be the problem because I have used that same 18650 3.7v 3400mA battery in other projects which worked fine.
ShortedPCB_2.fzz (75.4 KB)

Wait a minute. I tested another blank unsoldered board, and even without anything, the two pads of the battery are still shorted.

The likely reason the battery blew up is that it is connected backwards. It is always a good bet to route schematic to make sure breadboard and pcb are correctly routed. In this case they are not which schematic makes clear the battery positive terminal is connected to the regulator ground terminal which is obviously wrong.

as we see here the battery positive terminal is connected to the - input of the boost regulator. That will power the boost regulator in reverse and very possibly short the battery which would produce the result you describe. There are a number of other odd things about this circuit, but this is likely the cause of your problem. I would advise using a proper part (rather than headers) for the ESP board so you get proper pin labels that are more easily checked. There likely is a Fritzing part for whichever ESP this is as I have made a variety of ESP dev kits for people over the years.

Peter

Thanks for spotting that.
However, it looks like it is wired correctly in the PCB view.
Also I tested a blank PCB with nothing soldered onto it and it seems like the 2 terminals of the battery are shorted.

That doesn’t appear to be the case in your uploaded circuit. There may of course be an error in the board (or a solder bridge) causing a short but the board appears correct other than the battery is connected backwards to the inverter. Here I rigt clicked on the - battery terminal. As we see it does not connect to the positive terminal of the battery directly.

It is possible that you have connected the -OUT of the boost converter to the positive of the battery but that doesn’t appear to be correct either. Here I add a wire (circled in green) to connect the In- pin to the Out- pin as is usually the case in boost converters, then right clicked on the switch terminal which will light all nets connected to the switch (and to the positive of the battery, if the switch is closed) but that still doesn’t short the battery.

I would guess you either have a solder bridge on your board, your board wasn’t made correctly or the converter being backwards has the effect of shorting the battery. You might try putting an ohm meter across the battery terminals (without the battery in place) and see if that shows a short. Then trace the paths (or unsolder the boost converter) and see if it clears.

Peter

Is this the ‘exact’ sketch that was used to create the gerber files used to create the PCB? Do you have the gerber files that were sent to the production house? Use a viewer to check the gerber copper layers to see if you can find a short from plus to minus.

Visually compare the gerber output to the blank PCB.

You can also try direct visually tracing on the blank PCB. If the ohm meter shows them shorted, there is a problem somewhere on the board. Finding it is the challenge.

Good catch! I missed that. It obviously is not the same gerbers as the gerbers generated from his sketch do not show a short between the battery terminals (as there shouldn’t be as there is a switch between the positive battery terminal and the circuitry. This is the gerber output from the posted sketch displayed with gerbv. There is no obvious short. So either the boards were made wrong (which I find unlikely) or the wrong gerbers were supplied.

Peter

Yeah true. Thanks again.

Is there a reason for this “organic” design? If it gets more dense I tend to elect for a “system”, for example move vertical tracks to the bottom and horizontal tracks to the top when crossing. Saves a lot of vias and keeps things apart. Saving vias is particularly helpful as 1.0.4 seems not to want to convert vias back into bend points anymore. Moving them becomes a bit of a fuzz.

When I load this into my Fritzing then I can see the track from J5 pin3 being at shorting distance to the J5 pin6.

Also R2 or rather the via seems to be at best accidentally connected to the track on the top side. Albeit the latter is a problem I have every now and again, that Fritzing all of a sudden disconnects tracks/wires that were in a junction or via and I have to reattach them, usually by creating a new bend point, deleting the offending piece of track/wire and reattaching the new bend point.

If this has changed from previous Fritzing versions you should open an issue on github to make sure it was intentional (it may have just gotten missed in testing.)

Running DRC against your sketch should catch this. As would following best practice and run traces vertical, horizontal or at 45 degrees. Vias should be a last resort, I can usually eliminate most of them (although it costs time!) by rerouting. Sometimes you have no choice but eliminating as many as possible is a good bet.

I think there may be an issue on this open on github. If not and if you can reproduce the issue, again open an issue on github here

Peter

1 Like

I might have to correct myself, I found why it does not do that and when. It seems to have to do with interruptions in the track, like when track size is changed after a via. Just plain converting to bend point and back works just as expected.

Tried setting up a track from new and this still works. Got to look closer.

Are you running the current Fritzing version (Fritzing 1.0.4?) If not upgrading would be a good bet.

Peter

Yes, 1.0.4, but currently on the Windows version, normally using Linux. Some work, some do not. I have just created a test project consisting of 3 THT resistors. I connected 1 leg of each in a T junction. Then I created some vias, moved the junction to the opposite board side and back and that seemed to work until I created another via.

The marked via does not want to be converted to a bend point.

Edit, it does, if I click above and it does not if I click below the track.

Now that I see the snap shots, it seems to do if the UI thought I clicked the track or the via.

Sometimes this:

image

And sometimes I get that:

image

So I must find a way to convince it that I tried to click on the via.

Sorry for hogging the thread. It appeared an unusual problem when I tried to move some of the tracks of the OP that these behaved stubborn.

For me on Fritizng 1.0.4 on Win10 it doesn’t work at all (unless I am doing something wrong!):

this isn’t a surprise as there is no bendpoint

but this should work I think and doesn’t top bottom or otherwise.

this should work as there is a bend point (and snap to grid is on so it should connect I think.) Although I have never tried this before, it also doesn’t work on 0.9.10 which tells me that I at least am doing something wrong. Since I don’t know what it should do, I don’t know what is wrong either.

Peter

1 Like