Загрузка страницы

Arduino digitalRead Serial Monitor with Button

Arduino Basic Tutorial digitalRead Serial Monitor with Button. Reads a digital input on pin 2, prints the result to the serial monitor.

When the pushbutton is open (unpressed) there is no connection between the two legs of the pushbutton, so the pin is connected to ground (through the pull-down resistor) and reads as LOW, or 0.
When the button is closed (pressed), it makes a connection between its two legs, connecting the pin to 5 volts, so that the pin reads as HIGH, or 1.

Required Hardware
Arduino Board
Push Button
10k ohm Resistor
Jumper Wires
Breadboard

Arduino Compatible SCM - https://goo.gl/yi21yB
Electronics Equipments - https://goo.gl/covX9J
Module Board For Arduino - https://goo.gl/81dafX

Connections
One leg of the button connect a resistor.
Green wire connect from digital pin 2 to one leg of the pushbutton.
Leg of the resistor to ground.
The other leg of the button connects to the 5 volt supply.

Source Code: http://bit.ly/2PIIdQB
Download Source Code: http://bit.ly/2BoE23x
Web Site: www.mertarduino.com

Social Media:
https://www.instagram.com/mertarduino/
https://www.facebook.com/mertarduino/

Видео Arduino digitalRead Serial Monitor with Button канала Mert Arduino
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
12 ноября 2016 г. 14:33:45
00:05:40
Яндекс.Метрика