Arduino Lab

Part 1

The first part of the lab will come directly from the Banzi reading available on Sakai. You should do two exercises from that reading:

Blink an LED

The code for this exercise is on page 30, and the wiring diagram is on page 29. Now make changes to the code and try to predict what might happen.

Adding a Button

The code for this exercise is on page 42, and the diagram is on page 41. As with the previous exercise, make changes to the code and try to predict what might happen. Be sure to use the 10k ohm resistor in your kit for this exercise. You can use this tool to tell the difference between the two kinds of resistors you have.

Part 2

The second part of our lab comes from this PDF. You should do one exercise from this reading:

Set the brightness of LED based on an analog input

The code for this exercise is on page 65. For the wiring diagram, combine the circuit diagrams on page 56 and page 63. Be sure to use the 670 ohm resistor in your kit for this exercise. You can use this tool to tell the difference between the two kinds of resistors you have.

After completing this circuit, you should try to swap out different sensors and actuators to create different kinds of behaviors. For instance, try using a buzzer instead of a light as your actuator, or try using a pressure sensor instead of a light sensor.