Hi everyone!
I am new to arduino and don't know much about it
I have these buttons which have a VCC a ground and an out pin in it.
Can you please tell me how to connect these buttons to arduino?
I want to connect all of them
I have attached their photo too
THANKS!
You have largely answered your own question! VCC to the 5V supply to the Arduino, Ground to Arduino ground and output to a digital input on the Arduino.
AJLElectronics:
thank you so much!!
OK, now really the proper way to connect these is to connect the "Out" pin to ground (you can connect "GND" to ground as well) and the "VCC" pin to the Arduino pin using a pinMode of INPUT_PULLUP. This corresponds to switch "S3" in Doug's diagram above.
Alternately you can connect "VCC" to ground, "GND" to 5 V and "OUT" to the Arduino pin, using "R1", the 10k resistor under the board as a pull-up. (Switch "S2" in the diagram.)
This (either of these approaches) is the recommended (by competent electronics engineers) way of connecting the button so it reads LOW when pressed. It may seem a little odd at first, but it is safer and more consistent with how digital electronics functions.
Hi,
Interesting description.
- Size: 11 * 22mm
- Color: red keycap
- Voltage: 3.5,5V
- Output: digital level (press high, release low)
- Interface: 3P interface S V G
- Platform: MCU, ARM, raspberry pie
Tom....