AME 3623: Project 0
By the end of this project, each individual in the group will demonstrate:
- Writing, compiling and downloading code to the Teensy
- Writing code that affects the state of the digital output ports
- Writing code that reads the state of the digital input ports
Component 1
As a group, wire the following hardware to your board:
- Connect +3.3V power and ground to the power and ground buses on the breadboard
- Connect at least four LEDs to different output pins on your Teensy. These
pins must be on the same Teensy port. Each of these LEDs needs to be
connected to ground through their own 200-500 ohm resistor.
- Connect another Teensy pin on the same port to +3.3V through
a 10K-ohm pull-up resistor. Connect this same pin to
one of the side pins of a switch. Connect the
common (middle) switch pin to ground.
Component 2
Each group member must write a program that:
- Waits for the switch to be pressed, then
- Displays an interesting LED flashing pattern (each group member must be different).
- Once the switch is released, the LEDs must turn off.
- Repeat
Notes
- Do not use Finite State Machines for this project (we will work on this next)
- Use setup() to initialize your pins/ports
- Use loop() to implement the switch checking and the LED flashing
Project Review
Once your group completes component 1 and everyone in the group
completes component 2, then the group must perform a "code review" with the
instructor or the TA. During this code review, you will first discuss
your code and then demonstrate the code executing on your Teensy.
Ideally, these code reviews take place during our
Office Hours.
Group #:
| Component 2 Complete
|
Name:
|
|
Name:
|
|
Name:
|
|
Deadline
All components and code reviews are due by 5:00 pm on Thursday,
February 6th.
References:
andrewhfagg -- gmail.com
Last modified: Wed Jan 29 01:29:05 2020