Introduction
This tilt switch is a digital module based on the steel ball switch. The ball inside the module will roll to the lower side under gravity to have the switch connected or disconnected. You can also use it just as a tilt sensor. It supports digital output and has higher security than mercury switches. And the module can be used with maincontrollers such as micro:bit and Arduino, suitable for not only Mind+ and makecode graphical programming but also non-programming projects.
Specification
- Operating Voltage: 3V-5V
- Interface Type: PH2.0-3P
- Dimension: 26mm×39mm/1.02×1.54"
- Signal Type: digital signal (0 or 1)
Pinout
NO. | Label | Description |
---|---|---|
1 | GND | Power - |
2 | VCC | Power + |
3 | SIGNAL | Digital Signal Line |
Usage Description
The sensor can be used with Arduino and micro:bit Sensor Expansion Shield to make amazing interactive projects. And it has higher security than mercury switches.
The switch can be turned on or off by controlling the its tilt.
When it is placed horizontally, it outputs low; when it tilts, output high.
Working Principle
This tilt switch is a digital module based on the internal steel ball. When the switch tilts by external force, the ball will roll to the lower side under gravity and the normally-closed contact will disconnect; when it returns to keep horizontal, the ball will roll to the initial position and the contact will connect again. Also, you can use it just as a tilt sensor.
Application
1. Tilt Alarm System
Description:
When the tilt sensor detected tilt, the buzzer module will be activated and start to buzz to give an alarm.
Components:
BOS0005 Tilt Sensor | BOS0020 Buzzer Module | BOS0035 Mainboard-3IO |
MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
2. Anti-theft Alarm for Gallery Exhibits
Description:
When someone touches exhibits or exhibits tilt, the system will give an alarm.
Components:
BOS0005 Tilt Sensor | BOS0020 Buzzer Module | BOS0008 Touch Sencor |
BOS0035 Mainboard-3IO | BOS0028 Logic Module-OR | BOS0040 Micro:bit BOSON Expansion Board |
MBT0039 Micro:bit |
Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.
Non-programming Sample
Connection Diagram:
Programming Sample
Connection Diagram:
Flow Chart:
Mind+ Sample Program:
Makecode Sample Program:
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum
Turn to the Boson Kit Page