Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The LLM generated four caps on the LDO output. They're all placed next to each other and away from the LDO, but that seems to have been a human choice. So I can't fault the LLM there.

That said, the AMS1117 datasheet shows a tantalum cap on the output. This is presumably because the non-negligible ESR helps stabilize the regulator, though they don't say that explicitly. The LM1117 datasheet explains this better, stating that "the ESR of the output capacitor should range between 0.3 Ω to 22 Ω". (These are very similar parts, just from different manufacturers.)

The ceramic caps chosen here are probably below that, so perhaps it would ring even with correct layout. The prompt guided towards that bad choice when it said all caps should be 0603, since almost all 0603 capacitors are ceramic. The LLM was free to choose a regulator optimized for use with ceramic output caps, but it probably chose the xx1117 because it's so common.

http://www.advanced-monolithic.com/pdf/ds1117.pdf

https://www.ti.com/lit/ds/symlink/lm1117.pdf



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: