ENGR 2210 - Principles of Engineering
Profs. Hoover, Faas, Minch, & Reifel
Lab 1 - Due before class Tue., 9/12
Lab 1 - Build Your Own Bike Light
You should already have the Arduino development environment installed (but, in case you don’t, you should download it). You’ll now load the IDE and use it to program your microcontroller with a simple sketch that blinks an LED.
In this lab you and your lab partner will build a bike light. Your goal is to set up LEDs such that pressing a button will switch the system of lights between several different modes: all off, all flashing; all on; and “bouncing” lights (for example). Your system should demonstrate a minimum of five modes and use at least three LEDs.
Bill of Materials (BOM):
Use an analog input to modify the behavior of your bike light in an interesting way. One option is to use a potentiometer (an adjustable resistor). If you’re feeling adventurous, you can use the infrared distance sensor that you’ll use in lab 2 to, for example, have the light get brighter the closer an object is to the sensor using pulse width modulation (PWM) of the signal output on the digital pins. You could also change the speed at which the light flashes or “bounces.”
Please read the Lab Report Style Guide carefully before writing your lab report.
Please submit your lab report as a pdf attachment to firstname.lastname@example.org. Your lab report should be named lab1_<partner1 last name>_<partner2 last name>.pdf.
We strongly encourage you to consult with a NINJA prior to submitting your lab report.