Modifying Component library in notepad++ [SOLVED]

Hi there.

In an attempt to ad the LM2577 to my component library I did a search for availability on Google.
I found the following library. This library has a LM2576 (the same 5 pin TO220 but with different pin configuration)

I pasted the library (vreg.dcm & vreg.lib) in my KiCad library folder and opened the files in Notepad++. I copied the LM2576 section and made a change in what I believed to be the pin configuration. I sucessfully added the library in the Eeschema > Preferences > Component Libraries. I restarted KiCad (just in case) and reopend Eeschema, clicked the Place component and opened the library ‘vreg’. I do see the LM2576 in the list but I don’t see the LM2577 available.

I have the following section in the .lib file:

#
# LM2576
#
DEF LM2576 U 0 40 Y Y 1 F N
F0 “U” -350 250 60 H V C CNN
F1 “LM2576” 250 250 60 H V C CNN
F4 “Texas Instruments” 0 350 60 H I C CNN “Manufacturer”
ALIAS LM2576HV
$FPLIST
*DIP8
SOIC8
$ENDFPLIST
DRAW
S -400 200 400 -250 0 1 0 N
X VIN 1 -700 100 300 R 50 50 1 1 W
X VOUT 2 700 -100 300 L 50 50 1 1 w
X GND 3 100 -550 300 U 50 50 1 1 W
X FB 4 700 100 300 L 50 50 1 1 I
X ON/OFF 5 -100 -550 300 U 50 50 1 1 I I
ENDDRAW
ENDDEF
#
# LM2577
#
DEF LM2577 U 0 40 Y Y 1 F N
F0 “U” -350 250 60 H V C CNN
F1 “LM2577” 250 250 60 H V C CNN
F4 “Texas Instruments” 0 350 60 H I C CNN “Manufacturer”
ALIAS LM2577T
$FPLIST
*DIP8
SOIC8
$ENDFPLIST
DRAW
S -400 200 400 -250 0 1 0 N
X COMP 1 -700 100 300 R 50 50 1 1 W
X FB 2 700 -100 300 L 50 50 1 1 w
X GND 3 100 -550 300 U 50 50 1 1 W
X SW 4 700 100 300 L 50 50 1 1 I
X VIN 5 -100 -550 300 U 50 50 1 1 I I
ENDDRAW
ENDDEF

Is there an additional change I need to perform?

If I add above passage (with np++) into my test.lib the parts appear (after a restart of KiCAD)…

What about the remainder of that library?
Are those parts loadable - the ones that come AFTER LM2577?
What about the other libraries that come after vreg.lib - are those loaded?

Can you check with your library browser?

Hello Joan.

Thanks for replying!
After reading your message I rechecked the files and discovered I made a stupid mistake. I had made the changes in a copy of the library located in another folder. Everything works now as it should.

Thanks again! :slight_smile:

1 Like