Never mind got it working.
Printable View
Never mind got it working.
Can you lead us the way too? I am planing to do the same thing :D
Hi,
Any ideas how to connect these illuminated push buttons to leo's X joy stick controllers bearing in mind that the LED requires 5v. Does it need a resistor or it can be connected directly to the 5v outlet.
http://in2amusements.com.au/products...tton-54-0.html
Regards,
Hi,
If this button has two independent connections for the LED then it is not a problem. You connect it as
+5V====[+LED-]====B1====[switch]====GND
If it states that it needs 5v for the LED then it has a current limiting resistor inside the housing or inside the LED itself.
Cheers
Leo
Hi,
Hi,
Actually this switch has three connections, one for the LED the second for the switch input and the third is common ground. It is stated that 5 V DC is required to power the LED. So where does this leave us ? One more thing, how many such switches can be connected to the board?
Regards,
Fahmy
I was thinking of connecting the switch in the following way:
External 5V power supply ---------> LED input
joystick controller ----------> switch input
Ground of the switch (which is coming from both the switch and the button ) --------> Ground of the board,
In this case the if the switch is pressed on, this will close the circuit executing the command of the button and at the same time will turn on the LED,
What do you think, am I going to fry the board if I do that ?
Regards,
Sorry for all the confusion, I managed to get the wiring scheme of the switch as well as the terminals
The terminals go as follows:
Terminal (1) : power , in this case 5V DC
Terminal (2) : accessory, the object we want to connect the power to
Terminal (3): ground, i.e LED ground
So, if we want to use the switch as a simple SPST (ON/OFF) switch, it is sufficient to connect between
B1 (board side) ----------> Terminal (1) switch side
Terminal (2) switch side ---------> ground (board side)
Whereas to light up the LED when the switch is turned to ON position we have to ground the LED, i.e
connect Terminal (3) switch side to a ground in order to complete the circuit of the LED
Now two question arise,
1- Is the power coming from the board is 5V DC, if yes, then it is going to be sufficient to light up the LED
2- Where can I ground the LED, i.e. connect terminal (3) switch side
I would be very grateful if you answer me LEO since I have been surfing the web during the past couple of days to find an answer but all are talking about automotive 12 V DC SPST illuminated switches, in this case the power is known which is 12 V from the battery and the ground is known which is the ground of the battery, i.e the vehicle's body,
Best Regards,
Fahmy
Hi,
If switch is designed to be continuously lit up then it would be difficult to make it light up only in "ON" position. You would need to break internal link between the LED anode (+) and switch terminal and connect the cathode (-) instead.
But anyway,
1) yes, all terminals marked "+5V" on the BU0836X are connected to the same source - USB power. It is supposed to be close to 5V.
2) you can connect it to any terminal marked "GND" on BU0836X - they all connect to zero Volts reference.
Cheers
Leo
Hi,
Thanks a lot for you quick answer, :)
Regards,
Fahmy