Posts

Showing posts from August, 2017

Arduino UNO I/O Functions

Image
The pins on the Arduino UNO board can be configured as either inputs or outputs. We will explain the functioning of the pins in those modes. It is important to note that a majority of Arduino analog pins, may be configured, and used, in exactly the same manner as digital pins. Pins Configured as INPUT Arduino pins are by default configured as inputs, so they do not need to be explicitly declared as inputs with  pinMode()  when you are using them as inputs. Pins configured this way are said to be in a high-impedance state. Input pins make extremely small demands on the circuit that they are sampling, equivalent to a series resistor of 100 megaohm in front of the pin. This means that it takes very little current to switch the input pin from one state to another. This makes the pins useful for such tasks as implementing a capacitive touch sensor or reading an LED as a photodiode. Pins configured as pinMode(pin, INPUT) with nothing connected to them, or with wires connected to

Arduino Arrays

Image
An exhibit is a successive gathering of memory areas that are of a similar sort. To allude to a specific area or component in the exhibit, we indicate the name of the cluster and the position number of the specific component in the exhibit. These Arduino boards are normally used in IOT Projects, Embedded Systems and automation projects. The representation given underneath demonstrates a whole number cluster called C that contains 11 components. You allude to any of these components by giving the exhibit name took after by the specific component's position number in square sections ([]). The position number is all the more formally called a subscript or file (this number indicates the quantity of components from the earliest starting point of the exhibit). The primary component has subscript 0 (zero) and is now and again called the zeros component.  Along these lines, the components of exhibit C are C[0] (articulated "C below zero"), C[1], C[2] et cetera. The most as

Arduino String Object

Image
The second type of string used in Arduino programming is the String Object. What is an Object? An object is a construct that contains both data and functions. A String object can be created just like a variable and assigned a value or string. The String object contains functions (which are called "methods" in object oriented programming (OOP)) which operate on the string data contained in the String object. You should have a look at How increase Performance of EF Core . Arduino String Object The following sketch and explanation will make it clear what an object is and how the String object is used. Example void setup () { String my_str = "This is my string." ; Serial . begin ( 9600 ); // (1) print the string Serial . println ( my_str ); // (2) change the string to upper-case my_str . toUpperCase (); Serial . println ( my_str ); // (3) overwrite the string my_str = "My new string." ; S