age-series / ElectricalAge

Electrical Age (ELN) is a Minecraft Mod offering the ability to perform large-scale in-game electrical simulations.
Other
65 stars 30 forks source link

Light bulb / and fixture overhaul for Future Versions of EA #186

Closed genestrashcan closed 4 years ago

genestrashcan commented 4 years ago

Something that should be done is a overhaul of Light bulbs and light fixtures for Future Versions of EA

some things that should be changed / updated

~ If you Build it... Electricians will Come!

jrddunbr commented 4 years ago

If you're going to continue to be condescending about the answers we give, I'm going to just close all of your issues before reading them.

A lot of the material here has been duplicated in requests on both this issue tracker and the Electrical Age upstream issue tracker. (#167, #178 for example). I don't see the value in adding like 10 different kinds of lights unless you want to 3D model them. We already have ~5 options, and there are 3 more planned ones as it stands.

Since this issue adds nothing useful except you being annoyed that we don't think dimmers are a sensible addition to the mod because there are other realistic ways to control the lights, I'm just going to close this.

PS. We're adding adjustable DC/DC converters in the 'near' future (aka, a while). Input a signal, control the voltage output. That's about as close as you get to the more modern dimmer circuits.

GrimmDemon commented 4 years ago

I'm going to be blunt here. This is GitHub, you should not request large volumes of content, such as the bulbs you mentioned, without putting in your own fair share of effort. Plus, it's best not to doubt the author of the mod/application, because they know what they are doing, you may think that adding features is easy, but it's not, for each feature added, there's a plethora of bugs that need to be sorted out in order for it to run smoothly, not to mention getting all of the calculations correct. I don't know coding, so I don't have room to complain, I do what I can and report bugs and small errors.

GrimmDemon commented 4 years ago

Plus, just to enlighten you. Dimmer switches are basically serial variable resistors (varistor) and the reason why LEDs and CFLs do not work on them is that they rely on resisting the current, thus, inadvertently causing the voltage to drop, LEDs and CFLs DO NOT draw enough current to be effectively dimmed.

jrddunbr commented 4 years ago

A lot of the dimmers out there actually use a basic analog PWM style circuit with a SCR - it's really just an inductor-capacitor RLC pulse circuit controlled by the resistance of a small rheostat with a low control current, rather than using a dedicated PWM chip (saves cost probably).

The reason that LED's don't work well on these old dimmers is because the frequency of these dimmers turning on and off is very slow - and can be seen as flickering with an LED. With a typical filament based bulb, this is not as easy to notice because the thing is so hot that even with no current going through it, it's still emitting (some) light because it's still warm. Some special LED bulbs can work around this by using a capacitor to provide power for that low state, but I'm not sure how good that is for the dimmer. Others use a fluorescent coating to make the bulb appear to flicker less.

Modern LED dimmers are faster PWM type dimmers that use frequencies probably in the kHz or higher which are not visible to the human eye. I'm sure they are more expensive to make.


Regardless of all of this, both styles of dimmers are too high frequency to simulate in the game, and I also don't plan to give people light-activated seizures by flickering their screen at 30Hz or something silly to that effect.

I've proposed plenty of solutions in past comments, and the best solution is to make a circuit to lower the voltage yourself, since all of the light brightness' in Eln (realistic or not) are controlled by the input voltage. You can do this with a rheostat to increase the resistance and make a voltage divider, or you could use some other parts like a DC/DC converter, some capacitors, or other things to that effect.

In the future, I intend to make an adjustable DC/DC converter that takes a variable voltage in, and a (relatively) stable voltage out. This could potentially make some interesting properties that result in a very simple dimmer circuit design.

jrddunbr commented 4 years ago

See new release, 1.15.8, for variable DC/DC converter which acts similarly to a dimmer.

2019-10-19_23 11 23