Aim
The goal of this activity is to demonstrate the use of a tilt switch as a switch that opens or closes the circuit.
Materials Required
- STM32 -NUCLEO -1
- Breadboard – 1
- LED -1
- Tilt Switch -1
- Several Jumper Wires
- 220Ω Resistors – 2
- Mini USB Cable-1
Wiring Diagram
Desired Outcome
When the tilt switch is in a vertical position, the LED is off, and when it’s in a horizontal position, the LED turns on.