Тёмный

Using Analog Input Pins to Read from Button 

misterstpierre
Подписаться 60
Просмотров 3,4 тыс.
50% 1

If you are running out of digital pins (2 through 13) in a bigger project or circuit you can use analogRead(pin#) to read from a digital input. The theoretical analogRead values for this example are 1023 (not pressed) and 0 (pressed).

Опубликовано:

 

13 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 2   
@krizos21
@krizos21 Год назад
Hello thank you for an insightful video. One question standard value is 1023, and then goes to 0 when button pressed. What will happen if the button have internal resistance which is about 500 ohms, when short curcuited?
@joaopedrobarbosa2814
@joaopedrobarbosa2814 Год назад
how can i do the button stay pushed, i trying to rotate a servo and just rotate when i stay pushing. I want like a click and rotate, did u know?
Далее
How connect multiple switches to one pin, Arduino?
17:26
Using If Statements in Tinkercad   Grade Example
5:14
Arduino in Near Space. 27000 metres above the surface.
14:30
limitswitches
11:23
Просмотров 40 тыс.
How to Use Digital INPUT and INPUT_PULLUP on Arduino
3:53