How to take digital input signal in Arduino.
Today we will discuss 6th episode. The thing we will look at in this episode is how to take digital input to Arduinoon. We know that there are two types of signals: digital and analog. Digital Signal has only two statuses. These are 0 and 1 or off and on or low and high. 0 means that it is low in logic or its voltage level is less than 2.5 volts. If the voltage is above 2.5, then Arduino holds the signal as Logical High or 1.
We know there are 14 digital inputs / output pins in Arduino. We can work with any pin. Just write the program, in the void setup () function, that pin should be introduced as an input. Let’s learn today’s tutorial with an example. Which I showed on the video. We’ll take one of the Arduino pins as an input and take another pin as output. The output pins will have an LED. According to the logical status of the input pins, we will determine whether the LED will burn or not.
If the input pins have logical high or 1 or 5 volts then the LED will burn. If the logical state of the input pins is low or 0 or 0 volts, then the LED will be discarded. This means that today we will determine the status of the LEDs on the input pins.
Before looking at our original video tutorial, there is a need to keep one thing in mind. That’s how we can create logical high or low status in the Arduino input pin? This is a very important thing. Please see the picture below.
Here, a pin of Arduino is connected with a single voltage of 5 volts, with a register of 10 kiloohum quality. As a result, the arduino pins will create a logical ebb. The registrar has been given only to reduce the flow of electricity. Please see the picture below.
Here’s a connection to the ground with connection to the previous connection. Ground connection means there is 0 volts here. Now notice that 5 volts and grounds are connected together in the same pin. It is called the sorting. In this situation, the final status here will be logical logos. Now, think that if we do not give Ground Connection, then there is Normal Logical High and when you sort it together with Ground Pins, there are Logical Lows.
This way we will create logical lo and high here. To make the task a little easier, put a switch after the ground. If the switch is open, connecting with Normal 5 volts will cause the logical high condition of the pins. And when the switch is closed, it will be sorted and logical low condition will be created. Hopefully we can do it. If you are interested, then check out our original video tutorial.
Hopefully today’s episode you’ve got done well. However, if there is any problem, then tuamana will tell.