Are logic components working correclty?
Posted: Thu Apr 16, 2020 7:28 pm
I have been playing around with the logic componentes (AND, OR, NOT components) in order to program behavior in the doors (automatic opening in this case) and I have notice strange behaviors in the components.
As an example, two switches connected to an AND and that to a light.
SWITCH -->
-----------------------> AND --> LIGHT
SWITCH -->
Therefore, only if both switches are on, the light should go on, and if one of the switches goes off, the light should go off, right? I have been testing it and when you switch on both switches, the light goes on. That is right. But when you switch one of the switches off, the light remains on, when it should go off.
Another, even easier example, that I made a video of:
SWITCH --> AND --> LIGHT
One switch, connected to both AND inputs. That AND connected to the light. Therefore, when the switch is on, the light should go on, and when the switch is turned off, the light should go off, right? But testing it, the light remains on.
Are the Logic Components working ok? Do they need any more configuration than the wiring? Am I missing something?
Thanks very much in advance
As an example, two switches connected to an AND and that to a light.
SWITCH -->
-----------------------> AND --> LIGHT
SWITCH -->
Therefore, only if both switches are on, the light should go on, and if one of the switches goes off, the light should go off, right? I have been testing it and when you switch on both switches, the light goes on. That is right. But when you switch one of the switches off, the light remains on, when it should go off.
Another, even easier example, that I made a video of:
SWITCH --> AND --> LIGHT
One switch, connected to both AND inputs. That AND connected to the light. Therefore, when the switch is on, the light should go on, and when the switch is turned off, the light should go off, right? But testing it, the light remains on.
Are the Logic Components working ok? Do they need any more configuration than the wiring? Am I missing something?
Thanks very much in advance