# 5V push button with LED

**URL:** <https://forum.fritzing.org/t/5v-push-button-with-led/25872>\
**Category:** parts help\
**Created:** [November 20, 2024, 3:20pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872 "2024-11-20T15:20:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petera](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/p/d2c977/32.png) [@Petera](https://forum.fritzing.org/u/Petera)\
**Post date:** [November 20, 2024, 3:20pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/1 "2024-11-20T15:20:13Z")

</div>

Hello everybody,

Is there already a 5V pushbutton that has an integrated LED with series resistor? The button can be used as a normally closed or normally open contact. The LED can be controlled independently of the button.  
[Sales Page](https://funduinoshop.com/en/components/pushbuttons-and-switches/button/push-button-chrome-3v/5v-led-illuminated?number=F23108628)

Best Regards  
Jan  
 ![image](https://forum.fritzing.org/uploads/default/original/3X/c/0/c0d9fa2c4e398a52cc2472d312d30eb95bb9d33d.png)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [November 20, 2024, 3:23pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/2 "2024-11-20T15:23:12Z")

</div>

A google search of the form “fritzing part illuminated push button” turns up a variety of hits. One of them will probably do you.

Peter

---

<div class="post-metadata">

**Author:** ![Petera](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/p/d2c977/32.png) [@Petera](https://forum.fritzing.org/u/Petera)\
**Post date:** [December 2, 2024, 8:32am UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/3 "2024-12-02T08:32:14Z")

</div>

However, my component has no connections, so that the component can be plugged directly onto a breadboard. Cables/wires are required from the component to the breadboard. The button can also be connected as a normally open or normally closed contact.

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [December 4, 2024, 3:31pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/4 "2024-12-04T15:31:13Z")

</div>

There isn’t enough information in the data sheet you provided to do anything with. There is no indication of what the pins connect to or which pins are which (and thus no indication of the polarity of the LED in relation to the pins.) Without that information there isn’t anything to do.

Peter

---

<div class="post-metadata">

**Author:** ![joural](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/j/c68b51/32.png) [@joural](https://forum.fritzing.org/u/joural)\
**Post date:** [March 30, 2025, 10:45pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/5 "2025-03-30T22:45:42Z")

</div>

I modified this part

> [@New part for LED Button](https://forum.fritzing.org/t/new-part-for-led-button/15591/2):
>
> This should do what you want. As always before ordering boards print out the pcb footprint at 1:1 scale and compare it to a real part! [Adafruit-3104-pushbutton.fzpz](https://forum.fritzing.org/uploads/short-url/lgnOVcxo1LQFWRmg4grJW6ZLadk.fzpz) (5.7 KB) Peter

switch used as reference, no resistor, led switch widely available on aliexpress, this is one requiring 12mm hole. advertised as waterproof metal switch on momentary or latching configurations.  
hope it helps anyone.

 ![led](https://forum.fritzing.org/uploads/default/original/3X/d/6/d6332f1a524142a6614894b3c5ac651f24ec9f54.png)

[LEDpushbutton.fzpz](https://forum.fritzing.org/uploads/short-url/flaXeAxbH3L0KF4xe037s3Ms2DN.fzpz) (7.8 KB)

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [March 31, 2025, 3:22am UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/6 "2025-03-31T03:22:38Z")

</div>

Your part has some problems.

## Breadboard

“path2” needs to be in “breadboard”

 ![image](https://forum.fritzing.org/uploads/default/original/3X/6/c/6c402a4bf5e6231110a849b6a7d4c75b56de7ec0.png)

“path45” must be solid fill (or it will not export correctly in SVG format)

 ![image](https://forum.fritzing.org/uploads/default/original/3X/c/2/c281d596ea426156585cc76b8f3ab2fb90561e21.png)

Also, make it a good habit to define fills with XML editor, here I’ve deleted the style property and filled in correct values

 ![image](https://forum.fritzing.org/uploads/default/original/3X/d/d/ddad97a254b91d383a920879d6410fbec10858be.png)

This should be what it should look like after edits

 ![image](https://forum.fritzing.org/uploads/default/original/3X/b/8/b8c157a97da2e5e937cf208c0e7f0d42e01c81af.png)

Delete these 2 properties (the **Inkscape** transforms)

Then ungroup (ctrl+shift+g) and regroup (ctrl+g) to remove the transforms

 ![image](https://forum.fritzing.org/uploads/default/original/3X/d/2/d2f475883e96e55044d25e9666ce42bb1849a2a4.png)

Change the ID to “breadboard”

With the schematic extension in mind, change the pin numbering from

 ![image](https://forum.fritzing.org/uploads/default/original/3X/7/e/7ef599e970775b1e62a502911844b1f8dcbb6838.png)

to

 ![image](https://forum.fritzing.org/uploads/default/original/3X/a/3/a3b0477a5d953b6c3bcaffef5f9d2c31582b616b.png)  
 ![image](https://forum.fritzing.org/uploads/default/original/3X/b/c/bc50d2234f6b0abbb645f86d5f889e850b9d66ab.png)

Note: For illustration purposes only, I’ve changed the fill of the connectors. Please **do not** do so

After all these edits, you should get this (right-click → save image as… to download this SVG)

![svg.breadboard.LEDpushbutton_1_breadboard](https://forum.fritzing.org/uploads/default/original/3X/6/6/66120bcc84c8c31e0843bc0a1a2aa9af98a5b3ec.svg)

* * *

## Schematic

More problems here. Labels all wrong, and pins align to the centre (I.e. no terminalIDs)

I have fixed it in this new improved part

* * *

## PCB view

You will have to redo the PCB yourself (as I do not know the dimensions of the holes of the connectors, and the objects are ellipses – they have to be **circles** , so that has to be redone

> [@Part-creation-howto-part-1-breadboard-and-pcb](https://forum.fritzing.org/t/part-creation-howto-part-1-breadboard-and-pcb/7692):
>
> Someone in this forum post requested help to fix up a part. So while doing that I decided to record what I needed to do in order to fix the part to provide a tutorial to create new / fix broken parts. If you start from the Tarjeta S4A EDU.fzpz file posted in the above thread, you should be able to recreate my improved part posted in the same thread. I started by loading the original part in to Fritzing, that indicates breadboard is (at first look anyway) pretty good, but schematic and pcb are…

Instructions here, jump to PCB section.

Hope this helps

Illuminated Pushbutton-improved more.fzpz (the file is found in later posts)

Note that I did not change the ModuleID, so please delete the old part to prevent confusion

Most edits are done with the new part editor (using a 4-pin IC as a base), so to change the PCB right-click the “Illumin” chip → edit → PCB → File → Load image for view → select file → open

---

<div class="post-metadata">

**Author:** ![joural](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/j/c68b51/32.png) [@joural](https://forum.fritzing.org/u/joural)\
**Post date:** [March 31, 2025, 10:51am UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/7 "2025-03-31T10:51:16Z")

</div>

thank you for taking time to point out my flaws. here i was thinking i done marvelous job in my first attempt at custom part 🥲

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [March 31, 2025, 11:51am UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/8 "2025-03-31T11:51:40Z")

</div>

It’s fine Part creation in general is complex. I do hope you will continue making parts 🙂 With experience you will get the hang of certain things

> [@Part creation howto part 1 breadboard and pcb](https://forum.fritzing.org/t/part-creation-howto-part-1-breadboard-and-pcb/7692):
>
> Someone in this forum post requested help to fix up a part. So while doing that I decided to record what I needed to do in order to fix the part to provide a tutorial to create new / fix broken parts. If you start from the Tarjeta S4A EDU.fzpz file posted in the above thread, you should be able to recreate my improved part posted in the same thread. I started by loading the original part in to Fritzing, that indicates breadboard is (at first look anyway) pretty good, but schematic and pcb are…

We are severely lacking in people capable of making parts, so if you can answer a part request, feel free to make the part

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [March 31, 2025, 3:09pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/9 "2025-03-31T15:09:10Z")

</div>

@vanepp is it possible to create the subpart version (following my pin numbering)?

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 31, 2025, 3:40pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/10 "2025-03-31T15:40:50Z")

</div>

Schematic subparts don’t make any sense in this context. There is only a single part here, there is nothing to create a subpart with. Your part has a number of problems however, icon needs to reuse the breadboard svg so the correct part shows in the preview and his (perhaps corrected as I haven’t looked at it) pcb needs to be used as opposed to the IC. Schematic should be manually corrected to meet the graphics standards rather than using the schematic extension. In this case it is preferable to have the switch and the LED show in schematic as in the original.

 ![capture](https://forum.fritzing.org/uploads/default/original/3X/2/0/2042b2d4d275fdf20997d16fa35b6575bb8bfa3d.jpeg)

the original part (although the holes in pcb look like they may be too large, there is no data sheet for the part so it is impossible to tell.)

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/1/5/15c0fe1e19c86f1dbc66cad162569aa6f1d9971f.jpeg)

edit:

I missed the web site in the url field of the part, that should provide the necessary data to fix up the part.

Peter

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [March 31, 2025, 3:55pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/11 "2025-03-31T15:55:17Z")

</div>

OK here’s the file that incorporates all the changes

[Illuminated Pushbutton\_improved.fzpz](https://forum.fritzing.org/uploads/short-url/47Okkwf5dosBGiDP8b7aa4cVLd6.fzpz) (9.7 KB)

Lft out the URL section

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [March 31, 2025, 4:07pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/12 "2025-03-31T16:07:50Z")

</div>

Over all looks fine, I would add in the url to the fzp file, it is useful to tell folks where they can buy one of these and what the specs are. I’d also replace the pcb svg with one with just 4 standard 0.038in header pads as the switch won’t mount on the pcb (the LED pins don’t extend down far enough) so it will need to connect via wires. In this case you may want to put the switch and LED in silkscreen so it is obvious where the wires should go.

Peter

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [April 1, 2025, 5:46am UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/13 "2025-04-01T05:46:09Z")

</div>

OK, that would work. I’ll try to implement it

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [April 1, 2025, 12:51pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/14 "2025-04-01T12:51:52Z")

</div>

@vanepp how’s it now? added the URL posted by @joural

[Illuminated Pushbutton-improved more.fzpz](https://forum.fritzing.org/uploads/short-url/AnTAPQscbWmpAHueky3KUFb6y0p.fzpz) (10.5 KB)

![Untitled Sketch_bb](https://forum.fritzing.org/uploads/default/original/3X/4/d/4ddd0cd543b7e58854e3a13b24de9ca09ec880bd.png)

![Untitled Sketch_schem](https://forum.fritzing.org/uploads/default/original/3X/7/3/7350811e04d3cb1dba1927546c70b1882441829f.png)

![image](https://forum.fritzing.org/uploads/default/original/3X/7/6/76fd6e52bcb30f2f5d402a5450704b1a5f31386a.png)

I don’t think having a PCB for this part would be practical (correct me if I’m wrong!) so only 0.1 headers appear to solder wires to

 ![image](https://forum.fritzing.org/uploads/default/original/3X/9/9/999a171a6678ceccde863df7767db5c1475be67d.jpeg)  
(extracted from

> **[12mm Waterproof Metal Push Button Switch LED Light Black for Power -](https://www.electric-b2c.com/collections/earu-electric/products/12mm-power-switch?usf_sort=bestselling)**
>
> SPECIFICATIONS 12mm Waterproof Metal Push Button Switch LED Light Black Momentary Latching Car Engine PC Power Switch 5V 12V 24V 220V Red Blue - electrical center b2c

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [April 1, 2025, 2:18pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/15 "2025-04-01T14:18:54Z")

</div>

The momentary switches may work (but need large holes which will likely cause mechanical problems) but the latching type will not (the LED pins are too short to fit in to the pcb to solder.) That is why I suggested a header type pcb as it will connect via wires to either type. These switches appear to be aimed at connecting to the board via wires.

![capture](https://forum.fritzing.org/uploads/default/original/3X/0/a/0a6e8efb6076632bad3c4b5ad6f105310488ad8c.jpeg)

Peter

---

<div class="post-metadata">

**Author:** ![RAPTOR7762](https://forum.fritzing.org/user_avatar/forum.fritzing.org/raptor7762/32/22620_2.png) [@RAPTOR7762](https://forum.fritzing.org/u/RAPTOR7762)\
**Post date:** [April 1, 2025, 2:22pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/16 "2025-04-01T14:22:10Z")

</div>

Thanks!

The new part incorporates the headers in PCB. Any issues (other than missing terminalIDs in breadboard?)

---

<div class="post-metadata">

**Author:** ![vanepp](https://forum.fritzing.org/user_avatar/forum.fritzing.org/vanepp/32/4426_2.png) [@vanepp](https://forum.fritzing.org/u/vanepp)\
**Post date:** [April 1, 2025, 2:31pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/17 "2025-04-01T14:31:34Z")

</div>

All looks well

 ![capture](https://forum.fritzing.org/uploads/default/original/3X/7/7/77fa10fbbc564cf655e84d03a5d3f0c0f9397c21.jpeg)

 ![capture1](https://forum.fritzing.org/uploads/default/original/3X/4/2/42ca7196ec9a8e45ff31f58beb20e4c9e3e5cb13.jpeg)

 ![capture2](https://forum.fritzing.org/uploads/default/original/3X/a/0/a0fd9b5d509fad622587042c61b7c5406183babf.jpeg)

and the gerber output looks correct.

 ![capture3](https://forum.fritzing.org/uploads/default/original/3X/1/e/1eefe1f479bad0069f745fef6743615298876701.jpeg)

Peter

---

<div class="post-metadata">

**Author:** ![joural](https://forum.fritzing.org/letter_avatar_proxy/v4/letter/j/c68b51/32.png) [@joural](https://forum.fritzing.org/u/joural)\
**Post date:** [April 1, 2025, 7:41pm UTC](https://forum.fritzing.org/t/5v-push-button-with-led/25872/18 "2025-04-01T19:41:38Z")

</div>

good shout out, thank you
