Posts

Showing posts from September, 2022

Building an AND-gate (logic flow/logic gate)

Image
 In this post we see how to build a logic AND gate. It's actually really simple to understand. Say you have a car door and a car ignition. On the car door you have a magnetic switch that lets a wire spring back to closed mode when the door is open. Ignition has electricity through it when the engine is on. SO you have live current in both scenarios, right? Call that state 1 and 1 Now consider a state where either the ignition is off AND the door is open, OR the door is closed AND the ignition is off. Call that state 0 and 1 or 1 and 0 (1=open/on, 0 = closed/off). Now suppose you want the interior head light in the car to turn on when the door is open and the ignition is on. You put a lightbulb on a wire. Then leading to that set of wiring you have this thing I made = an "and gate". You have electricity from the door and engine going there. The and gate does this: engine on , door open = 1 and 1 = true. Electricity must go to the light above your head. engine off, door ope...