 Hello everyone. In this video, we are going to learn all about tactile switches, what they are, how they work, how to interface them with good typing boards like evive and arvino and how to program them in picture blocks. Finally, we'll take a look at what wonders we can create using them. Let's begin by understanding what tactile switches are and how they work. Tactile switches, also known as push buttons, can be found everywhere, from phones to elevators to large industrial machines. They are the simplest type of input device. A push button helps in closing an open electronic circuit or the reverse temporarily during the time it is pressed. It has a small spring which helps it to return to its original position when the user takes up the pressure from the button. There are mainly two types of push buttons. First, normally open, second, normally closed. A circuit with a normally open push button is opened by default. When the user presses the button, the circuit becomes complete and the current starts flowing through it. A circuit with a normally closed push button is closed by default. The circuit breaks or presses the button. Now that we know how the push button works, let's have a look at how to interface it with evive and see the action. Evive already has two push buttons internally connected to Digital Win 38 and Win 39. You want to connect an external push button. You can make a circuit like this on evive's bridge. Now let's write a script to control evive's push button one aka TicTel Switch One in Picto Blocks. It is a graphical programming software based on Scratch Blocks. You can download it from the link given in the description box below. Anything else, connect evive to your computer using a USB cable. Next, open Picto Blocks. Then click on the board button and select evive from the drop down. Now from the dialog box it appears, choose the appropriate serial port. Before making the script, make sure that the firmware is uploaded. If not, upload it using the upload firmware button. Let's create a script to make our friendly neighbourhood sprite. Toby, jump every time we press the TicTel switch. First, select a backdrop of your choice. The first tip is to check whether the TicTel switch one is pressed or not. For that, add an F block in the scripting area and drop a TicTel switch pressed block in its blank space. If you are using an external switch, you need to use a read state of digital bin block to check whether the switch is pressed or not. Select the pin to which you have connected the switch from the drop down menu. Now let's continue with our script. Let's make Toby jump whenever the TicTel switch one is pressed. Add a change by by block from the motion palette and write 50 in the space given. To bring it back to the original position, add a weight block of 1 second and duplicate the entire set and write minus 50 in the space of the second change by by block. Now we want this script to run forever, so we will put a forever block around it. Now, we'll place a when flag clicked hat block above the forever block. It will ensure that the script runs when the green flag is clicked. Press the flag and watch Toby jump every time you press the TicTel switch. Everything is perfectly fine. Let's write a script to work with the TicTel switch without having invite connected to the computer. For that, we'll have to work in the upload mode by toggling this button. Now let's create a script to turn the LED connected to invite spin 13 on every time we press the TicTel switch. Add an F block to check if the TicTel switch one is pressed. Place a TicTel switch pressed block inside the hexagonal space of the Eiffel block. Since we need to turn the LED on, add a set digital pin block and set the output as high under the F arm. To turn the LED off, duplicate the set digital block and place it below the Elsa. Select low from the drop down. Use a forever block to run the code continuously. Place the when invite search subhead block to execute the program. Upload the code using the upload button. To work with TicTel switches or push buttons, you can use it in experiments for visualizing RC circuits, make scratch games such as dodge. But for this video, if you liked it, give it a thumbs up and share it with your friends. For more such educational content, subscribe to Stempedia and follow us on Facebook, Instagram and Twitter.