Skip to content

Add symbol/component/device for SN6501 push-pull transformer driver - #26

Merged
ubruhin merged 1 commit into
LibrePCB-Libraries:masterfrom
eduardosm:SN6501
Apr 22, 2026
Merged

Add symbol/component/device for SN6501 push-pull transformer driver#26
ubruhin merged 1 commit into
LibrePCB-Libraries:masterfrom
eduardosm:SN6501

Conversation

@eduardosm

Copy link
Copy Markdown
Contributor
SUMMARY

Adds symbol, component and device for SN6501 push-pull transformer driver

Typical application:

schematic
DATASHEETS / REFERENCES

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

CHECKLIST
  • I have read and followed the library conventions¹.
  • For packages, I followed IPC7351C (see details in library conventions).
  • For modified elements, I bumped their version number².
  • I already used the new library elements in a design and verified their correctness (optional).
  • I'm the copyright owner of the added content (i.e. the changes are made by myself, not copied/imported from somewhere else).
  • I agree to publish all my changes under the CC0 Public Domain License³, allowing everyone to use and modify the content without any restrictions.

¹ Library Conventions: https://docs.librepcb.org/#libraryconventions
² Minor version bump if only metadata was modified (e.g. "0.1" -> "0.1.1"), major version bump if functional changes were made (e.g. "0.1" -> "0.2")
³ CC0 Public Domain License: https://en.wikipedia.org/wiki/CC0

@ubruhin ubruhin added addition New library element. ready for review Waiting for review by maintainers. labels Mar 29, 2026
@ubruhin

ubruhin commented Mar 29, 2026

Copy link
Copy Markdown
Contributor

We already have that symbol in the libraries, so that one should be reused instead of adding a new one - just look for "Generic IC 4-Pin".

One thing that bothers me a bit - for me it feels not intuitive to have D2 above D1, I feel like it would look cleaner to swap those pins. Or is there any reason not to swap them? Those pins are equivalent in function, right? 🤔

Btw, changing the symbol is a breaking change, so to avoid issues on your side, I'd recommend to duplicate the component (to get a new UUID) and remove the current one.

@ubruhin ubruhin added needs corrections Pull request needs corrections before next review. and removed ready for review Waiting for review by maintainers. labels Mar 29, 2026
@eduardosm

Copy link
Copy Markdown
Contributor Author

One thing that bothers me a bit - for me it feels not intuitive to have D2 above D1, I feel like it would look cleaner to swap those pins. Or is there any reason not to swap them? Those pins are equivalent in function, right? 🤔

In this particular case, having D2 above D1 allows a cleaner schematic.

sch brd

Swapping D1/D2 would require crossing the wires on the schematic, which would look like this (or crossing traces on the board, which is much worse)

sch_crossed

In push-pull transformers, pin 1 (top left) is usually the "positive" of the primary winding

https://www.we-online.com/components/products/datasheet/760390014.pdf
transformer

https://www.coilcraft.com/getmedia/4ec07077-995f-40dc-869e-e8eda6407197/ua825x.pdf
image

@ubruhin

ubruhin commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Swapping D1/D2 would require crossing the wires on the schematic

Hmm really? I mean, isn't the polarity of D1/D2 irrelevant? The circuit looks symmetric to me, but I am asking because I have no experience with transformers 🙈

So, would this circuit be wrong or not?

image

(and btw, even if the polarity matters, one could mirror the transformer symbol in the schematic to avoid wire crossings - but I agree that would a bit ugly)

In push-pull transformers, pin 1 (top left) is usually the "positive" of the primary winding

That is not relevant - the location of pins in the schematic is not related to the location of pads on the package.

@eduardosm

Copy link
Copy Markdown
Contributor Author

Hmm really? I mean, isn't the polarity of D1/D2 irrelevant?
So, would this circuit be wrong or not?

The circuit would not be electrically wrong, but PCB routing would be far worse, at least with a typical push-pull transformer
brd

That is not relevant - the location of pins in the schematic is not related to the location of pads on the package.

But pins should be arranged such as schematics looks cleaner, right?

one could mirror the transformer symbol in the schematic to avoid wire crossings

That would be more acceptable than crossing wires, but I'd still avoid it if possible.

@ubruhin

ubruhin commented Apr 22, 2026

Copy link
Copy Markdown
Contributor

But pins should be arranged such as schematics looks cleaner, right?

That's right, but actually without considering the package of a part. I mean, from the SN6501 component point of view, we don't know what transformer the user will use, so we don't know its package neither. IMHO it doesn't matter if "usually" transformers have pin 1 at the top left. Additionally we also don't know how the user will mount those devices on the PCB. He might want to mount the transformer on bottom side and the SN6501 on top side, which might even end up with a simpler wiring with swapped D1/D2 pins. So in the end, we should not make any assumptions about packages in the schematic.

Therefore I think I'd go with mirroring the transformer in the schematic. But let's make an exception for this specific part now :) In this particular case, it also makes it easier to draw a schematic that matches the application example in the datasheet.

So I'll merge as-is, thanks for contributing it!

@ubruhin
ubruhin merged commit 991d247 into LibrePCB-Libraries:master Apr 22, 2026
1 check passed
@eduardosm
eduardosm deleted the SN6501 branch April 22, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addition New library element. needs corrections Pull request needs corrections before next review.

Development

Successfully merging this pull request may close these issues.

2 participants