Upgrade to remove ads
MAE 495 - Lab 2
Terms in this set (11)
L2. How would you change the code for Part 2 to get a lower note from the Piezo buzzer?
Change the frequency to a lower value ex. buzz(4, 2500, 500) to buzz(4, 250, 500)
L2. How can you change the code of part 2 to play a heartbeat‐like rhythm?
change the delay to a around 70 beats per minute
L3 Change the code such that it displays temperature in Fahrenheit.
add in or write a new line multiply the temperature Ex. temperature = temperature*(9/5)+32
L3. Alter the Part 2 code so that it will self‐terminate after 5 tones.
Right an if statement with a counter that will terminate after 5 loops
L3. The TA will make an adjustment to your code from part 3, adjust the circuit to match. (make sure you
know how LiquidCrystal initializes its variables)
Hopefully he isn't an ass
L3. The TA will make an adjustment to your circuit on your breadboard, adjust the code to match.
Also hopefully he isn't an ass but shouldn't be hard
L2. What would you change in the part 3 code to get a faster sample rate?
The delay after the SerialPrint command ex. delay(1000) to delay(500)
L1. If the LCD reads 30 Degrees Celsius, what is the voltage across the thermistor?
(30/100)+.5 = 800mV
L1. How does a photoresistor behave?
Photoresistors decrease resistance as it brighter around it and increases resistance as it gets dimmer
L1. What is the purpose of the potentiometer in Part 3?
It adds resistance to the system or divides voltage to decrease or increase backlight intensity
L1. Explain what Libraries are and why you would want to use them.
Libraries are pre-created codes to run common functions such as LCD screens or buzz device and you would want to use these because they reduce the need to type out all the code for them again(saves time)
YOU MIGHT ALSO LIKE...
Coding Block 2/Audits
CodeHS Intro to Programming with Karel the Dog (Ac…
CodeHS Intro to Programming with Karel t…
ICD 9 CM 2013/2014 Edition
OTHER SETS BY THIS CREATOR
Test 4 - JAG FML
Test 3 - JAG
MSE 200 Test 1 All of the Tests
MAE 495 - Lab 4&5
OTHER QUIZLET SETS
Minna no Nihongo (Lektion 1)
Geometry Exam for 12/18
Marketing 4050 Final (Chapters 10-18)