Hi,
A beginner question. I'm trying to get a pushbutton to work, but without succes so far. The button itself has 2 legs, a green LED, and it sais: "1A 125V, 0.5A 250V". Here is its paper:
http://www2.produktinfo.conrad.com/...27-da-01-en-DRUCKTASTER_R13_529AL_Rot_LED.pdf
One of the problems I have is that I'm not familiar with such papers... For example, I'm confused about its required input voltage. Is it 125V or more, or 2Volt like the Circuit Diagram in the paper sais?
So far I connected it to a Microcontroller that delivers 5 Volt:
So, the 5Volt goes through a resistor towards the button long leg. The shorter leg is connected to the ground via another resistor (pull-down?) and the digital input.
Depending on the set of resistors I use, either my input is always high or low, no matter if the button is pushed or not. My first guess is that the input voltage(5Volt) is too strong, so it will flow through the button even if its not pushed. If I use stronger resistors(A), the LED in the button dims, and at a certain point my microcontroller input will keep low, also if the button is pushed.
Currently resistor A = 47 KOhm, B = 220 KOhm. In this situation the button LED is off, but the input on the microcontroller is still high. If I use a weaker resistor B (to the ground), it will eventually turn low.
Probably a stupid beginner question, but let's hope I learn something from it
Rick
A beginner question. I'm trying to get a pushbutton to work, but without succes so far. The button itself has 2 legs, a green LED, and it sais: "1A 125V, 0.5A 250V". Here is its paper:
http://www2.produktinfo.conrad.com/...27-da-01-en-DRUCKTASTER_R13_529AL_Rot_LED.pdf
One of the problems I have is that I'm not familiar with such papers... For example, I'm confused about its required input voltage. Is it 125V or more, or 2Volt like the Circuit Diagram in the paper sais?
So far I connected it to a Microcontroller that delivers 5 Volt:
Rich (BB code):
5V ---> resistor A ---> BUTTON ----------------> Microcontroller digital input
|
-------- resistor B ---> Ground
Depending on the set of resistors I use, either my input is always high or low, no matter if the button is pushed or not. My first guess is that the input voltage(5Volt) is too strong, so it will flow through the button even if its not pushed. If I use stronger resistors(A), the LED in the button dims, and at a certain point my microcontroller input will keep low, also if the button is pushed.
Currently resistor A = 47 KOhm, B = 220 KOhm. In this situation the button LED is off, but the input on the microcontroller is still high. If I use a weaker resistor B (to the ground), it will eventually turn low.
Probably a stupid beginner question, but let's hope I learn something from it
Rick