Electronic – Inconsistent voltage on buck converter (TPS54240)

buckcircuit-designtroubleshooting

I'm currently facing a weird issue. For one of my project I had to design a buck converter circuit in order to step down the voltage of three LiIon batteries to 3.3V so I can power a microcontroller.

I'm using the TPS54240 chip. The datasheet can be found here.
A typical application schematic is shown on page 31. Since said circuit outputs 3.3V I was able to more or less copy it. My schematic looks as follows:

After ordering a PCB prototype the buck converter didn't really work, unfortunately.
When I applied ~7.4V (2 LiIon batteries) to VCC the output showed ~3.3V as I was expecting. However once I connect a load, in my case the microcontroller, the voltage dropped to ~3.26V. Why is this happening? I thought a buck converter utilizes a feedback loop in order to maintain a constant voltage. The TPS54240 chip itself is rated for up to 2.5A in this case and my microcontroller isn't even pulling 100mA.

Even more confusing was the scenario when I connected ~11.1V (3 LiIon batteries) to VCC. In that case I measured ~2.6V at the output, which again dropped significantly to ~2.4V just when I connected a LED that drawed maybe 20mA. My microcontroller wasn't able to power on on such a low voltage making the circuit more or less useless.

Since I don't have a ton of experience with designing a circuit (this was my first project) I don't know how to troubleshoot this problem.
I would appreciate any kind of help. Thanks!

Edit: This is the PCB layout of the circuit.

Edit 2: Here is a possibly fixed PCB layout.

Best Answer

Did you use an autorouter?

@Andyaka I kinda did, yes. Routing a PCB was surprisingly time consuming and actually wasn't that easy. So I used an autorouter and edited the traces afterwards to, for instance, remove 90° angles in traces.

The routing, component placement and track widths are pretty bad in very important areas. Don't use an autorouter unless it's a last resort like for a backplane etc. where there are many repeated steps in the process.

Problems

enter image description here

  1. In light blue is the tortuous path taken from the inductor around the PCB to connect to C17 and C18 (the main bulk capacitors).
  2. In purple is the far-too-long track from the switcher output to the flyback diode and inductor
  3. The track widths are far too thin in my opinion and their length makes a big loop that could emit nasty interference to any close-by sensitive circuits.
  • D5 should be right up close to the switcher and should ground directly to C17-C19 forming an island. That island should only connect to the rest of the design (not the power supply) at one unambiguous point to avoid switching currents creeping into ground areas of sensitive circuits.

Recommendations

  • L1 should be alongside D5
  • C17 and C18 should be butted up to the above
  • Then C19 and C20
  • The ground connection of R31 (not visible in the layout) should make a connection directly to the island of ground for D5, C17, C18, C19 and C20
  • Any other ground points associated with the switcher should be teed off from that ground island.

Regarding the inductor

I see nothing in the data sheet that rules it out but, whenever I design a switcher, I pick an inductor that has a specified self-resonant-frequency (SRF) just to ensure that it is fit for purpose; in other words, if your switching frequency is (say) 200 kHz, I would want to pick an inductor that has an SRF of at least 1 MHz. Unfortunately I didn't see this stated in the data sheet nor can I say that the supplier has a decent quality system and decent tolerances. This last bit is about being careful who you choose. For instance, if one of the major recognized electronic component vendors was offering it in their catalogue I would be assured that the original manufacturer was OK.

Something like this: -

enter image description here