Momentary Hi / Low switch Held High with resistor - How to add LED?
On 2006-07-22, Farce Milverk wrote:
=
best way is to put the led and resistor in parallel with the pull-up
resistor
+--|---[330]---+ T
| | ~~~
+5 +---[10k]-------+-+--o o------+ ground
|
+------ out
led goes on, out goes low, when button pressed
if you want the led to go out use a NC switch and turn the circuit round
the
other way.
I will try this once more tomorrow - I could not get this to work, same
problem.
If it still gives you problems reduce the 10K to 1K.-
Bye.
Jasen
|