VMA501
V. 02 – 05/04/2019
17
©Velleman nv
Programming Code
Result
After programming, open the monitoring window to see the current temperature.
7.9
The Tilt Sensor Switch
A tilt sensor will detect orientation and inclination. They are small, low power and easy-to-use. If used properly,
they will not wear out. Their simplicity makes them popular for toys, gadgets and other appliances. They are
referred to as
mercury
,
tilt
or
rolling ball
switches.
The Simple Tilt-Activated LED
This is the most basic connection of a tilt switch, but can be a handy while one is learning about them. Simply
connect in series with an LED, resistor and battery.
Reading the Switch State with a Microcontroller
The layout below shows a 10K pull-up resistor. The code states the built-in pull-up resistor that you can turn on
by setting an input pin to the high output. If you use the internal pull-up you can skip the external one.
Summary of Contents for VMA501
Page 1: ...VMA501 DIY STARTER KIT FOR ARDUINO USER MANUAL...
Page 10: ...VMA501 V 02 05 04 2019 10 Velleman nv Programming Code...
Page 18: ...VMA501 V 02 05 04 2019 18 Velleman nv Programming Code...
Page 22: ...VMA501 V 02 05 04 2019 22 Velleman nv 7 12 Four Digit Seven Segment Display...
Page 24: ...VMA501 V 02 05 04 2019 24 Velleman nv...
Page 25: ...VMA501 V 02 05 04 2019 25 Velleman nv...
Page 26: ...VMA501 V 02 05 04 2019 26 Velleman nv...
Page 27: ...VMA501 V 02 05 04 2019 27 Velleman nv...