Posts

Showing posts from 2017

Arduino Pro Mini - Advanced I/O Function

analogReference() Function Configures the reference voltage used for analog input (i.e. the value used as the top of the input range). The options are − DEFAULT  − The default analog reference of 5 volts (on 5V Arduino boards) or 3.3 volts (on 3.3V Arduino boards) INTERNAL  − An built-in reference, equal to 1.1 volts on the ATmega168 or ATmega328 and 2.56 volts on the ATmega8 (not available on the Arduino Mega) INTERNAL1V1  − A built-in 1.1V reference (Arduino Mega only) INTERNAL2V56  − A built-in 2.56V reference (Arduino Mega only) EXTERNAL  − The voltage applied to the AREF pin (0 to 5V only) is used as the reference analogReference() Function Syntax analogReference (type); type  − can use any type of the follow (DEFAULT, INTERNAL, INTERNAL1V1, INTERNAL2V56, EXTERNAL) Do not use anything less than 0V or more than 5V for external reference voltage on the AREF pin. If you are using an external reference on the AREF pin, you must s...

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 conn...

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...