### Agenda:
12:00: Assignment Review
12:30: Servo motor workshop
1:15: How to use an oscilloscope
1:30: Break. Install drivers for ESP32 and/or ESP32-CAM.
1:45: Output device extravaganza! (Choose one)
- RGB LEDs: Control each color channel independently.
- LED Strips: Light the first 4 LEDs of your LED strip with different colors.
- OLED/ TFT displays: Write a function to change the screen color.
- Piezo Buzzers: Compose a melody (3+ notes) and play it.
- Speaker/Amplifier: Requires ESP32 ([Or does it?](https://github.com/charliegerard/dev-notes/blob/master/arduino/wavFilesWithoutSdCard.md)). Play a WAV file.
- EMF (motors/solenoids/valves): Open and close a solenoid with a FET. Code for ESP32S2
### Assignment:
1. Use an output device that you haven't used before today.
2. Write a microcontroller program that integrates at least one input device and one output device. Avoid the delay()
function and use the C++ class structure.
3. Use an oscilloscope to discover the time domain at which your output device is operating. Is it on a fixed clock? What's its speed? Share images and describe your findings.
4. Prepare CAD files for CNC (next class). Consider either 2D DXF files for routing sheet material (like plywood or OSB), or 3D STL files to mill out a (2.5D) shape. We will also cover molding & casting, so you may want to consider milling a mold.
Examples: [PK's capacitive piano](https://laurenbhr.github.io/PHYSCI-70/07_output/index.html), Kian (pan/tilt kit), Kassia (RGB LED / buzzer), Teddy (LED Strip / pot).
### Labs:
Work on the assignment. Use a 'scope.
Confirm any materials you may need for your final project.
Reading:
LEDs, Transistors, How to use an oscilloscope