User manual

Ausgabe 19.05.2017 Copyright by Joy-IT 37
5.13 Project 13: Tilt switch
We are going to use the lt switch to control the on and o switch of a LED.
The switch is on if the lt switch is below a horizontal posion.
We can use the voltagevalue of the analog port, on which the lt switch is
connected to, to measure the posion of the switch.
Hardware Amount
Mega2560 board 1
USB cable 1
Tilt switch 1
Red M5 LED 1
220Ω Resistor 1
Breadboard 1
Breadboard cable 5