Ok so I got this idea not while showering, but because I’m very high. The story does come from my bathroom though! I have a night light in my bathroom, and I was looking at the night light as I turned off the bathroom light. I’m a big nerd so I remembered that the things that detect light levels are actually diodes wired in reverse. I thought it would be funny to make it flicker by reflecting the light back on the diode, but it didn’t work. That’s when I had this realization

  • fidodo@lemmy.world
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    2
    ·
    8 months ago

    That’s how all ac powered lights work because the current is constantly alternating.

    • rockSlayer@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      8 months ago

      I was going to protest this, but then I started looking into how ac is converted to dc and realized that it would be cheaper to just let the diodes run on ac.

      oh shit, my stoned ass wasn’t prepared for this

      • MentalEdge@sopuli.xyz
        link
        fedilink
        arrow-up
        5
        arrow-down
        1
        ·
        edit-2
        8 months ago

        Indeed, older bulbs work in both directions and the voltage fluctuation isn’t visible in the light emitted, because the thermal mass of the filament smooths out the alternating current into a continuous glow.

        But LEDs will flicker unless the AC is rectified and smoothed out. Cheap lights will just not come with the circuitry to do this, as you can just hook up the diode directly, the only drawback being it will only emit light some of time. 60Hz is slow enough that you will notice it, however. Especially with movement, it makes reality look like it’s running at 60fps.

        Even when rectified, unless a capacitor is added to the circuit, LEDs will flicker. AC merely rectified will still have the voltage hitting zero 60 times a second, otherwise.

      • MentalEdge@sopuli.xyz
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        8 months ago

        While that’s true, in between the voltage spike in either direction there is a moment of equilibrium that is equivalent to “off”.

        This moment lasts for too short a time to matter, as the voltage goes up and down smoothly in the pattern of a sine wave, meaning the time spent in the true “off” state is infinitesimally small, not 1/60 of a second as the frequency would suggest.

        But even then the filaments temperature does fluctuate with the flips in voltage. It again just doesn’t matter, as it becomes sufficiently energised again before it even cools enough to stop glowing.

        Cheap LEDs stop glowing much quicker than a filament, which is why they can flicker even when the AC is rectified into DC, if done without a capacitor to smooth out the voltage.