5V push button with LED

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

Best Regards
Jan
image

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

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.

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

I modified this part

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.

LEDpushbutton.fzpz (7.8 KB)

Your part has some problems.

Breadboard

“path2” needs to be in “breadboard”

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

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

This should be what it should look like after edits

Delete these 2 properties (the Inkscape transforms)

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

Change the ID to “breadboard”

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

to


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


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

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

1 Like

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 :smiling_face_with_tear:

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

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

1 Like

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

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.

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.)

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

2 Likes

OK here’s the file that incorporates all the changes

Illuminated Pushbutton_improved.fzpz (9.7 KB)

Lft out the URL section

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

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

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

Illuminated Pushbutton-improved more.fzpz (10.5 KB)

Untitled Sketch_bb

Untitled Sketch_schem

image

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


(extracted from

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

Peter

1 Like

Thanks!

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

All looks well

and the gerber output looks correct.

Peter

2 Likes

good shout out, thank you

1 Like