Lab goals:
- Get comfortable breadboarding
- Learn how to read sensors (pushbutton & joystick) using the Serial Monitor
- Visualize sensor output through Serial communication with Processing
Materials:
- ESP32 with headers soldered
- Breadboard
- Button
- 220 Ω resistor
- LED
- Joystick
- 5x Female / Male wires
- Jumper wire
Part 1: Button + Blink

Wire up your circuit as shown in the schematic above
- LED connected to Pin
15 via resistor (220Ω)
- Ensure the shortest leg (anode) of LED is connected to ground - the direction of the LED matters since diodes only conduct current in one direction!

- Pushbutton connected to Pin
2 and ground
- We don’t need a resistor with our pushbutton since we’ll use an internal pullup resistor
- The legs of the pushbutton should straddle the middle of the breadboard
- When the button is pressed, it will connect the ends as shown below (e.g. Pin 2 gets grounded)