[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1592592 [View]
File: 6 KB, 400x400, tegaki.png [View same] [iqdb] [saucenao] [google]
1592592

>>1592589
Here a simple schematic.
Digital pin is being pulled high from the + rail on the arduino through a 10k pull up resistor, so reading that pin will give a HIGH state.
If the button is pressed the pin is pulled to ground and reading it will give LOW
but like i said, since 10k resistor drops a ton of voltage, then the pin will never read high in the first place, even if the button isn't pressed, since the resistor will drop like 4V a pull the pin to only like 1V

Navigation
View posts[+24][+48][+96]