i will actually pay someone to teach me how to assemble an LED, watch battery, and button to make a little light i can stick in 3D prints and just turn it on/off

it is incredibly basic but i am very stupid

@kat i can teach you with no payment involved, if you like
-F

@kat so first of all, which do you want: push the button to toggle between on and off, or hold down the button for light and release it for no light
-F

@kat that one's a little more complicated but can make it work in one of two ways:
- normal tactile dome button (think those really cheap remote controls you get with cheap unbranded stuff from ebay/amazon), plus some active circuitry that will get moderately complicated
- slightly more expensive, but nicer-feeling, push-on-push-off toggle button with no additional components

I would suggest the latter, but it's up to you
-F

@kat okay so here's a cheap little button you can use digikey.com/en/products/detail

Designed to be panel-mounted so you just need a hole of the appropriate dimensions and access to both sides of the panel to install it; if this is a problem there are ones that can be installed from one side only out there too

what you need to do is just wire up the button, the LED, the battery, and an appropriately-chosen resistor in series, it's as simple as that--just make sure the LED polarity is right
-F

@kat if you can tell me what LED you're planning to use i can help you figure out an appropriate resistor
-F

@Felthry okay we've skipped past the part i'm needing to learn where i don't know what parts to use or what order they go in or what the circuit looks like

@kat The thing about a series circuit is that the order the things go in doesn't matter. the circuit itself looks like this, though. are you familiar with what the symbols mean?
-F

@Felthry okay we're skipping past "which bits do you need to wire together" and into schematics and picking out specific resistor ratings, i might just be too stupid for this tbh

@kat sorry! you're not, i'm just really bad at knowing what things are and aren't common knowledge
-F

@kat you just need a wire from one side of the battery or batteries to one side of the switch, from the switch to a resistor, from the resistor to the LED, and from the LED back to the battery. the order of things does not matter, all that matters is that the LED is the right way around with respect to the battery (the long leg of the LED should be towards the positive side of the battery)

the resistance needed depends on what battery voltage and what LED you're using
-F

@Felthry okay rad, so literally just a battery, resistor, and a couple LEDs in series would be fine?

@kat again depends on the battery voltage! each LED you add in series will require another 2-4 volts depending on what color LED it is, so you'll need a higher voltage for more LEDs in series
-F

@kat you can put multiple LEDs in parallel without changing the voltage, but each LED will need its own resistor in this case, and you'll be pulling more current from the battery so if you want a lot of them you may need a beefy battery
-F

@Felthry okay that's clearing some stuff up, so if i want like 3 small white/orange LEDs, i'd want like

- in parallel, 1 resistor each, and a 2032 battery is fine

- in series, 1 resistor, and like... 2-3 stacked 2032 batteries i guess

longish, about batteries and LEDs 

@kat orange LEDs are going to be more towards the 2 V end of the spectrum and white ones closer to 4 V (for physics reasons, the voltage needed increases as you move through the rainbow from red to violet, and white LEDs are usually blue or violet LEDs with a color-altering phosphor added)

Note that 2032s can't provide all that much current for very long; expect the battery to last maybe a day or so if powering one LED at 10 mA (a reasonable current for an LED, depending on how bright you want it to be, though you can get high-efficiency ones that are reasonably bright even at 1 or 2 mA)

