Difference between revisions of "EGR 224/Arduino Interfacing With Hardware II"
(Created page with "== Inventory == You need to check the inventory of your box before you begin the lab. You will also be required to check your box in with a TA before leaving. Failure to get...") |
(→Keypad and DEC TO BIN) |
||
Line 42: | Line 42: | ||
* Red, Blue, and Yellow LEDs | * Red, Blue, and Yellow LEDs | ||
* 14 wires (or connect short lead of LED to the ground rail directly, eliminating the need for three of the wires) | * 14 wires (or connect short lead of LED to the ground rail directly, eliminating the need for three of the wires) | ||
− | |||
− | |||
** Use 7 wires to connect the left seven leads from the keypad to pins 2-8. You will not be using the far-right eighth lead on the keypad (this senses the right ABCD column, which we are not using). | ** Use 7 wires to connect the left seven leads from the keypad to pins 2-8. You will not be using the far-right eighth lead on the keypad (this senses the right ABCD column, which we are not using). | ||
− | |||
− |
Revision as of 22:18, 20 March 2023
Contents
Inventory
You need to check the inventory of your box before you begin the lab. You will also be required to check your box in with a TA before leaving. Failure to get your inventory checked will result in a grade of 0 for this lab! Your box should contain:
- Arduino Uno
- USB Cable for Arduino Uno
- 4 470 $$\Omega$$ resistors (yellow-purple-brown-gold)
- 1 15 k$$\Omega$$ resistor (brown-green-orange-gold)
- 5 LEDs (clear, red, yellow, green, and blue)
- 18 wires(2 each of red, orange, yellow, green, blue, purple, black, white, brown, gray)
- 2 buttons (one white, one brown)
- 4x4 keypad
- 8-pin header
- Breadboard
- Screwdriver
If your box is missing anything or has anything extra, let a TA know at the start of lab to get your box in order.
Arduino Software
You may need to install the Arduino software on the computer. Search for "Arduino" - if nothing comes up as an installed program, go to Arduino Downloads and install the software.
Required Parts
All parts of the lab will require the Arduino, Arduino cable, and breadboard. Note: replace "small" resistors in the tutorials (220 $$ Omega$$) with the 470 $$\Omega$$ resistors and replace the "large" resistor (10 k$$\Omega$$) with the 15 k$$\Omega$$ resistor.
Blink an LED
- 1 470 $$\Omega$$ resistor
- Red LED
- 3 wires
Multiple LEDs
- 3 470 $$\Omega$$ resistors
- Red, Yellow, and Green LEDs
- 5 wires
Pushbutton
- 1 470 $$\Omega$$ resistor
- 1 15k$$\Omega$$ resistor
- Red LED
- 4 wires
- Pushbutton
Traffic Signal
- 3 470 $$\Omega$$ resistors
- Red, Yellow, and Green LEDs
- 7 wires (or connect short lead of LED to the ground rail directly, eliminating the need for three of the wires)
Keypad and DEC TO BIN
- 3 470 $$\Omega$$ resistors
- Red, Blue, and Yellow LEDs
- 14 wires (or connect short lead of LED to the ground rail directly, eliminating the need for three of the wires)
- Use 7 wires to connect the left seven leads from the keypad to pins 2-8. You will not be using the far-right eighth lead on the keypad (this senses the right ABCD column, which we are not using).