A lab report by John Q. Student.
Include your responses to the bold questions on your own fork of this lab report template. 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.
For this lab, we will be experimenting with a variety of sensors, sending the data to the Arduino serial monitor, writing data to the EEPROM of the Arduino, and then playing the data back.
a. Based on the readings from the serial monitor, what is the range of the analog values being read?
b. How many bits of resolution does the analog to digital converter (ADC) on the Arduino have?
How might you use this with only the parts in your kit? Show us your solution.
a. What voltage values do you see from your force sensor?
b. What kind of relationship does the voltage have as a function of the force applied? (e.g., linear?)
c. Can you change the LED fading code values so that you get the full range of output voltages from the LED when using your FSR?
d. What resistance do you need to have in series to get a reasonable range of voltages from each sensor?
e. What kind of relationship does the resistance have as a function of stimulus? (e.g., linear?)
a. Include your accelerometer read-out code in your write-up.
Take a picture of your screen working insert it here!
a. Does it matter what actions are assigned to which state? Why?
b. Why is the code here all in the setup() functions and not in the loop() functions?
c. How many byte-sized data samples can you store on the Atmega328?
d. How would you get analog data from the Arduino analog pins to be byte-sized? How about analog data from the I2C devices?
e. Alternately, how would we store the data if it were bigger than a byte? (hint: take a look at the EEPROMPut example)
Upload your modified code that takes in analog values from your sensors and prints them back out to the Arduino Serial Monitor.
a. Insert here a copy of your final state diagram.
a. Record and upload a short demo video of your logger in action.