﻿1
00:00:04,790 --> 00:00:13,940
‫Welcome to the tilt sensor demonstration on the basis three board on the breadboard I have a slide switch

2
00:00:14,180 --> 00:00:16,720
‫to 10 k ohm resistors.

3
00:00:17,060 --> 00:00:21,680
‫The actual tilt switch itself and a buzzer.

4
00:00:21,680 --> 00:00:27,830
‫The way this works is we have the slide switch where depending upon which way slide it you will either

5
00:00:28,040 --> 00:00:31,090
‫enable or disable the tilt sensor.

6
00:00:31,400 --> 00:00:38,120
‫And based upon if we tilt the board if it's enabled and tilt the breadboard we should hear a buzz come

7
00:00:38,120 --> 00:00:41,400
‫out of the buzzer or to test this.

8
00:00:41,450 --> 00:00:48,200
‫We want to go ahead and have our slide switch to the disabled which is connecting to attend K ohm resistor

9
00:00:48,590 --> 00:00:50,840
‫into the 3.3 volt bus.

10
00:00:50,870 --> 00:00:52,820
‫So that's going to pull up high.

11
00:00:52,880 --> 00:00:58,730
‫So matter whichever way we tell it it will never send a low signal to enable the buzzer.

12
00:00:58,730 --> 00:01:07,460
‫So right now if I have it and you'll hear when you when you tilt you'll hear the tilt sensor the little

13
00:01:07,670 --> 00:01:10,690
‫metallic balls and the aerial kind of hear them connect and disconnect.

14
00:01:10,810 --> 00:01:13,300
‫And as I did that there was no buzzing sound.

15
00:01:13,370 --> 00:01:15,410
‫That's because we have it disabled.

16
00:01:15,500 --> 00:01:21,630
‫So now if we go ahead and enable the sensor.

17
00:01:21,800 --> 00:01:24,640
‫Notice right now we're not going to buzz because we're not tilted.

18
00:01:24,710 --> 00:01:28,760
‫But as soon as we tilt we should hear a slight buzz coming from the buzzer.

19
00:01:32,580 --> 00:01:37,280
‫And you can see as soon as we cross a certain threshold it stops buzzing and then once we go over it

20
00:01:37,280 --> 00:01:38,800
‫will start to buzz again.

21
00:01:43,160 --> 00:01:46,770
‫And once we sat back down and were flat we won't do it.

22
00:01:46,800 --> 00:01:51,930
‫We won't actually buzz because what we're doing is a tilt sensor is making contact so we're pulling

23
00:01:52,170 --> 00:01:58,350
‫the high signal into the air and feeding it into our the P.W. and we have running on the basis three

24
00:01:58,350 --> 00:02:05,220
‫board and based upon that signal we're determining whether or not we're outputting the the PDB and output

25
00:02:05,220 --> 00:02:06,580
‫to the actual buzzer.

26
00:02:06,780 --> 00:02:11,970
‫So this is an example of how you can do the tilt sensor interface on the bases board.

