Buttons pinout question!
hi,
i know noob question, confused.
is 10k resistor necessary button connected arduino board?
i have connected buttons life far 2 pins, digital , ground, without resistor, until saw else on google using 3 pins, vcc, gnd, , digital 10k resistor.
i'm really confused.
i know noob question, confused.
is 10k resistor necessary button connected arduino board?
i have connected buttons life far 2 pins, digital , ground, without resistor, until saw else on google using 3 pins, vcc, gnd, , digital 10k resistor.
i'm really confused.
you need show picture of example 3 pins.
using 2 pins fine if 1 side of switch goes ground , other connected arduino pin configured input , pins internal pullup resistor enabled 'pinmode(switch,input_pullup);' prevent floating pins triggering randomly. read switch logic reversed normal in switch pin read high reads low when button pressed.
using 2 pins fine if 1 side of switch goes ground , other connected arduino pin configured input , pins internal pullup resistor enabled 'pinmode(switch,input_pullup);' prevent floating pins triggering randomly. read switch logic reversed normal in switch pin read high reads low when button pressed.
Arduino Forum > Using Arduino > General Electronics > Buttons pinout question!
arduino
Comments
Post a Comment