add HCPL-0201 opto-coupler (and variants) #2087
Conversation
IIUC, when multiple footprint options are available for a part, each footprint option should get its own part (rather than aliases), even if the pin numbering is the same for all footprints. This makes the parts fully specified, so you can just put them in your schematic and then the default footprint will be correct (with your current PR, you still need to pick the correct footprint even when you have already chosen it through the schematic symbol). See also KiCad/kicad-website#407 and KiCad/kicad-website#386 |
Looking more closely at the datasheet, I also see you:
|
I expanded it into different parts for each possible footprint. My original plan was just to add the ones with identical symbol to the HCPL-0201, but I missed the pin different between the HCPL-xxx1 and HCPL-xxx2 versions. Also rebased against master to fix merge conflict |
Thanks for updating, I have had a closer look at your symbols. AFAICS, you now included all single parts from the datasheet. There are two variants of the pinout, one of which is available in three packages and the other only in one package, for a total of four symbols (and a bunch more aliases for differnt isolation ratings). I had a look at the descriptions, but there seems to be an inconsistency. In the datasheet, some parts are listed as 5kV/300V, with a footnote "c" stating they can be 10kV/1000V under some conditions: However, in your symbol descriptions, it seems you have used 10kV/1000V for the HCNW2211 and 5kV/300V for the others. I'm not sure which of these would be best (perhaps to lower ones to be on the safe side?), but they should at least be consistent. Furthermore:
|
I used the values from the second table on page 13 "Switching Specifications". There they use the higher current of 5mA. I am not quite sure how to understand the comment in the first table. The symbol drawing is copied from the H11L. I will change it to a hand-drawn circle instead. I can also move the invisible fields to the outside. So far I never bothered about those. |
Ah, I see. Maybe the extra isolation really only applies to the HCNW2211 and HCPL-2232 but the first table fails to reflect that? Since your current descriptions match the (more detailed) table on page 13, I think they are good as they are right now.
Thanks. If the librarians agree that this is indeed better, maybe the H11L should also be fixed? |
Good call, should have seen that. Thanks for updating.
I think some optos have this, but not consistently. I'm not sure what the best style is here. Maybe following the lead of the datasheet? See also #2115 for a slightly related discussion. |
I recall some conversation discussing not showing the triangles but just the lines that make up the Schmitt trigger symbol. Ah! #2115 This doesn't mean it's consensus, just that the people in that issue (and I) prefer no triangles. They're not always shown in part documentation and can result in clutter, while just the two 'L' lines are always shown and can convey the concept clearly. |
Hi @lorem-ipsum I have performed a new review here, no comment to add. Merging. Joel |
This adds the HCPL-0201 and some variants as aliases for different packages.
All contributions to the kicad library must follow the KiCad library convention
Thanks for creating a pull request to contribute to the KiCad libraries! To speed up integration of your PR, please check the following items: