• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Get control of your email attachments. Connect all your Gmail accounts and in less than 2 minutes, Dokkio will automatically organize your file attachments. You can also connect Dokkio to Drive, Dropbox, and Slack. Sign up for free.



Page history last edited by Matthew Rios 6 years, 11 months ago


Part A: Making Sounds

     a) How would you change the code to make the song play twice as fast?


          To place the song twice as fast, you could either multiply all the values in the array noteDurations by 2, or divide the variable noteDuration by 2,


     b) What song is playing?


          The Star Wars theme song. You need about 4.5V to power the display.


Part B: Writing to the LCD

     a) What voltage level do you need to power your display?


          You need about 4.5V to power the display.


     b) What was one mistake you made when wiring up the display? How did you fix it?


          I made the wiring very confusing and it was hard to follow.  Cleaned up the wiring to be more readable.


     c) What line of code do you need to change to make it flash your name instead of "Hello World"?

          I would change "lcd.print("hello, world!");" to "lcd.print("Matt");"


Part 3: Fancy Inputs

     Part 1: Potentiometer

          a) Post a copy of your new code in your lab writeup.




     Part 2: Flex Sensor

          a) What resistance do you see with a Multimeter when the sensor is flat? When it is bent?


               I measure 9.17 kOhm straight to 20.5 kOhm bent.


          b) What kind of voltages should we expect for the Arduino analog pin based on the sensor resistance?


               V_straight = 2.39V; V_bent = 1.78V



          c) How does the range of the LED's brightness change compared to the potentiometer?


               The range was not as good with the flex sensor.


          d) Include a copy of your Lowly Multimeter code in your lab write-up.




     Part 3: Force Sensitive Resistor

          a) What resistance values do you see from your force sensor?


               The values range from infinite resistance when unpressed to about 350 Ohms when pressed.


          b) What kind of relationship does the resistance have as a function of force applied? (e.g., linear?)


               It is a logarithmic scale.


          c) Include a copy of your FSR thumb wrestling code in your lab write-up.




Part D: Timer

          a) Video:




Comments (1)

Vivien Tsao said

at 5:20 pm on Aug 10, 2013

Good job! 10/10

You don't have permission to comment on this page.