Tone Output

The main focus of this week’s assignment was using our Arduinos to control a speaker and play different tones, building up to music! One of the first steps was to control the volume of the speaker, which we hooked up to the analog input of a Force Sensing Resistor.

IMG_9666.MOV

To change the frequency of the tone, we can use the tone() function and the header file pitches.h that maps note names to its frequency. I thought it was neat that the lab also introduced a mathematical way to derive the frequency— it seems potentially useful for future projects where things like flat and sharp notes might be considered.

Servos

The second lab introduced servos, and featured a relatively simple and fun activity. There are a ton of applications for servos that I’m excited to explore, and I look forward to learning how to build and control servo circuits more sophisticatedly.

FullSizeRender.MOV