Week 4: Analog output, Sound, Servo motor
Announcement
I have decided to change my grading method for two reasons:
- Respond to feedback on course evaluations requesting more immediate feedback on assignments
- Better align grading method with goal of experimentation
Summary
- Weekly projects are graded on whether you do them and how well you document them, and not on whether they work. If your project doesn’t work, you must clearly explain what you intended to happen and what happened instead.
- In addition to the midterm project and the final project, you will be given two practice projects which will be graded by the same rubric as the midterm and final.
Full details here. Note this is still somewhat tentative as I want to verify with some colleagues.
Review
- Schematics: Daniel, Alia
- Analog output
Activity
- Tone (File-Examples->Digital->ToneMelody)
- Arrays
- Servo (File-Examples->Servo->)
- Knob
- Sweep
- for() loop
- Why are analogWrite(), tone(), and servo.write() related?
- This is why you can’t use analogWrite() to change the volume of the sound
Homework due February 25
Production Assignment
- Make a musical instrument using tone AND one or more servos. You may also use any other components.
- Create a new folder in your Github repository called “february25”
- In the new february24 folder add your program, schematic, photographs, and description as documented in the new grading policy
- If you wish to learn more about avoiding delays:
- Blink without delay! (File-Examples->Digital->BlinkWithoutDelay)
- Combining BlinkWithoutDelay and Melody
- A great tutorial explaining this concept from another perspective
- If anyone wants feedback on their homework, please email me