Arduino Uno Super Starter Kit Digital Inputs

preview_player
Показать описание
We will now be looking at using digital inputs (pushbuttons) to turn LEDs on and off. This will be programmed using our Arduino Uno R3 from our Super Starter Kit. Pushbuttons will allow actions to be performed that our Arduino program sketch will interpret and take action.
We will be wiring two pushbutton switches. A pull-down resistor will be wired to the first switch and a pull-up resistor will be wired to the second switch. This will change the state of the input (High (1) or Low (0)) based on the wiring. Two LEDs will be wired to the outputs of the Arduino Uno. This will show the state of the switches and allow the switch inputs to modify the state of the LED. We will look at a couple of different programs.
Eliminating switch bouncing will also be discussed and programmed using our Arduino Uno super starter kit. Let’s get started.

This kit is available from Amazon.
Here are some affiliate links:

00:00 Arduino Uno Switch Inputs
00:27 Uno Pushbutton Inputs
01:19 Switches (Pushbuttons)
02:00 Wiring Pushbutton Inputs - Pull-up / Pull-down Resistors
02:25 Arduino Hardware
03:55 Arduino Digital Input Pushbutton Program
06:33 Arduino Digital Input Switch Program
09:01 Arduino Digital Input Toggle Program
09:38 Arduino Debounce Input - Positive and Negative State Inputs
10:50 Uno Debounce Program Explained and Running

A full list of posts in this series can be obtained at the following location:
Arduino Uno Software Super Starter Kit
Previous posts in this Arduino Uno Super Starter Kit Series:
Hardware
Software
LEDs

Component listing for the Elegoo Arduino UNO R3 Super Starter Kit
1 - ELEGOO UNO R3 Controller Board (Arduino-Compatible)
1 - LCD1602 Module (with pin header)
1 - Breadboard Expansion Board
1 - Power Supply Module
1 - Joystick Module
1 - IR Receiver
1 - Servo Motor (SG90)
1 - Stepper Motor
1 - ULN2003 Stepper Motor Driver Board
1 - Ultrasonic Sensor
1 - DHT11 Temperature and Humidity Module
1 - 9V Battery with DC
1 - 65 Jumper Wire
1 - USB Cable
1 - Active Buzzer
1 - Passive Buzzer
1 - Potentiometer
1 - 5V Relay
1 - Breadboard
1 - Remote
1 - Tilt Switch
5 - Button (small)
1 - 1 digit 7-segment Display
1 - 4 digit 7-segment Display
5 - Yellow LED
5 - Blue LED
5 - Green LED
5 - Red LED
1 - RGB LED
2 - Photoresistor
1 - Thermistor
2 - Diode Rectifier (1N4007)
2 - NPN Transistor (PN2222)
1 - IC 74HC595
30 - Resistor
10 - Female-to-male DuPont Wire

This kit is available from Amazon. Here are some affiliate links:

The Arduino UNO is one of the best board to learn about electronics and coding. This robust board is the most used and documented board of the whole Arduino family.

Рекомендации по теме