Exercise 1: Mega2560 Interface
List group members:
Instructions: as you complete each component, demonstrate to the
instructor or the TA and have them sign off on it.
C Development Environment
Note: Each person on team must be signed off on this step by today.
- For Windoze: Configure AVR studio for connecting to the mega2560
- For Linux/OSX: Use the provided makefile
- Write a program to flash the LED attached to PORTB, pin 7 at a
frequency of 3 Hz.
- Download your group's subversion tree
- Hardware: Double-stick tape your Arduino board to the prototype
board (use a small amount of tape). Connect +5V power and
ground to the power and ground busses on the protoboard
- Hardware: Connect at least four LEDs to different outputs (it is best if
these are on the same port and contiguous pins)
- Software: Write a test program that shows that all LEDS work
independently of one-another
- Software: Write a program that displays an interesting sequence
of LED patterns
- Hardware: Connect another pin on the same port to +5V through a
resistor. Connect this same pin through a "switch"
directly to ground. In this case, our switch is two pieces of
wire: one connected to ground, the other to the pin. To
"close" the switch, we simply touch the two wires together.
- Software: augment your above program so that it does not start
the LED sequence until after you close the switch
Start on Project 1
Before You Leave...
Hand in this sheet
Last modified: Mon Feb 25 23:51:31 2013