A pair of AAs or AAAs could get you longer runtime if you can fit them into the thing. Or you could use the 5V out of one of those USB power banks and have it be rechargeable (just cram the power bank in there, i don't recommend dismantling it)
-F

longish, about batteries and LEDs 

@Felthry so like if i want a little light capsule with a button on one end and a single bright LED on the other that i can insert into prints at the base, what battery is best for that

re: longish, about batteries and LEDs 

@kat It depends on how big you can let the capsule be--if it's big enough two or three AAs that's what I'd go with, but if it needs to be smaller.... How bright are we talking? If you just want it to be visible, a button battery or two might be adequate, but if you want it to be usable like a flashlight, you'd probably need to go to a lithium cell and that gets complicated due to the need for protection circuitry
-F

re: longish, about batteries and LEDs 

@Felthry i just want something i can put inside a transparent 3d print or something

i think it'll have to be smaller than a AA/AAA battery, i want to fit it into the base of a print

re: longish, about batteries and LEDs 

@kat we have zero knowledge of 3d printing stuff, is "the base of a print" some specific size or does it vary between things?
-F

re: longish, about batteries and LEDs 

@Felthry stuff like this

if i used AA/AAA batteries i'd have to make bases that are very wide/long, or have everything be like 2 inches off the table

re: longish, about batteries and LEDs 

@kat those're going to need a fair bit of illumination... have you considered having them not be battery-powered? Wouldn't be too hard to plug them in with a wall wart, and then you wouldn't have to worry about fitting a battery in there

I think you could probably fit some AAAs in there, though, without making it too high? Just have one of these digikey.com/en/products/detail or something similar in the bottom of the enclosure, exposed so you can change the batteries

The link is to a three-cell holder, but you can get four-cell ones too
-F

re: longish, about batteries and LEDs 

@Felthry i kind of need something in the form factor of a tea light at most, four AAA batteries is a pretty giant square

iunno about hooking it up to a wall outlet, that seems a little overboard tbh

parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@kat @Felthry if I may offer a suggestion?

look into lithium-polymer batteries and USB-standard charging boards for them. sparkfun is a great place to start. LEDs draw so little power that you'll basically never overload one.

battery: sparkfun.com/products/13851
charger: sparkfun.com/products/10217

it should be easy enough to tap off of the board's battery connection points to power your LED circuit.

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@LexYeen @kat didn't know they made those little charger boards, we've always made our own when needed
-F

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@Felthry @kat they're apparently good for prototyping work, given the popularity and variety available.

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@LexYeen @Felthry ah yeah i'm definitely not able to make my own charging circuitry but if there's a good cheap "buy this thing and wire it up like a regular battery and it makes it USB chargeable" that'd rule

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@LexYeen @Felthry i guess alternately i could just like... somehow wire these up to be USB powered, get a USB battery, a cheap USB hub, and just some little microUSB cables and deal with having a black box behind/under them

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@kat @Felthry USB is a 5v standard, with amp limits based on the spec IIRC.

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@LexYeen @kat far more than enough current for a single LED even at the lowest current mode though

there are also higher voltage modes but uh. don't even start trying to get that working that's really complicated
-F

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@Felthry @LexYeen @kat Howdy. I've done a bit of electronics design and even knowing the math I usually just plug it into a helper calculator. This one might be nice since it can output a visual diagram and the resistor color code.

ledcalculator.net

Note that it's totally ok to run an LED at less than its maximum current in milliAmps; it'll just be a bit dimmer (which is sometime a good thing).

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@Felthry @LexYeen @kat this other calculator gives typical values for LED forward voltage based on color. It's not a guarantee but it's a good starting point, and you can always use a higher value resistor for a bit of safety margin.

AllAboutCircuits is also a fantastic learning resource in general.
allaboutcircuits.com/tools/led

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@Felthry @LexYeen @kat going to basic-basics: what's your existing level of conceptual understanding of voltage, current, and resistance, and the relationship between them? It's totally legit if you want to plug stuff together by exact instructions, but a bit of conceptual grounding can be super useful for guiding intuition about design viability.

Also have you done any soldering before? LED and resistors aren't generally plug-together unless you buy premade assemblies (which are also widely available and inexpensive, but are kind of a different approach).

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@starkatt @Felthry @LexYeen i'm probably just gonna crimp or breadboard or hot glue this stuff, it's not exactly a big deal if a connection fails haha

all i really know is everyone uses that same "it's like a water hose" metaphor and i've never really been able to get a grip on it

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@kat @starkatt @LexYeen in the space you have, a breadboard wouldn't fit

crimp connectors might be a bit tight too, hmm
-F

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@Felthry @starkatt @LexYeen i'm talking in broad strokes, if i need to solder i can refresh myself on it later, i haven't done it in forever though

Follow

re: parts suggestion specifically about batteries re: longish, about batteries and LEDs 

@kat @starkatt @LexYeen it'd be a pretty simple solder job, no need for fancy equipment (as much as I hate the cheapo hardware store irons, i do think they'd suffice for this)
-F

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!