‫Welcome to the tilt sensor demonstration on the basis three board on the breadboard I have a slide switch
‫to 10 k ohm resistors.
‫The actual tilt switch itself and a buzzer.
‫The way this works is we have the slide switch where depending upon which way slide it you will either
‫enable or disable the tilt sensor.
‫And based upon if we tilt the board if it's enabled and tilt the breadboard we should hear a buzz come
‫out of the buzzer or to test this.
‫We want to go ahead and have our slide switch to the disabled which is connecting to attend K ohm resistor
‫into the 3.3 volt bus.
‫So that's going to pull up high.
‫So matter whichever way we tell it it will never send a low signal to enable the buzzer.
‫So right now if I have it and you'll hear when you when you tilt you'll hear the tilt sensor the little
‫metallic balls and the aerial kind of hear them connect and disconnect.
‫And as I did that there was no buzzing sound.
‫That's because we have it disabled.
‫So now if we go ahead and enable the sensor.
‫Notice right now we're not going to buzz because we're not tilted.
‫But as soon as we tilt we should hear a slight buzz coming from the buzzer.
‫And you can see as soon as we cross a certain threshold it stops buzzing and then once we go over it
‫will start to buzz again.
‫And once we sat back down and were flat we won't do it.
‫We won't actually buzz because what we're doing is a tilt sensor is making contact so we're pulling
‫the high signal into the air and feeding it into our the P.W. and we have running on the basis three
‫board and based upon that signal we're determining whether or not we're outputting the the PDB and output
‫to the actual buzzer.
‫So this is an example of how you can do the tilt sensor interface on the bases board.