Tilt Switch

Aim

 The goal of this activity is to demonstrate the use of a tilt switch.

Materials Required

  1. Breadboard -1
  2. ESP32-1
  3. LED -1
  4. Tilt Switch
  5.  Several Jumper Wires
  6. Micro USB Cable
  7. Breadboard 
  8.  220Ω Resistors -1

Wiring Diagram

Desired Outcome

Tilt the breadboard with the tilt switch to switch ON the LED using ESP32.