![]() ![]() ![]() Notice that the digitalRead() function does not effectively measures the voltage at the pin. It is capable to tell wether the voltage at this pin is high (~ 5V) or low (~ 0V) or, in other words, if the pin is at logic state 1 or 0 (or HIGH/LOW). The digitalRead() function is used to read the logic state at a pin. Let’s introduce a new function, besides an addendum to if. They are connected to pin A0 on Arduino (further details on the next projects). The figure below shows the buttons on the Interface Nanoshield. The keys on a keyboard, for instance, are an input for your computer, because they send data to this system. ![]() Some of the common input components are buttons or switches. The inputs are signals or external values sent to a system. Let’s change a little bit the approach and read an input signal. Blinking LEDs, making sound with the Buzzer, they are all considered output. Up to this point, our experience as been too one-sided. On the same line of experiments, let’s now learn about logic states, as well as how to work with data input devices. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |