Skip to content

Developing-and-Designing-Interactive-Devices -- Ryan Curtis Lab 2

Notifications You must be signed in to change notification settings

rec285/IDD-Fa19-Lab2

 
 

Repository files navigation

Digital Timer

Include your responses to the bold questions below. Include snippets of code that explain what you did. Deliverables are due next Tuesday. Post your lab reports as README.md pages on your GitHub, and post a link to that on your main class hub page.

Pre Lab:

  1. An LED that flashes "Happy Birthday" or some other song
  2. A game where two people have to press a buttom at a certain time without seeing the timer
  3. If you press a big red "do not press" button before the timer ends, an alarm goes off
  4. A flashing Marquee sign of LEDs that alternate and form patterns
  5. A popcorn timer to know when to stop the microwave
  6. A laundry timer to have buttons for washing and drying
  7. A message on the screen that self-destructs after a certain time
  8. A game where two people try to be the last person to press the button before the time runs out
  9. A jack in the box with random timing
  10. A maze/puzzle to solve with limited time

Part A. Solder your LCD panel

Take a picture of your soldered panel and add it here! Image

Part B. Writing to the LCD

a. What voltage level do you need to power your display? To see the text, the potentiometer needs to be all the way to one end, which would send 5V to the display.

b. What voltage level do you need to power the display backlight? The backlight was powered at all points on the potentiometer and uses the 3.3V.

c. What was one mistake you made when wiring up the display? How did you fix it? I didn't have the 3.3V connected and was missing some ground connections. I used the circuit diagram to compare every connection on the display and arduino to my board.

d. What line of code do you need to change to make it flash your name instead of "Hello World"? line 54: lcd.print("hello, world!"); -> line 54: lcd.print("Ryan");

e. Include a copy of your Lowly Multimeter code in your lab write-up. Link to code

Part C. Using a time-based digital sensor

Upload a video of your working rotary encoder here. Link to video

Part D. Make your Arduino sing!

a. How would you change the code to make the song play twice as fast? Divide all of the note durations in half.

b. What song is playing? The star wars theme song

Part E. Make your own timer

a. Make a short video showing how your timer works, and what happens when time is up! The timer is set using the rotary encoder and then starts the countdown by pressing the button. When the time is up, the speaker beeps.

Link to Video Link to Code

b. Post a link to the completed lab report your class hub GitHub repo.

About

Developing-and-Designing-Interactive-Devices -- Ryan Curtis Lab 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 72.9%
  • C 27.1%