From one of my favorite books, Code: The Hidden Language of Computer Hardware and Software by Charles Petzold:

7dDVB9Hvgu9qKxP.png

Here, he explains how to setup switches and lightbulbs in two locations with the purpose of communicating by turning the lights on and off according to some previously established protocol/code.

My question: is he oversimplifying - because that isn’t the point of this chapter - which route/path the current would take when both switches are closed? As in:

poKdbhPdpYAALnJ.png

Would the wire, which I awkwardly marked blue, also become charged and/or carry current? Or would there be no current because the cathodes of the two adjacent batteries cancel out any difference/voltage in the “blue wire” that would otherwise cause a current?

  • fullsquare@awful.systems
    link
    fedilink
    arrow-up
    24
    ·
    3 days ago

    It’s easier to see that this circuit is rather symmetric when you redraw it

    Then with both switches closed blue wire (the one in the middle) should only carry small current. If both halves are exactly the same it should be zero

    In general when circuit doesn’t include nonlinear components (semiconductors most commonly) you can sum two valid solutions and you’ll get another valid solution. Note that when one switch is closed, current in blue wire goes one way and when the other is closed, in opposite way

      • SuiXi3D@fedia.io
        link
        fedilink
        arrow-up
        4
        ·
        3 days ago

        Check out the game Spintronics. It’s kind of expensive for the whole set, but absolutely worth it if you want to play around with circuits without shocking yourself.

  • marcos@lemmy.world
    link
    fedilink
    arrow-up
    9
    ·
    3 days ago

    On a real circuit where every component is different from each other, yes there will be current there.

    On that ideal circuit, try specifying the characteristics of those components and writing down how much current goes through each segment. That will let you understand what is happening.

    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Thanks! In this book, for better and for worse, we are only trying to understand binary logic and how to express parts of that (AND and OR) with serial and parallel switches, so we’re not really touching on the electrical characteristics of the individual components. But I’ll keep your reply in mind going forward! 😊

  • Natanael@infosec.pub
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    If you want to be very very hyperpedantic, when the circuit gets closed there is initially a current everywhere reachable and an electric field absolutely everywhere. It then settles down in passive DC circuits when equilibrium has been reached, and with an equal but opposing voltage (“electric field pressure”) on both sides of this wire the current is zero

    It’s like a water pipe with stale water between two water pumps

    • printf("%s", name);@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      3 days ago

      Thanks! I was just waiting for somebody to point that out! Namely, that there should be a momentary… “Effect”? Of an electric field in all parts of the circuit before it equalizes. Thanks! 😊

      One of these days, I’ll pull myself together and read up on AC too. 😅