2bengg
Junior Member level 3
hello.
i need to make this happen.
i need to know the voltage across the switch at any given time. this voltage needs to be fed to a micro controller.
in theory when a switch is open the entire voltage should appear across it, yes ?
so there is a potential divider connected across the switch to lower the voltage to to 5v.
how ever with the introduction of the relay, i believe this is no longer possible.
basically the following are the thing that should happen.
1. At any given time, the voltage across the switch should be measurable
2. If the switch is closed the load (say lamp) should glow.
3. Even if the switch is open and it is required that the lamp should glow, it should be possible.
4. If it is required, the circuit should also be able to work so that the load will only glow when the switch is active.
i believe that most of the requirements are taken care of with the circuit that i have attached. except the first one, or am i mistaken ?
Please advice.
thank you.
i need to make this happen.
i need to know the voltage across the switch at any given time. this voltage needs to be fed to a micro controller.
in theory when a switch is open the entire voltage should appear across it, yes ?
so there is a potential divider connected across the switch to lower the voltage to to 5v.
how ever with the introduction of the relay, i believe this is no longer possible.
basically the following are the thing that should happen.
1. At any given time, the voltage across the switch should be measurable
2. If the switch is closed the load (say lamp) should glow.
3. Even if the switch is open and it is required that the lamp should glow, it should be possible.
4. If it is required, the circuit should also be able to work so that the load will only glow when the switch is active.
i believe that most of the requirements are taken care of with the circuit that i have attached. except the first one, or am i mistaken ?
Please advice.
thank you.